Hi -
I have a value of -31.2 . I need to monitor when this threshold is < -35 (Meaning anything that is a lower negate number than -35..ie..-36-,-37..etc)
Below I am using positive thresholds just to show the output...but I need to use Negative Thresholds instead.
./check_snmp -H 10.20.101.XXX -C XXX -o .1.3.6.1.4.1.2378.1.1.2.2.2.2.1.1.5.1 -w 2 -c 4
SNMP CRITICAL - *-31.2* | iso.3.6.1.4.1.2378.1.1.2.2.2.2.1.1.5.1=-31.2;2;4;
Setting Negative Thresholds
Re: Setting Negative Thresholds
Some plugins support it, and some do not. If they do, take a look at this section which mentions how to use negative thresholds - https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Former Nagios Employee
Re: Setting Negative Thresholds
One method which appeared to work was posted by DiegoAnjos in this forum:
https://support.nagios.com/forum/viewto ... 20&t=33752
https://support.nagios.com/forum/viewto ... 20&t=33752
Be sure to check out the Knowledgebase for helpful articles and solutions!
-
nbradshaw45
- Posts: 11
- Joined: Tue Jan 31, 2017 5:09 pm
Re: Setting Negative Thresholds
I tried the plugin as suggested - this is not working. Any other suggestions?
Re: Setting Negative Thresholds
Did you try setting the parameters according to the SNMP guide I posted? It should work with those, by using :
Former Nagios Employee
-
nbradshaw45
- Posts: 11
- Joined: Tue Jan 31, 2017 5:09 pm
Re: Setting Negative Thresholds
I was able to do this by doing: -w=-32: -c=-80:
Re: Setting Negative Thresholds
Awesome - not all plugins will have that support, but most should I believe. Are we good to mark this thread resolved then?
Former Nagios Employee
-
nbradshaw45
- Posts: 11
- Joined: Tue Jan 31, 2017 5:09 pm
Re: Setting Negative Thresholds
Yes - Resolved. Thanks.
Re: Setting Negative Thresholds
/closed
Feel free to mark a new thread if you have questions in the future!
Feel free to mark a new thread if you have questions in the future!
Former Nagios Employee