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 .184.108.40.206.4.1.276220.127.116.11 ' -w 20% -c 30% '
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 .18.104.22.168.4.1.27622.214.171.124 -w @20 -c @25 -vvv
RETURN CODE: 2 (CRITICAL)
/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] IP:161 .126.96.36.199.4.1.276188.8.131.52
iso.184.108.40.206.1.276220.127.116.11 = STRING: "/data /dev/sda1 94G 28G 66G 30%"
Processing oid 1 (line 1)
response: = STRING: "/data /dev/sda1 94G 28G 66G 30%"
SNMP CRITICAL - *1* | iso.18.104.22.168.1.27622.214.171.124=1