Module: check_mk
Branch: master
Commit: d53a9c39997bc1a1b35345e508e28b8d45f806c3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d53a9c39997bc1…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Mar 13 11:11:22 2017 +0100
4517 FIX 4516 FIX check_mk_agent.openwrt: Escaped quotes in run_cached function used for
ipmi-sensors command
Change-Id: Ia412d5a650d798fda794e91df26de6b5a1c025ea
---
.werks/4517 | 11 +++++++++++
agents/check_mk_agent.openwrt | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4517 b/.werks/4517
new file mode 100644
index 0000000..871f4af
--- /dev/null
+++ b/.werks/4517
@@ -0,0 +1,11 @@
+Title: 4516 FIX check_mk_agent.openwrt: Escaped quotes in run_cached function used for
ipmi-sensors command
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1489399863
+
+
diff --git a/agents/check_mk_agent.openwrt b/agents/check_mk_agent.openwrt
index e17b487..79edea5 100755
--- a/agents/check_mk_agent.openwrt
+++ b/agents/check_mk_agent.openwrt
@@ -411,7 +411,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 -g "$class"
| sed -e 's/ /_/g' -e 's/:_\?/ /g' -e 's@ \([^(]*\)_(\([^)]*\))@
\2_\1@'
+ ipmi-sensors $IPMI_FORMAT --sdr-cache-directory /var/cache -g
\"$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"