Page 1 of 1

WARNING notifications not being delivered via email

Posted: Mon Dec 28, 2015 12:47 pm
by manymiles
My "nagiosadmin" contact receives OK (recovery) messages via email, but not WARNING messages. My other two contacts DO get email messages for both the WARNING and OK states.

All of the contacts are setup to receive not only an email, but, also a second notification via the "Pushover" service. The Pushover notification DOES work for the nagiosadmin user under the WARNING condition.

In the "Notifications" log (Home-Notifications), I DO see an entry for the WARNING email notification (lines truncated for clarity)

Code: Select all

time	state	contact	dispatcher	command	information
10:09:01	OK	nagiosadmin	Nagios XI	xi_service_notification_handler	OK - System: 'PowerEdge 2950 III', SN: '4H907G1'...
10:09:01	OK	nagiosadmin	Custom	ed-notify-service-by-pushover	OK - System: 'PowerEdge 2950 III', SN: '4H907G1'...
10:09:01	OK	johnd	Nagios XI	xi_service_notification_handler	OK - System: 'PowerEdge 2950 III', SN: '4H907G1'...
10:09:01	OK	johnd	Custom	ed-notify-service-by-pushover	OK - System: 'PowerEdge 2950 III', SN: '4H907G1'...
10:09:01	OK	jeffp	Nagios XI	xi_service_notification_handler	OK - System: 'PowerEdge 2950 III', SN: '4H907G1'...
10:09:01	OK	jeffp	Custom	ed-notify-service-by-pushover	OK - System: 'PowerEdge 2950 III', SN: '4H907G1'...
10:04:03	WARNING	nagiosadmin	Nagios XI	xi_service_notification_handler	Temperature Probe 0 [System Board Ambient Temp] reads 8 C (min=8/3, max=42/47)
10:04:03	WARNING	nagiosadmin	Custom	ed-notify-service-by-pushover	Temperature Probe 0 [System Board Ambient Temp] reads 8 C (min=8/3, max=42/47)
10:04:03	WARNING	johnd	Nagios XI	xi_service_notification_handler	Temperature Probe 0 [System Board Ambient Temp] reads 8 C (min=8/3, max=42/47)
10:04:03	WARNING	johnd	Custom	ed-notify-service-by-pushover	Temperature Probe 0 [System Board Ambient Temp] reads 8 C (min=8/3, max=42/47)
10:04:03	WARNING	jeffp	Nagios XI	xi_service_notification_handler	Temperature Probe 0 [System Board Ambient Temp] reads 8 C (min=8/3, max=42/47)
10:04:03	WARNING	jeffp	Custom	ed-notify-service-by-pushover	Temperature Probe 0 [System Board Ambient Temp] reads 8 C (min=8/3, max=42/47)
But, no WARNING message in /var/log/messages (lines truncated to text prior to the @ sign) (tom is the nagiosadmin user)

Code: Select all

Dec 28 10:04:05 nagios postfix/smtp[29502]: BB6A8221341: to=<jeffp
Dec 28 10:04:05 nagios postfix/smtp[29506]: D6C1A221342: to=<johnd
Dec 28 10:09:02 nagios postfix/smtp[6893]: 019E0221351: to=<jeffp
Dec 28 10:09:02 nagios postfix/smtp[6929]: 3550A221353: to=<tom
Dec 28 10:09:02 nagios postfix/smtp[6908]: 1EEDF221352: to=<johnd
As can be seen, there is an xi_service_notification_handler line for nagiosadmin in "Notifications" at 10:04:03, but, no corresponding entry in /var/log/messages. The other contacts do have entries in Notifications for that 10:04:03 timeframe, as well as entries in /var/log/messages.

Re: WARNING notifications not being delivered via email

Posted: Mon Dec 28, 2015 3:16 pm
by tgriep
Can you login to the Nagios XI GUI as nagiosadmin, click on the username in the top right corner, then click on the Notification Preferences link on the left side and verify that the settings are correct?
Can you go to Admin > Manage Email Settings and post how the email settings are configured on your server?

Re: WARNING notifications not being delivered via email

Posted: Tue Dec 29, 2015 5:18 am
by manymiles
Well, there's my problem.

I somehow missed checking that area of settings. "Service Warning" was off in the "Notification Preferences" for the user itself.

Thanks for the help!

Re: WARNING notifications not being delivered via email

Posted: Tue Dec 29, 2015 10:10 am
by hsmith
Glad to hear it is resolved. Would you like us to close this thread?

Re: WARNING notifications not being delivered via email

Posted: Tue Dec 29, 2015 12:09 pm
by manymiles
Yes, you may close it.