Migrated from Nagios Core - notifications not being sent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Migrated from Nagios Core - notifications not being sent

Post by jpipitone »

We've migrated from Nagios Core 2.9 over to NagiosXI.

Our notifications were working perfectly, and sending emails to a contact group known as "BigBrothers" which was assigned a [email protected].

I've noticed that in our NagiosXI config, the BigBrothers contact, under the Misc. Settings tab, has 2 free variable definitions and they are:

host_notifications_enabled 0

service_notifications_enabled 0

I've set those both to 1, and we are still not receiving notifications. I've confirmed that the hosts and services are all set to notify, and that in our nagios.cfg - enable_notifications is set to 1.

Perhaps there's something else that we are missing? I appreciate any help. Maybe the host is flapping and preventing notifications from being sent?

I've also confirmed that our test emails and test email notifications are indeed going through, so the issue is not with our SMTP server as the test emails are being sent with no issues.

Environment:

CentOS
NagiosXI 2009R1.4B

-Joe
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Migrated from Nagios Core - notifications not being sent

Post by rdedon »

Hello Joe,
could you check http://[serverIP]/nagiosxi/account/
under Notification Options look through Notification Preferences and Notification Methods to see if they are enabled?
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Migrated from Nagios Core - notifications not being sent

Post by jpipitone »

Yes, they're enabled.

I also took a look at the notification log file, and the contact is set to BigBrother, however the Notification Command that is triggered is "xi_host_notification_handler" rather than "notify-by-email"

Where can I change this?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Migrated from Nagios Core - notifications not being sent

Post by mguthrie »

If you're migrating from Core it's important to know the relationship of XI users and contacts, as they're a bit different than in Nagios Core.

This doc should give you the info you need.
http://assets.nagios.com/downloads/nagi ... ndcontacts
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Migrated from Nagios Core - notifications not being sent

Post by jpipitone »

The document helped, here's what I'm seeing in the event log:

Code: Select all

2011-03-31 06:17:13HOST NOTIFICATION: BigBrothers;HOST-01;DOWN;xi_host_notification_handler;CRITICAL - 192.168.0.0: rta nan, lost 100%
However, no email notification is coming through.

I'll keep digging.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Migrated from Nagios Core - notifications not being sent

Post by mguthrie »

You can also add additional notification commands for a contact. Don't remove the xi_host/service_notification_handler command, but after it you can also add additional commands.

Can I have you double check the following things:

I know this was mentioned above, but I like to be certain. Can you make sure that notifications are enabled in XI in the two following places:
Configure->My Account Settings->Notification Preferences->(enabled notifications checkbox), and make sure to select the appropriate notification types.
Configure->My Account Settings->Notification Methods->(checkbox for email notifications).

Also, can you verify that notifications are enabled for that host or service?
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Migrated from Nagios Core - notifications not being sent

Post by jpipitone »

Yep - everything is enabled everywhere - I am completely stumped.

Is there any way that we can chat via telephone and do a remote session so you can take a look at our config to see what I may be missing?
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Migrated from Nagios Core - notifications not being sent

Post by jpipitone »

under Config, for each host and service - am I required to enable the Event Handler, and assign an event handler xi_host/service_notification_handler?

UPDATE: I think I may have solved it.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Migrated from Nagios Core - notifications not being sent

Post by cwscribner »

How did you solve this problem? The same thing is happening to me.
Last edited by cwscribner on Thu Jul 28, 2011 9:20 pm, edited 1 time in total.
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Migrated from Nagios Core - notifications not being sent

Post by jpipitone »

Few things:

1) Contacts that you wish to email must have accounts in Nagios XI - before we were just emailing to an email address
2) I created each user, and then created a new contact group, and added all of the contacts to that group
3) For each host and each service, I applied a 24x7 check period
4) For each host and each service, I applied a 24x7 notification period
5) Enabled notifications for each host and each service

Since I imported from a Nagios 2.9 Core installation, I ran the following queries (For each host) and was able to update the records much easier than doing one at a time - this saved me several hours of countless clicking. I already have carpal tunnel, not trying to make it any worse!

Code: Select all

UPDATE  `nagiosql`.`tbl_host` SET  `notifications_enabled` =  '1',
`last_modified` = NOW( ) WHERE  `tbl_host`.`host_name` ='hostname';

UPDATE  `nagiosql`.`tbl_host` SET  `notification_options` =  'd,u,r,f,s',
`last_modified` = NOW( ) WHERE  `tbl_host`.`host_name` ='hostname';

UPDATE  `nagiosql`.`tbl_service` SET  `notification_options` =  'w,u,c,r,f,s',
`last_modified` = NOW( ) WHERE  `tbl_service`.`config_name` ='servicename';

UPDATE  `nagiosql`.`tbl_service` SET  `notifications_enabled` =  '1',
`last_modified` = NOW( ) WHERE  `tbl_service`.`config_name` ='servicename';
After that, I simply clicked Apply Configuration and all is well!
Locked