Page 1 of 3

Notifications not going out.

Posted: Thu Apr 18, 2019 1:20 pm
by mkeey
I have Three XI servers that send notification emails to the same address / user / contact. However, two XI server emails are not being received or sent even though the Event Log shows they are...

Host Notification 2019-04-18 20:15:00 HOST NOTIFICATION: FAKEUSER01;FAKEHOST;DOWN;xi_host_notification_handler;check_icmp: Failed to resolve FAKEHOSTIP
Host Notification 2019-04-18 20:15:00 HOST NOTIFICATION: FAKEUSER02;FAKEHOST;DOWN;xi_host_notification_handler;check_icmp: Failed to resolve FAKEHOSTIP

I've compared everything on the "Good XI" to those on the "Bad XI" and can't find any discrepancies.
Contact config looks good, notification template was deployed, everything looks good.

Hoping you can help me identify what happened. These were all working a week ago!

Re: Notifications not going out.

Posted: Thu Apr 18, 2019 4:17 pm
by tgriep
Are all 3 server setup the same Email settings in the Admin > Manage Email Settings menu in the XI GUI?
If you enable debugging in that menu, do you see any errors in the following log files when an email is generated?

Code: Select all

/usr/local/nagiosxi/tmp/phpmailer.log
/var/log/maillog
/var/log/mail.log
If you are using a SMTP server to relay emails, you may have to login to that server to and see why it may be blocking the relaying of emails from the 2 servers.

Re: Notifications not going out.

Posted: Fri Apr 19, 2019 7:19 am
by mkeey
How can I send a PDF or other file directly to you as there is some proprietary information in what I need to send to you? Can't have this info accessible to the web.

Re: Notifications not going out.

Posted: Fri Apr 19, 2019 8:36 am
by tgriep
You can send a Private Message if you like.
After you login to the Forums, click on the User Control Panel link in the top left.
Click on the Private Messages Tab.
Fill in the information, files and as much details as possible and Submit it.
Any questions, let us know.

Re: Notifications not going out.

Posted: Fri Apr 19, 2019 8:53 am
by mkeey
Thanks. Actually an easier method was to click on your name from the previous post and a pop-up screen offered a "private message" option. Clicked on that an you now have an email containing a word doc with a step-by-step of last evenings issue.

Re: Notifications not going out.

Posted: Fri Apr 19, 2019 9:02 am
by mkeey
Support - How, exactly, does Nagios send an email? Is there a step-by-step process documented anywhere?

Re: Notifications not going out.

Posted: Fri Apr 19, 2019 9:17 am
by tgriep
This document describes how Nagios XI sends emails and explains how to configure your email settings. Nagios XI uses email to send notifications as well as for sending reports.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Thanks for the document on the contact settings and such but I will need to have the following done as well to determine what the issue could be.
If you enable debugging in that menu, do you see any errors in the following log files when an email is generated?

Code: Select all

/usr/local/nagiosxi/tmp/phpmailer.log
/var/log/maillog
/var/log/mail.log
If you are using a SMTP server to relay emails, you may have to login to the relay server to see why it may be blocking the relaying of emails from the 2 servers.
If you login to the XI GUI and go to the Admin > Manage Email Settings, what is the Mail Method used?

Re: Notifications not going out.

Posted: Fri Apr 19, 2019 10:02 am
by mkeey
Sent four private messages

Re: Notifications not going out.

Posted: Fri Apr 19, 2019 10:09 am
by mkeey
Please help me understand something. A little background first...

All of our Nagios XI & Fusion servers are Linux Redhat Virtual Servers. All disk is in a SAN environment. On Friday 04/12 we had a LUN failure on some disk in our SAN environment. That caused all of our Virtual Servers (windows, linux and aix) to "crash". We recovered the Nagios servers on Saturday night. Same night all of these email notifications started to not be received/sent (yet to be determined). A few of the servers had DB issues and we had to run the recover DB script. See my other case "SQL Error" from 04/15.

We did the following...
1) systemctl stop mariadb
2) /usr/local/nagiosxi/scripts/repair_databases.sh
3) systemctl start mariadb

If I'm not mistaken all of these email settings, contacts, etc, are stored in the Nagios DB... Yes?

Would it hurt anything to run the repair process to ensure that these DB's don't have some messed up pointers or corrupt rows?

Re: Notifications not going out.

Posted: Fri Apr 19, 2019 10:17 am
by tgriep
Thanks for the log files. I feel the issue is with either the relay email server or a server beyond that server.
In the log files, we see that the relay server is accepting the emails from the Nagios server.
After that, it is up to the relay server to pass them along so you will have to login to the relay server to see if they are getting blocked or dropped for some reason.