[SOLVED] Notifications never attempted

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

[SOLVED] Notifications never attempted

Post 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.
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

Post 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.
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.
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: Notifications never attempted

Post 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.
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: Notifications never attempted

Post by belvdr »

Attached are two snips of the service.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notifications never attempted

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: Notifications never attempted

Post 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!
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications never attempted

Post by abrist »

"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.
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: Notifications never attempted

Post 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"
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notifications never attempted

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: Notifications never attempted

Post 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.
Locked