Page 1 of 1

check_snmp for temperature | w and c set

Posted: Tue Aug 13, 2013 5:39 am
by adrian.fejos
Hello,
I have a temperature thermometer model P8510 - Intelligent Ethernet Thermometer (http://www.cometsystem.cz/)
I want to monitor this in Nagios. My command looks like this:
./check_snmp -H 10.xxx.xxx.xxx -P 1 -o enterprises.22626.1.5.2.1.2.0 -C public
SNMP OK - "18.8" |
I don't know how to set the warning and critical state. I have tried with -w 30:25 but it's not working.

Re: check_snmp for temperature | w and c set

Posted: Tue Aug 13, 2013 10:33 am
by slansing
What does the check return when you add a "-w" or "-c" with no values after them? Have you tried adding a hard value for each?:

Code: Select all

-w 20 -c 40
Add them after your OID definition.

Re: check_snmp for temperature | w and c set

Posted: Wed Aug 14, 2013 11:40 pm
by adrian.fejos
If I add -w or -c I get the same message SNMP OK -....

Re: check_snmp for temperature | w and c set

Posted: Thu Aug 15, 2013 9:21 am
by abrist
Well, you should not get a warning nor critical if the temp value is less than 20.

Re: check_snmp for temperature | w and c set

Posted: Wed Aug 21, 2013 12:08 am
by adrian.fejos
abrist wrote:Well, you should not get a warning nor critical if the temp value is less than 20.
If I add -w 18 or -w "18" or -w '18' I still don't get an Warning state.

Re: check_snmp for temperature | w and c set

Posted: Wed Aug 21, 2013 1:16 pm
by sreinhardt
Let's just try something to be sure it is working properly, although my guess is that it drops the decimal place, and only sends alerts for greater than the values specified. Try using "-w 10 -c 18"