How can I generate an alert if the threshold value falls bel

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Alan
Posts: 86
Joined: Wed Aug 21, 2019 4:14 pm

How can I generate an alert if the threshold value falls bel

Post by Alan »

Hello, I am trying to get alerted if a value goes below 100. I was reading on a Nagios form and think I found the solution but wanted to see if this was correct. I am not actually able to test to see if it works. I am trying to be alerted when a server room UPS does a battery test. This batter test happens once a month.

So, I was using the -c 100 and it did not work, then I found that I should use -c 100:

It said if I use the Colon at the end of the threshold value it will alert me if the values drops below 100. Is this how it works? If not, how can I set it to alert me if the value drops below 100?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: How can I generate an alert if the threshold value falls

Post by tgriep »

Adding the : after the threshold number changes the threshold to alert on less than so adding that is what you are looking for.
See this link for more examples.
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Be sure to check out our Knowledgebase for helpful articles and solutions!
Alan
Posts: 86
Joined: Wed Aug 21, 2019 4:14 pm

Re: How can I generate an alert if the threshold value falls

Post by Alan »

Awesome thanks for confirming.
Locked