Stopped receiving email notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Stopped receiving email notifications

Post by benjaminsmith »

Hi @yeahMon,

The logs look normal. You can follow the process from the notification generation within Nagios XI to the record of message sent in the mail log.

[removed logs]

You can pull the notification report from Home > Incident Management > Notifications and trace back the notifications to the mail logs to further understand what's happening. It's helpful to focus on or trace a specific host and contact.

However, it looks the message are getting to the relay but not being delivered in time or not at all. You can try testing this by using the SMTP server option in Admin > System Config > Manage Email Settings.
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!
yeahMon
Posts: 27
Joined: Thu Oct 29, 2015 1:26 pm

Re: Stopped receiving email notifications

Post by yeahMon »

Hi Benjamin,

I don't have access to SMTP server. Sendmail is what we are using.

I checked on the nagios server and postfix does not have a que.
Does nagios que events or notifications that are getting blocked?

The issue seems to be specifically with email notifications that come in through 'problem' type events from the monitored hosts. Notifications triggered from the nagios ui seem to be fine. I dont think there is a problem with our postfix/sendmail, as i can send a message from the command line on the nagios server, as well as through test/custom notifications.

Also when i tail the maillog, and go out cause a warning/critical event, the maillog does not even move.
So the event is not getting that far.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Stopped receiving email notifications

Post by benjaminsmith »

Hi @yeahMon,

I noticed this warning in the last batch of logs:
PHP Warning: file_put_contents(/usr/local/nagiosxi/tmp/phpmailer.log): failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/utils-email.inc.php on line 160
User has mobile text notifications disabled.
Let's change the permissions on that script:

Code: Select all

chown nagios.nagios /usr/local/nagiosxi/tmp/phpmailer.log
chmod 660 /usr/local/nagiosxi/tmp/phpmailer.log
It would be best to open a support ticket at this point to further diagnose the issue. I will follow up the tech regarding this case.

Please upload a fresh system profile and a notifications report ( go to Home > Incident Management > Notifications ) for the last 24 hours to the ticket. Also, support tickets are private and it will be easier to share information.

To open a support ticket go to:
https://support.nagios.com/tickets/

Let me know if you have any questions.
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!
yeahMon
Posts: 27
Joined: Thu Oct 29, 2015 1:26 pm

Re: Stopped receiving email notifications

Post by yeahMon »

Thanks Benjamin,

Yesterday i restarted the notification process. We started to receive notifications that appeared to be slightly delayed. Over last night they seem to be back on track. I am wondering if the DB repairs and table truncation helped fix the issue, but the restart was required?

Anyways, i would like to monitor the system for 24 HRs, and keep track of events through the UI and email, to ensure that everything is working properly.

I'll report back tomorrow, at which point i will either log a ticket if required, or, 'knock on wood', close the issue.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Stopped receiving email notifications

Post by benjaminsmith »

Hi Yeahmon,
I'll report back tomorrow, at which point i will either log a ticket if required, or, 'knock on wood', close the issue.
Sounds good. I'll keep this post open and wait for your reply.
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!
yeahMon
Posts: 27
Joined: Thu Oct 29, 2015 1:26 pm

Re: Stopped receiving email notifications

Post by yeahMon »

Benjamin,

Another 24 Hrs and notifications seem to be working correctly!
I guess we can close this thread now.

Thanks for your help in getting this fixed.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Stopped receiving email notifications

Post by benjaminsmith »

Another 24 Hrs and notifications seem to be working correctly!
I guess we can close this thread now.

Thanks for your help in getting this fixed.
No problem. We'll close this out, and if you have any issues again, just open a new thread.

Have a great weekend!
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!
Locked