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.
Decimal value in warning field for a snmp check
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Decimal value in warning field for a snmp check
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
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;