Notification_Interval query

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
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Notification_Interval query

Post by neworderfac33 »

Good afternoon,

I was wondering if, when you restart Nagios Core, if you can set it to send an alert for all the alert states that are currently active (e.g. disk space at warning or critical level), rather than it waiting for an alert status to change and only then sending an email?

Thanks in advance

Pete
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Notification_Interval query

Post by rkennedy »

If a state of a service is currently in warning / critical state, then you should have already received a notification about this depending on your settings.

Just to make sure I understand correctly, on a restart, you want notifications to be sent out once again for all services that are in any state that isn't OK? Is that correct?
Former Nagios Employee
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Notification_Interval query

Post by neworderfac33 »

Yes, that's correct! :-)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification_Interval query

Post by ssax »

It's not currently possible, the closest you could come would be to set retain_state_information=0 in your nagios.cfg OR set retain_status_information 0 on your hosts/services but it would still wait until the next check occurs.
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Notification_Interval query

Post by neworderfac33 »

That's fine - at least I can present the answer when I'm asked the question!

You can close this thread now - thank you.

Pete
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Notification_Interval query

Post by mcapra »

Closing this per your request
Former Nagios employee
https://www.mcapra.com/
Locked