[Check_mk (english)] check_mk_agent linux doesn't show ipmi-sensors information at least since 1.2.6p5

mistkerl473 at gmx.de mistkerl473 at gmx.de
Fri Jul 8 09:40:25 CEST 2016

Hi all,

check_mk_agent on linux doesn't show the information from ipmi-sensors at least since version 1.2.6p5. It seems nobody is using this check, so nobody realized the bug. I already reported this bug and the patch in 2015-07-08 (exactly one year ago).

The following very simple patch for the actual stable version 1.2.8p5 will fix this:

--- check_mk_agent      2016-06-24 12:22:51.000000000 +0200
+++ /usr/bin/check_mk_agent     2016-07-08 09:05:32.000000000 +0200
@@ -396,7 +396,7 @@
     # 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
-        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

In addition, you can find the patch as attachment.
Please fix this bug for the next stable version.

Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_mk_agent.patch
Type: application/octet-stream
Size: 731 bytes
Desc: not available
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20160708/705bfe65/attachment.obj>

More information about the checkmk-en mailing list