Page 1 of 1

SNMP and MIB warnings and criticals

Posted: Tue Apr 15, 2014 10:23 am
by tecnalb
Hello,

I loaded a MIB to monitor some NAS devices. Instead of using a plugin from the Exchange (which I also have loaded) I just wanted to pull the values from the SNMP results. I used the SNM<P Walk wizard, and created the items. Works fine except the warning and criticals for disk free space. I wanted to see if the check had a way to reverse or negate the check, or if I could also use the "negate" plugin to reverse the check, or just use a different check altogether. My goal was to stay clear of the plugins, and generate results simply based on the feedback from the poll.

Is there a switch like "!" than might be used with the -w and -c to reverse the output?

The check: Disk space is currently 750000. I want to warn or crit based on lower numbers.

check_xi_service_snmp! -p 161 -o volumeFreeSpace.1 -C public -P 2c -m READYNAS-MIB -w 250000 -c 100000

Re: SNMP and MIB warnings and criticals

Posted: Tue Apr 15, 2014 10:26 am
by sreinhardt
You could either use negate, or the plugins thresholds should do the same thing.

http://exchange.nagios.org/directory/Do ... in/details
http://nagiosplug.sourceforge.net/devel ... HOLDFORMAT

You might try:

Code: Select all

check_xi_service_snmp! -p 161 -o volumeFreeSpace.1 -C public -P 2c -m READYNAS-MIB -w 250000: -c 100000:
This would cause less than 250000 and less than 100000 to be warning or critical. Is that what you were looking for?

Re: SNMP and MIB warnings and criticals

Posted: Tue Apr 15, 2014 10:33 am
by tecnalb
Ok, so the ":" essentially is a "less than". Yes, that was what I was looking for!