Setting Negative Thresholds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nbradshaw45
Posts: 11
Joined: Tue Jan 31, 2017 5:09 pm

Setting Negative Thresholds

Post by nbradshaw45 »

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;
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Setting Negative Thresholds

Post by rkennedy »

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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Setting Negative Thresholds

Post by bwallace »

One method which appeared to work was posted by DiegoAnjos in this forum:
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

Post by nbradshaw45 »

I tried the plugin as suggested - this is not working. Any other suggestions?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Setting Negative Thresholds

Post by rkennedy »

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

Post by nbradshaw45 »

I was able to do this by doing: -w=-32: -c=-80:
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Setting Negative Thresholds

Post by rkennedy »

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

Post by nbradshaw45 »

Yes - Resolved. Thanks.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Setting Negative Thresholds

Post by rkennedy »

/closed

Feel free to mark a new thread if you have questions in the future!
Former Nagios Employee
Locked