Module: check_mk
Branch: master
Commit: f6907a26a4ab31e822608c9ec3a5645f82c39419
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f6907a26a4ab31…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 4 14:23:36 2014 +0100
#1647 FIX agent_ipmi: Check_MK service gets critical now when ipmi-sensors command fails
---
.werks/1647 | 8 ++++++++
ChangeLog | 1 +
doc/treasures/agent_ipmi | 2 +-
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.werks/1647 b/.werks/1647
new file mode 100644
index 0000000..bc2294b
--- /dev/null
+++ b/.werks/1647
@@ -0,0 +1,8 @@
+Title: agent_ipmi: Check_MK service gets critical now when ipmi-sensors command fails
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i7
+Date: 1417699352
+Class: fix
+
diff --git a/ChangeLog b/ChangeLog
index dbae9ed..2434b49 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -97,6 +97,7 @@
* 1640 FIX: check_jolokia_metrics_serv_req: Fixed wrong levels shown for upper
thresholds
* 1632 FIX: hr_fs: remove ugly "mounted on:" information appearing on
Juniper devices
* 1646 FIX: hyperv_vms: Plugin garbles following plugin output when no VMs exist...
+ * 1647 FIX: agent_ipmi: Check_MK service gets critical now when ipmi-sensors command
fails
Multisite:
* 1508 Allow input of plugin output and perfdata when faking check results...
diff --git a/doc/treasures/agent_ipmi b/doc/treasures/agent_ipmi
index 060de9b..1ee2e5e 100755
--- a/doc/treasures/agent_ipmi
+++ b/doc/treasures/agent_ipmi
@@ -15,7 +15,7 @@ if which ipmi-sensors >/dev/null 2>&1
then
echo '<<<ipmi_sensors>>>'
ipmi-sensors -h $1 -u $2 -p $3 -l USER -Q --ignore-not-available-sensors
--legacy-output \
- | sed -e 's/ /_/g' -e 's/:_\?/ /g' -e 's@
\([^(]*\)_(\([^)]*\))@ \2_\1@'
+ | sed -e 's/ /_/g' -e 's/:_\?/ /g' -e 's@
\([^(]*\)_(\([^)]*\))@ \2_\1@' ; test ${PIPESTATUS[0]} -eq 0
else
echo '<<<ipmi>>>'
ipmitool -i lan -H "$HOST" -U "$USERNAME" -f
"$PASSWORD" sensor show 2>/dev/null \