Page 1 of 1

Limit Notices and/or frequency

Posted: Tue Mar 01, 2016 11:03 am
by jriker1
I am using Nagios to monitor my systems. Never had alerts turned on to email me. Now that I do, I'm getting flooded with continuous emails. Reality is this is a personal network, I'm the only one managing it, and don't need to be alerted more than 1 or 2 times to make me aware. I'm getting inundated with messages all day. So take an example. Printer is critical because the monitor setup to check the magenta ink is at 10%. That's fine. I'll order some ink. Nagios, you can tell me about this a couple times, but don't keep telling me. Or I already bought the ink but ain't gonna replace it until it's empty. How do I better manage the email alert frequencies?

Thanks.

JR

Re: Limit Notices and/or frequency

Posted: Tue Mar 01, 2016 11:33 am
by hsmith
You could set your notification_interval to 0
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/objectdefinitions.html wrote:This directive is used to define the number of "time units" to wait before re-notifying a contact that this service is still down or unreachable. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this host - only one problem notification will be sent out.

Re: Limit Notices and/or frequency

Posted: Tue Mar 01, 2016 11:41 am
by jriker1
That should work. What is the alternative? Disable active checks until you fix the problem?

Re: Limit Notices and/or frequency

Posted: Tue Mar 01, 2016 11:58 am
by hsmith
I'm not entirely sure there's an alternative to this. You could set the notification interval higher, so it doesn't alert as often. You could schedule downtime if you know it's going to have an issue as well.

Re: Limit Notices and/or frequency

Posted: Tue Mar 01, 2016 3:52 pm
by nozlaf
in your example with the printer is there a reason why you don't just acknowledge the alert?

if you acknowledge it will not alert you again until the state changes again

Re: Limit Notices and/or frequency

Posted: Wed Mar 02, 2016 9:24 am
by jriker1
Thanks nozlaf. That's brilliant. I'm not doing that as I didn't notice it. :)

Let me give it a try.

Thanks.

JR

Re: Limit Notices and/or frequency

Posted: Wed Mar 02, 2016 10:08 am
by eloyd
Or you could use Reactor to send a series of commands to your Raspberry Pi to activate your ink changing robot through its GPIO ports, but only if the ink level is <1%, and have Nagios replace the ink cartridge for you. Of course, that implies a robot....

:-)

Re: Limit Notices and/or frequency

Posted: Wed Mar 02, 2016 11:19 am
by rkennedy
@eloyd are you from the future?!

@jriker1 - let us know if you have any further questions.