Page 1 of 1

Decimal value in warning field for a snmp check

Posted: Tue Jan 15, 2019 4:30 am
by higueras
Hi,

someone knows how I can specify an decimal value in the warning field of a snmp check??

/nagios4.1/libexec/check_snmp -H [IP] -o [OID] -w 0.8 -c 1 -C [comunity]

Thanks and regards.

Re: Decimal value in warning field for a snmp check

Posted: Tue Jan 15, 2019 4:37 pm
by scottwilkerson
You would specify it just how you did, however there are very few SNMP types that actually return decimal values

example I just ran on a test machine

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 192.168.5.15 -w 0.8 -c 1 -C public -o HOST-RESOURCES-MIB::hrStorageUsed.1
SNMP CRITICAL - *91950312* | HOST-RESOURCES-MIB::hrStorageUsed.1=91950312;1;1;