Just wondering if the alerts are supposed to run by themselves at a regular interval or if we have to kick 'em off somehow (cron, etc). We added one alert that checks every five minutes for a threshold value, but it only seems to run if we run it manually. Works great if it runs.
Would love an option that says "don't notify if the thing is OK." We're not sending it to Nagios yet, just using email notifications, and it seems to send an email in the OK state every time we run it (manually).
Are alerts supposed to run by themselves?
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Are alerts supposed to run by themselves?
Have you made sure that the check is active? There should be a little bell icon to the right hand side of your alert check in log server, that should not have a slash through it.
Re: Are alerts supposed to run by themselves?
Actually, there is a check-box on the bottom - "Only alert when Warning or Critical threshold is met.", which *should* do the job, but it's not working as expected as of now (at least when you send an alert manually). Our developers are digging into this as we speak.Would love an option that says "don't notify if the thing is OK."
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Are alerts supposed to run by themselves?
We deleted everything and moved to a new box. I don't recall there being a slash through the active box (and I know I put one there once and then removed it). Will let you know how things go once we get new box all settled.
Didn't see the box that you mentioned regarding run/don't run, but will check later. Time to get pizza before traffic starts up...
Didn't see the box that you mentioned regarding run/don't run, but will check later. Time to get pizza before traffic starts up...
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Are alerts supposed to run by themselves?
Sounds good, let us know how it goes! I had a bit of difficulty at first too, wondering why OK states were not coming in. As slansing mentioned, there should be a "send only when threshold is met" option. I believe this is selected by default and was definitely what I needed to turn off.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Are alerts supposed to run by themselves?
I just went back and and took a good look at this. "Only alert when Warning or Critical threshold is met" is only available if you're editing alerts, not creating new ones. I believe it should be on the new alert input screen as well and would consider this a bug.
Re: Are alerts supposed to run by themselves?
Must have been fixed in a revision because I have that option upon creation. It only appears though once you select a dropdown option.
Former Nagios employee
Re: Are alerts supposed to run by themselves?
Ah yah, I see it now. Didn't catch the scroll bar on the window. Okay, thanks.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Are alerts supposed to run by themselves?
Okay, now I'm just getting angry.
I've got the following set up as an alert (set to 1m intervals just for testing). Notice that it is set to only alert when warning or critical is set to 1 or 2. Notice that it says it's in an OK state. Yet this thing is still notifying every minute (and so is the other one I made for testing) that things are OK:
Please make it do what I think it is supposed to do, which is only to email if it's not OK!
I've got the following set up as an alert (set to 1m intervals just for testing). Notice that it is set to only alert when warning or critical is set to 1 or 2. Notice that it says it's in an OK state. Yet this thing is still notifying every minute (and so is the other one I made for testing) that things are OK:
Code: Select all
SIP Probes came back with a OK state at Tue, 11 Nov 2014 17:52:32 -0500
The alert was processed with the following thresholds:
- Lookback Period: 5m
- Warning: 1
- Critical: 2
Here is the full alert output:
OK: 0 matching entries found |logs=0;1;2
See the last 5m in the dashboard:
http://127.0.0.1/var/www/html/nagioslogserver/www/index.php/alerts/show/AHglGSbBQW6wzjrYh2SpMg
Nagios Log Server
You do not have the required permissions to view the files attached to this post.