Notifications not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mobiledataforce
Posts: 68
Joined: Fri Mar 15, 2013 1:35 pm

Notifications not working

Post by mobiledataforce »

Could someone please provide some insight as to why my notifications are not working? I am able to send/receive test notifications without an issue but am not receiving them from anything else. I have verified all of the following as suggested by Nagios and am still not receiving notifications (I had all these configurations correct to begin with).

"-Are notifications enabled for each host? You can check this in the Core Config Manager by clicking on a host, then going to the Alert Settings tab and verifying that the Notification enabled checkbox is set to "on", and that the correct contacts are configured to receive alerts.

You can also check this outside of the CCM by going to the Home menu, then Host Detail, then selecting a host. Click the Configure tab, then "Re-configure this host", and verify that the settings in the notifications tab are correct.

- Are notification enabled for your user? You can check this by clicking your username in the upper right of the interface, then Notification preferences, and verifying that the Enable Notifications checkbox is checked at the top.

- Is there any chance your mailserver is blocking the messages, or placing them in Spam? In the case of email alerts, check the settings in Admin -> Manage Email Settings. By default the "Send Mail From" is an @localhost, which is often automatically blocked. You can change this to a more friendly address that won't be flagged as junk.

Other than the above, I can't think of many reasons they wouldn't be getting to you. If none of the above helps, your best option would be to post on the General Support forum for direct help from the techs."

Any help or guidance would be much appreciated. I am not going to get the go ahead to purchase until notifications are working properly.

Thanks
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Notifications not working

Post by sreinhardt »

What notification command are you using? Often the standard core notify-host-by-email instead of the XI xi-notify-host-by-email are switched around, especially if you have converted from core to XI and imported configs. You should be able to see this on the notifications tab for either hosts or service checks.
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.
mobiledataforce
Posts: 68
Joined: Fri Mar 15, 2013 1:35 pm

Re: Notifications not working

Post by mobiledataforce »

I can't find this area. The only place I see a Notifications tab is from Home>Host/Service Detail>Configure tab>Reconfigure Host>Notifications.

Thanks for the fast reply!
mobiledataforce
Posts: 68
Joined: Fri Mar 15, 2013 1:35 pm

Re: Notifications not working

Post by mobiledataforce »

I found notify-host-by-email under the Commands section of the CCM. The Command Type is set to misc command, it is checked as active, and here is the command line:
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$

Thanks again
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notifications not working

Post by scottwilkerson »

Can you go to CCM -> Contacts -> Modify -> Alert Settings Tab -> Manage Host Notification Commands Button and look to see what is selected

Also, you may want to click on your username in the upper right and go to "Notification Preferences" make sure they are enabled for your user as well as "Notification Methods" set to email or sms or both
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Notifications not working

Post by sreinhardt »

My mistake, you would actually want to look in CCM under each user, alert settings, manage host\service notification commands.
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.
mobiledataforce
Posts: 68
Joined: Fri Mar 15, 2013 1:35 pm

Re: Notifications not working

Post by mobiledataforce »

xi_host_notification_handler is what is/was selected. I added notify-host-by-email to the assigned list (I did not remove xi_host_notification_handler). I verified the Notification Preferences and Methods again. I still am not receiving notifications.

I do not see user or alert settings directly under the CCM.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Notifications not working

Post by sreinhardt »

If these are nagios users as well as contacts, you want to stay with the XI... commands as it will send differently. Have you configured the smtp settings within the admin menu for your environment? If so, have you been able to successfully send a test email?
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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications not working

Post by abrist »

The notify-host-by-email and notify-service-by-email commands should not be used. There are core specific. The xi_host_notification_handler and xi_service_notification_handler include email notifications.
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.
mobiledataforce
Posts: 68
Joined: Fri Mar 15, 2013 1:35 pm

Re: Notifications not working

Post by mobiledataforce »

With the notify-host-by-email added to the list I am able to send custom notifications; I am unable with only xi_host_notification_handler on the list. The Mail Method is set to Sendmail. Do I have to use SMTP? I don't understand why test and custom notifications are working if that's the case.
Locked