Page 1 of 2

Notifications not working

Posted: Fri Mar 15, 2013 1:41 pm
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

Re: Notifications not working

Posted: Fri Mar 15, 2013 1:48 pm
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.

Re: Notifications not working

Posted: Fri Mar 15, 2013 2:08 pm
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!

Re: Notifications not working

Posted: Fri Mar 15, 2013 2:24 pm
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

Re: Notifications not working

Posted: Fri Mar 15, 2013 2:34 pm
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

Re: Notifications not working

Posted: Fri Mar 15, 2013 2:35 pm
by sreinhardt
My mistake, you would actually want to look in CCM under each user, alert settings, manage host\service notification commands.

Re: Notifications not working

Posted: Fri Mar 15, 2013 2:57 pm
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.

Re: Notifications not working

Posted: Fri Mar 15, 2013 3:02 pm
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?

Re: Notifications not working

Posted: Fri Mar 15, 2013 3:03 pm
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.

Re: Notifications not working

Posted: Fri Mar 15, 2013 3:16 pm
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.