You are here

check_snmp threshold string value

1 post / 0 new
jervis_sheil's picture
check_snmp threshold string value


I am hoping someone is able to assist me, I am looking to configure something similar for available disk space thresholds - however, I am using the check_snmp plugin to attempt this. I have managed to get the information required just from entering in the MIB - what I still require however is the warning/critical alerts to trigger. 

What I am entering in: 

check_snmp -H $HOSTADDRESS$ -C $SNMP_COMMUNITY$ -o . ' -w 20% -c 30% '

My results:

SNMP OK - "/data /dev/sda1 94G 28G 66G 30%" 

So it is reporting the information I need, I just need the warning threshholds to flag it as warning or critical.

The output with -vvv

$ /usr/local/nagios/libexec/check_snmp check_snmp -H -C -o . -w @20 -c @25 -vvv

 /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] IP:161 .

 iso. = STRING: "/data /dev/sda1 94G 28G 66G 30%"

 Processing oid 1 (line 1)

   oidname: iso.

   response:  = STRING: "/data /dev/sda1 94G 28G 66G 30%"

 SNMP CRITICAL - *1* | iso.