Decimal value in warning field for a snmp check

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Decimal value in warning field for a snmp check

Postby higueras » Tue Jan 15, 2019 4:30 am


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.
Posts: 1
Joined: Fri Mar 24, 2017 8:09 am

Re: Decimal value in warning field for a snmp check

Postby scottwilkerson » Tue Jan 15, 2019 4:37 pm

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 -w 0.8 -c 1 -C public -o HOST-RESOURCES-MIB::hrStorageUsed.1
SNMP CRITICAL - *91950312* | HOST-RESOURCES-MIB::hrStorageUsed.1=91950312;1;1;
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
DevOps Engineer
Posts: 15398
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests