Module: check_mk
Branch: master
Commit: ddfa1ab28d8e5d844d75a8f30076b198c427549c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ddfa1ab28d8e5d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Aug 13 15:11:23 2011 +0200
AIX agent: output name of template
---
ChangeLog | 1 +
agents/check_mk_agent.aix | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d13ca10..0e5acd1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@
list (compatible to bulkwalk_hosts) use their hostname as IP address.
Checks & Agents:
+ * FIX: AIX agent: output name of template in case of MRPE
* FIX: cisco_temp: skip non-present sensors at inventory
* FIX: apc_symmetra: fix remaining runtime calculation (by factor 100)
* FIX: Added PNP-template for winperf_phydisk
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 7a5576e..c925afd 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -115,7 +115,8 @@ then
grep -Ev '^[[:space:]]*($|#)' "$MK_CONFDIR/mrpe.cfg" | \
while read descr cmdline
do
+ PLUGIN=${cmdline%% *}
OUTPUT=$($cmdline)
- echo "$descr $? $OUTPUT"
+ echo "(${PLUGIN##*/}) $descr $? $OUTPUT"
done
fi