Module: check_mk
Branch: master
Commit: 717e82226a0cfb393ca3cf20517724cd999c1a92
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=717e82226a0cfb…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Nov 18 12:57:15 2016 +0100
Fixed output of mk_logwatch.aix, this never worked...
---
agents/plugins/mk_logwatch.aix | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/agents/plugins/mk_logwatch.aix b/agents/plugins/mk_logwatch.aix
index f0617b2..8996093 100755
--- a/agents/plugins/mk_logwatch.aix
+++ b/agents/plugins/mk_logwatch.aix
@@ -7,8 +7,7 @@ echo "<<<logwatch>>>"
echo "[[[errorlog]]]"
OUT=$(errpt | awk 'NR>1 { printf "C %s\n", $0 }')
if [[ $OUT != '' ]];then
- echo $OUT
+ echo "$OUT"
errpt -a > /var/log/errpt_$(date +%s).log
errclear 0
fi
-