You are here

check_snmp threshold string value

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

Hi, 

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 .1.3.6.1.4.1.27659.3.101.1 ' -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 .1.3.6.1.4.1.27659.3.101.1 -w @20 -c @25 -vvv
RETURN CODE: 2 (CRITICAL)
OUTPUT:

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

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

 Processing oid 1 (line 1)

   oidname: iso.3.6.1.4.1.27659.3.101.1

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

 SNMP CRITICAL - *1* | iso.3.6.1.4.1.27659.3.101.1=1