Page 1 of 2
[SOLVED] Notifications never attempted
Posted: Wed Oct 09, 2013 4:28 pm
by belvdr
Configuration:
Manual installation on CentOS 6.4 (64-bit) with latest updates
The CentOS installation was set to minimal
We do run proxies for Internet access. Exceptions made to no_proxy environment variable for localhost and our domain
We are using SMTP to send emails.
The issue I'm having is that Nagios never attempts any notifications at all. On my test target, I stop httpd and Nagios shows it as Critical and notifications = never.
I followed the guide at:
http://assets.nagios.com/downloads/nagi ... ations.pdf
and followed the troubleshooting guide at:
http://support.nagios.com/wiki/index.ph ... n_Problems
The contact is configured with notify-host-by-email and notify-service-by-email. Test emails work as do send custom notifications. However, automatic notifications are never attempted.
I have also executed the Write Config Files tool and verified the files have notifications_enabled = 1.
*** EDIT ***
Post with solution here:
http://support.nagios.com/forum/viewtop ... =10#p74950
I had the "n" box checked on the contact, which forces no notifications to be sent.
Re: Notifications never attempted
Posted: Wed Oct 09, 2013 4:44 pm
by sreinhardt
With your test notifications, have you enabled the smtp settings? Also is this contact also an XI user? I have a feeling the issue you are running into is that XI has two ways of handling notifications, contacts only by default will use the internal mta to send, and if not configured will stay local to the system. The second option is for contacts that are also users, the notification handler for them would be xi-notify-host\service-by-email and users phpmailer and postgres information to send via smtp to a mail relay or mail server.
Re: Notifications never attempted
Posted: Wed Oct 09, 2013 4:52 pm
by belvdr
Other than configuring Nagios to use SMTP and configuring the contact to use notify-host-by-email and notify-service-by-email, where do you enable SMTP? I have both host and service notifications configured.
To note, I've also sent a test SNMP trap in a critical state and Nagios sees it as critical but never notifies.
We are using contacts only, using the xi_contact_generic template.
What concerns me is not that I'm not receiving the email alert, but that Nagios never attempts to do any type of notification. It's as if it thinks it shouldn't do anything about the critical state.
Re: Notifications never attempted
Posted: Wed Oct 09, 2013 5:04 pm
by belvdr
Attached are two snips of the service.
Re: Notifications never attempted
Posted: Thu Oct 10, 2013 10:23 am
by lmiltchev
We are using contacts only, using the xi_contact_generic template.
For contacts only, you need to use "generic-contact" template. The "xi_contact_generic" template is used for Nagios XI users.
Can you go to Home->Notifications and show us a screenshot of this page?
Re: Notifications never attempted
Posted: Thu Oct 10, 2013 12:15 pm
by belvdr
lmiltchev wrote:We are using contacts only, using the xi_contact_generic template.
For contacts only, you need to use "generic-contact" template. The "xi_contact_generic" template is used for Nagios XI users.
Can you go to Home->Notifications and show us a screenshot of this page?
I changed the contact template but for the service it still shows Last Notification = Never.
Attached is the notification list for the past year.
Thank you!
Re: Notifications never attempted
Posted: Thu Oct 10, 2013 12:21 pm
by abrist
"last year" is actually "last year" as in 2012. Should you have data for 2012? If not, could you screenshot "this year"?
Re: Notifications never attempted
Posted: Thu Oct 10, 2013 1:11 pm
by belvdr
abrist wrote:"last year" is actually "last year" as in 2012. Should you have data for 2012? If not, could you screenshot "this year"?
Good point, I should have looked more closely.
Now I see the one alert sent out when I clicked "Send custom notification"
Re: Notifications never attempted
Posted: Thu Oct 10, 2013 1:31 pm
by lmiltchev
After you change the templates, have you tried triggering a state change for one of your hosts, and see if the monitoring contact assigned to this host will get notified?
Re: Notifications never attempted
Posted: Thu Oct 10, 2013 1:34 pm
by belvdr
lmiltchev wrote:After you change the templates, have you tried triggering a state change for one of your hosts, and see if the monitoring contact assigned to this host will get notified?
Absolutely. The monitoring contact will eventually be a distribution group email address, but I have it set to me only for now.
I've tried enabling global event handlers but nothing seems to tell Nagios to take action on a critical state.
I have also setup an SNMP Trap service and sending critical test traps over. Nagios doesn't take action on any of them.