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
SNMP and MIB warnings and criticals
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP and MIB warnings and criticals
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:
This would cause less than 250000 and less than 100000 to be warning or critical. Is that what you were looking for?
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:Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: SNMP and MIB warnings and criticals
Ok, so the ":" essentially is a "less than". Yes, that was what I was looking for!