Page 1 of 2

email notification for nagiosxi

Posted: Tue Jun 16, 2015 11:11 pm
by michaelli
Hi,

We setup nagiosxi for send email notification when problem happen in client side. Below is our observation behavior.

When a client has a critical alert (system log or application text base file), it can send email to someone.

But when the STATUS keep in Critical status and further Critical alert occur, there is no email will send out.

How can I configure send further email notification when the many error occur during the critical/warning status.

Re: email notification for nagiosxi

Posted: Wed Jun 17, 2015 10:56 am
by tgriep
I think you are looking to be notified periodically when a host or service is down for a long period of time.
You would need to set this for the host / service checks that you want to get re-notified when it is down.
notification interval

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.
Is that what you are looking for?

Re: email notification for nagiosxi

Posted: Thu Jun 18, 2015 2:12 am
by michaelli
Hi tgriep,

Below is my example I only get 12:01 email notification, nagios do not send 12:02 and 12:05 event to user.

Time State Message
12:00 Ok OK: No data received yet
12:01 Critical Critical: Application A crash
12:02 Critical Critical: Application B crash
12:05 Critical Critical: xxxxxx error

Is it possible to change the email notification from STATE trigger to event trigger?

Re: email notification for nagiosxi

Posted: Thu Jun 18, 2015 12:36 pm
by ssax
Are these passive results that you are sending into XI?

Re: email notification for nagiosxi

Posted: Thu Jun 18, 2015 8:43 pm
by michaelli
Hi Ssax,

Yes, I use nsclient++ realtime system log. It is passive mode.

Do you mean passive mode cannot send email notification when two error in the same state.

If active mode eg. check_logfiles can do that, we want to try. But I failed to set check_logfiles in windows 2003/2008/2012 on (32/64bit) windows system and application before. So that we change to use passive mode.

Re: email notification for nagiosxi

Posted: Fri Jun 19, 2015 12:00 pm
by tgriep
Do you have notifications enabled for those services and the contact that wants the notifications assigned to them also?

Re: email notification for nagiosxi

Posted: Mon Jun 22, 2015 5:10 am
by michaelli
Hi all,

Verified that nagios can send email notification for 1st error messages in both active or passive check.

The issue is it do not send further email notification for further error messages.

Re: email notification for nagiosxi

Posted: Mon Jun 22, 2015 10:09 am
by jolson
If I'm understanding your post properly, you want notifications to be sent out on every critical state. If that's true, you can modify the service to be volatile.
2015-06-22 10_09_17-Nagios XI - Nagios Core Config Manager - Firefox Developer Edition.png

Re: email notification for nagiosxi

Posted: Tue Jun 23, 2015 4:36 am
by michaelli
Hi jolson,

Great, this setting work for both active or passive for log messages. It will send email notification for every error messages in the same status.
Thank you.

Re: email notification for nagiosxi

Posted: Tue Jun 23, 2015 11:06 am
by jolson
No problem - is there anything else I can help you out with, or are we good to close this thread?