Up until a few months ago I had an SNMP check setup on a Supermicro server for CPU temperature from the IPMI device. It was using one of the NagiosXI checks that maps to check_snmp.
Code: Select all
/usr/local/nagios/libexec/check_snmp -H HOST -p 161 -o sensorReading.1 -C *** -P 2c -m ATEN-IPMI-MIB
SNMP OK - "33.000" |
The ATEN-IPMI-MIB is from Supermicro, the actual OID for the CPU 1 temperature sensor is ".1.3.6.1.4.1.21317.1.3.1.2.1". I already know what the problem is, There isn't any data after the pipe to graph. I attempted to recreate the check and the wizard wouldn't let me complete it without a warning/critical setting in the check. When I add those to the command it outputs as expected:
Code: Select all
SNMP OK - CPU Temp 33 C | 'CPU Temp'=33C;40;;
Must I have a warning and critical threshold set for any SNMP values for this to work? I have other checks that don't have thresholds set, but they're also being calculated as a --rate for packet info on a switch port using IF-MIB.
I'd like to understand if I just implemented something based on a bug that's been fixed or if I found one. In other words, what's the way I should do this check?