Limit Notices and/or frequency

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
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Limit Notices and/or frequency

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Limit Notices and/or frequency

Post 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.
Former Nagios Employee.
me.
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Re: Limit Notices and/or frequency

Post by jriker1 »

That should work. What is the alternative? Disable active checks until you fix the problem?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Limit Notices and/or frequency

Post 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.
Former Nagios Employee.
me.
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: Limit Notices and/or frequency

Post 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
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Re: Limit Notices and/or frequency

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Limit Notices and/or frequency

Post 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....

:-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Limit Notices and/or frequency

Post by rkennedy »

@eloyd are you from the future?!

@jriker1 - let us know if you have any further questions.
Former Nagios Employee
Locked