Page 1 of 1

Notification is not making it to the mail queue

Posted: Thu Jul 25, 2019 4:25 pm
by lexisnexis
NagiosXI: 5.5.2
Postfix: 2.10.1

We have 2 monitors which trigger a notification message in the Nagios logs, but the notification e-mail never makes it to the mail queue. As far as I know, these are the only monitors which are having these problems. How would I troubleshoot this type of issue?

When I force a failure via the web interface, the notification e-mail gets sent out. If we force a failure on the remove server, the notification never makes it to the mail queue.

The below screenshot shows the nagios log where it shows the notification getting set, but the notification does not show up in the mail queue.
Capture.PNG
Info about the Nagios server:
- Using mod-gearman
- Using remote database

Re: Notification is not making it to the mail queue

Posted: Fri Jul 26, 2019 9:46 am
by mbellerue
It's very strange that you're getting notifications in one instance, but not another. But I do see in your screenshot that it looks like postfix isn't running. Try starting it and see if it fixes the issue.

Code: Select all

 sudo service postfix start 

Re: Notification is not making it to the mail queue

Posted: Fri Jul 26, 2019 10:13 am
by lexisnexis
I had postfix stopped, so view the queue. If postfix was running, the queue would always show empty. I have already started postfix in order to keep the notifications running.

Do you have a tool or location or command, which will allow me to see how Nagios hands off the notifications to the mail queue?

Re: Notification is not making it to the mail queue

Posted: Fri Jul 26, 2019 12:54 pm
by mbellerue
You can enable logging in the Email Settings. That will show an entry in /usr/local/nagiosxi/tmp/phpmailer.log whenever phpmailer passes off a message. Could you do that and post any entries shown in the phpmailer.log file?