Decimal value in warning field for a snmp check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
higueras
Posts: 1
Joined: Fri Mar 24, 2017 8:09 am

Decimal value in warning field for a snmp check

Post 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.
scottwilkerson
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

Post 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;
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked