Page 1 of 1

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

Posted: Tue May 26, 2020 3:38 pm
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?

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

Posted: Tue May 26, 2020 4:51 pm
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

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

Posted: Tue May 26, 2020 5:40 pm
by Alan
Awesome thanks for confirming.