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 .22.214.171.124.4.1.276126.96.36.199 ' -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 .188.8.131.52.4.1.276184.108.40.206 -w @20 -c @25 -vvv
RETURN CODE: 2 (CRITICAL)
/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] IP:161 .220.127.116.11.4.1.27618.104.22.168
iso.22.214.171.124.1.276126.96.36.199 = 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.188.8.131.52.1.276184.108.40.206=1