Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
Shabo
byShabo, January 28, 2014
This works well, but perfdata would be nice when debugging possible overheating problems.
My current hack:
PERFDATA=$(echo "$sensordata" | grep "°C"| sed -r 's/:[ ]+[+]?([0-9.]+)°C.*$/=\1/;s/ /_/g;' | sed 's/./\L&/g' | tr "\n" ', ' | sed "s/,/, /g;s/, *$/\n/")
echo "sensor ok $PERFDATA | $PERFDATA"
exit $STATE_OK
My current hack:
PERFDATA=$(echo "$sensordata" | grep "°C"| sed -r 's/:[ ]+[+]?([0-9.]+)°C.*$/=\1/;s/ /_/g;' | sed 's/./\L&/g' | tr "\n" ', ' | sed "s/,/, /g;s/, *$/\n/")
echo "sensor ok $PERFDATA | $PERFDATA"
exit $STATE_OK