[D-community-commits] r360 - trunk/fai-config-dir/scripts/DEFAULT
holger at alioth.debian.org
holger at alioth.debian.org
Wed Oct 29 13:17:28 UTC 2008
Author: holger
Date: 2008-10-29 13:17:28 +0000 (Wed, 29 Oct 2008)
New Revision: 360
Modified:
trunk/fai-config-dir/scripts/DEFAULT/31-munin-node
Log:
comment out (now) useless code
Modified: trunk/fai-config-dir/scripts/DEFAULT/31-munin-node
===================================================================
--- trunk/fai-config-dir/scripts/DEFAULT/31-munin-node 2008-10-29 13:14:15 UTC (rev 359)
+++ trunk/fai-config-dir/scripts/DEFAULT/31-munin-node 2008-10-29 13:17:28 UTC (rev 360)
@@ -19,21 +19,24 @@
$ROOTCMD ln -s /usr/share/munin/plugins/$i /etc/munin/plugins/$i
done
+###
+### we use ipmitool/ipmi_sensor_ here (see above)
+###
#
# if sensors is configured (has to be done manually by running sensors-detect)
# enable the munin plugins
#
-if $(sensors >/dev/null 2>&1) ; then
- # only enable plugins if sensors provide data
- export SENSORTEMP=$(mktemp)
- sensors 2> /dev/null > $SENSORTEMP
- grep -q -i fan $SENSORTEMP && ln -s /usr/share/munin/plugins/sensors_ /etc/munin/plugins/sensors_fan
- grep -q -i temp $SENSORTEMP && ln -s /usr/share/munin/plugins/sensors_ /etc/munin/plugins/sensors_temp
- grep V $SENSORTEMP | grep max | grep -q min && ln -s /usr/share/munin/plugins/sensors_ /etc/munin/plugins/sensors_volt
- rm $SENSORTEMP
-else
- echo WARNING: sensors not configured properly. please run sensors-detect and load the modules.
-fi
+#if $(sensors >/dev/null 2>&1) ; then
+# # only enable plugins if sensors provide data
+# export SENSORTEMP=$(mktemp)
+# sensors 2> /dev/null > $SENSORTEMP
+# grep -q -i fan $SENSORTEMP && ln -s /usr/share/munin/plugins/sensors_ /etc/munin/plugins/sensors_fan
+# grep -q -i temp $SENSORTEMP && ln -s /usr/share/munin/plugins/sensors_ /etc/munin/plugins/sensors_temp
+# grep V $SENSORTEMP | grep max | grep -q min && ln -s /usr/share/munin/plugins/sensors_ /etc/munin/plugins/sensors_volt
+# rm $SENSORTEMP
+#else
+# echo WARNING: sensors not configured properly. please run sensors-detect and load the modules.
+#fi
# restart munin-node
$ROOTCMD /etc/init.d/munin-node restart
More information about the D-community-commits
mailing list