Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
rogerrb
byrogerrb, January 16, 2014
We got a new IBM x3550 M4 Server, and this server has a temperature sensor named “Mezz Card Temp” that always give 0 as the temperature. This sensors looks like it is for an optional Mezzanine card that is not installed in this server. To avoid this server to always report warning on temparature, I had to modify the script to report OK on sensors that have a Fatal temparature level of 0. My modified temparature check looks like this:
if test "$tempFatal" -eq "0"; then
STATUS=0
elif test "$tempTemp" -ge "$tempCritical"; then
STATUS=2
elif test "$tempTemp" -ge "$tempNoncritical"; then
STATUS=1
fi
if test "$tempFatal" -eq "0"; then
STATUS=0
elif test "$tempTemp" -ge "$tempCritical"; then
STATUS=2
elif test "$tempTemp" -ge "$tempNoncritical"; then
STATUS=1
fi