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.
Notifications not working
Notifications not working
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notifications not working
I would tail the following file looking for errors
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
Code: Select all
tail -f /usr/local/nagiosxi/var/eventman.logAlso 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
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.
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$"2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notifications not working
While tailing this log, did you try to force a notification to be sent on a test service?BanditBBS wrote:The eventman.log has NOTHING except "PROCESSED 0 EVENTS" over and over and over.
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.logRe: Notifications not working
It was a crashed table! All is well now!
You can close this up and thanks!
You can close this up and thanks!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Notifications not working
Glad you got it resolved. Closing.You can close this up and thanks!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!