Page 1 of 1
Notifications not working
Posted: Fri Nov 30, 2018 12:18 pm
by BanditBBS
Currently trying to help
@fieldsa with an issue he is having on his NagiosXI.
He is running XI 5.5.7 and is configured to use sendmail. His contacts were all goofy due to importing from old core installation. yesterday we deleted all contacts and XI users. We then setup his AD integration and recreated all of the XI users that way. If any user logs in and sends a test notification it sends via sendmail and works. However when a host or service has an issue and kicks off a real notification they do not go through.
@fieldsa's account had both the XI handler and the old core notify-by-email command and he was receiving notifications via the old notify by email commands.
Any hints on what we can check? Notifications are enabled, the XI users all have it enabled 24/7 as well. We are seeing nothing written to phpmailer log except when we do the test emails and nothing to sendmail log except when using the old notify-by-email commands.
Re: Notifications not working
Posted: Fri Nov 30, 2018 12:31 pm
by scottwilkerson
I would tail the following file looking for errors
Code: Select all
tail -f /usr/local/nagiosxi/var/eventman.log
Also verify that when looking at the user profile in Nagios XI that notifications are enabled, and on the "Notification Methods" tab "Receive alerts via email." is checked
Also on the "Notification Preferences" section that all the boxes are checked and the time periods tab is filled in....
Finally check the Notification report to verify it show notifications going out with the Dispatcher as "Nagios XI"
If all of this checks out, we need to look at the XI notification commands in the CCM to make sure they didn't somehow get changed
Re: Notifications not working
Posted: Fri Nov 30, 2018 3:05 pm
by BanditBBS
The eventman.log has NOTHING except "PROCESSED 0 EVENTS" over and over and over.
Notifications are enabled globally.
Notification preferences have everything checked that should be and receive via email is checked as well. Notification report is fille dwith stuff being dispatched to Nagios XI.
Code: Select all
/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php --notification-type=service --contact="$CONTACTNAME$" --contactemail="$CONTACTEMAIL$" --type=$NOTIFICATIONTYPE$ --escalated="$NOTIFICATIONISESCALATED$" --author="$NOTIFICATIONAUTHOR$" --comments="$NOTIFICATIONCOMMENT$" --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hostalias="$HOSTALIAS$" --hostdisplayname="$HOSTDISPLAYNAME$" --service="$SERVICEDESC$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --servicestate=$SERVICESTATE$ --servicestateid=$SERVICESTATEID$ --lastservicestate=$LASTSERVICESTATE$ --lastservicestateid=$LASTSERVICESTATEID$ --servicestatetype=$SERVICESTATETYPE$ --currentattempt=$SERVICEATTEMPT$ --maxattempts=$MAXSERVICEATTEMPTS$ --serviceeventid=$SERVICEEVENTID$ --serviceproblemid=$SERVICEPROBLEMID$ --serviceoutput="$SERVICEOUTPUT$" --longserviceoutput="$LONGSERVICEOUTPUT$" --datetime="$LONGDATETIME$"
Re: Notifications not working
Posted: Fri Nov 30, 2018 3:20 pm
by scottwilkerson
BanditBBS wrote:The eventman.log has NOTHING except "PROCESSED 0 EVENTS" over and over and over.
While tailing this log, did you try to force a notification to be sent on a test service?
I ask because all of the notifications that run through XI go through a cron job that populates this log.
Also, any errors here?
Code: Select all
tail -20 /var/log/cron
tail -20 /var/log/mysqld.log
Re: Notifications not working
Posted: Fri Nov 30, 2018 3:59 pm
by BanditBBS
It was a crashed table! All is well now!
You can close this up and thanks!
Re: Notifications not working
Posted: Fri Nov 30, 2018 4:07 pm
by benjaminsmith
You can close this up and thanks!
Glad you got it resolved. Closing.