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.
[SOLVED] Notifications never attempted
[SOLVED] Notifications never attempted
Last edited by belvdr on Fri Oct 11, 2013 7:13 am, edited 2 times in total.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Notifications never attempted
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Notifications never attempted
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.
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
Attached are two snips of the service.
You do not have the required permissions to view the files attached to this post.
Re: Notifications never attempted
For contacts only, you need to use "generic-contact" template. The "xi_contact_generic" template is used for Nagios XI users.We are using contacts only, using the xi_contact_generic template.
Can you go to Home->Notifications and show us a screenshot of this page?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notifications never attempted
I changed the contact template but for the service it still shows Last Notification = Never.lmiltchev wrote:For contacts only, you need to use "generic-contact" template. The "xi_contact_generic" template is used for Nagios XI users.We are using contacts only, using the xi_contact_generic template.
Can you go to Home->Notifications and show us a screenshot of this page?
Attached is the notification list for the past year.
Thank you!
You do not have the required permissions to view the files attached to this post.
Re: Notifications never attempted
"last year" is actually "last year" as in 2012. Should you have data for 2012? If not, could you screenshot "this year"?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Notifications never attempted
Good point, I should have looked more closely.abrist wrote:"last year" is actually "last year" as in 2012. Should you have data for 2012? If not, could you screenshot "this year"?
Now I see the one alert sent out when I clicked "Send custom notification"
You do not have the required permissions to view the files attached to this post.
Re: Notifications never attempted
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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notifications never attempted
Absolutely. The monitoring contact will eventually be a distribution group email address, but I have it set to me only for now.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?
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.