Module: check_mk
Branch: master
Commit: f0bbde04e2dda517c7b22e13c8ad5a11b8d4dbbb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f0bbde04e2dda5…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Sep 15 09:52:38 2017 +0200
5278 FIX check_mk_agent.linux: Fixed wrong detected sensors in state "State
disasserted"
Change-Id: I019ba260b06eb8bf0501ec661c63fcfc3285b543
---
.werks/5278 | 11 +++++++++++
agents/check_mk_agent.linux | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/5278 b/.werks/5278
new file mode 100644
index 0000000..6dbab32
--- /dev/null
+++ b/.werks/5278
@@ -0,0 +1,11 @@
+Title: check_mk_agent.linux: Fixed wrong detected sensors in state "State
disasserted"
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1505461781
+
+
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 267138c..37c12de 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -453,7 +453,7 @@ then
# At least with ipmi-sensors 0.7.16 this group is Power_Unit instead of "Power
Unit"
run_cached -s ipmi_sensors 300 "for class in Temperature Power_Unit Fan
do
- ipmi-sensors $IPMI_FORMAT --sdr-cache-directory /var/cache $IPMI_GROUP_OPT
\"$class\" | sed -e 's/ /_/g' -e 's/:_\?/ /g' -e 's@
\([^(]*\)_(\([^)]*\))@ \2_\1@'
+ ipmi-sensors $IPMI_FORMAT --sdr-cache-directory /var/cache $IPMI_GROUP_OPT
\"\$class\" | sed -e 's/ /_/g' -e 's/:_\?/ /g' -e 's@
\([^(]*\)_(\([^)]*\))@ \2_\1@'
# In case of a timeout immediately leave loop.
if [ $? = 255 ] ; then break ; fi
done"