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

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

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

Postby Alan » Tue May 26, 2020 3:38 pm

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?
Alan
 
Posts: 86
Joined: Wed Aug 21, 2019 4:14 pm

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

Postby tgriep » Tue May 26, 2020 4:51 pm

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/guidelines.html#THRESHOLDFORMAT
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 8811
Joined: Thu Oct 30, 2014 9:02 am

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

Postby Alan » Tue May 26, 2020 5:40 pm

Awesome thanks for confirming.
Alan
 
Posts: 86
Joined: Wed Aug 21, 2019 4:14 pm


Return to Community Support

Who is online

Users browsing this forum: Google [Bot] and 9 guests