Notification by mail stopped after upgrade to 5.5.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification by mail stopped after upgrade to 5.5.3

Post by scottwilkerson »

Can you send the /usr/local/nagiosxi/tmp/phpmailer.log

If it doesn't exist run the following

Code: Select all

touch /usr/local/nagiosxi/tmp/phpmailer.log
chmod ug+rw /usr/local/nagiosxi/tmp/phpmailer.log
chown nagios.nagios /usr/local/nagiosxi/tmp/phpmailer.log
Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
biroby
Posts: 21
Joined: Wed Nov 30, 2016 4:29 am

Re: Notification by mail stopped after upgrade to 5.5.3

Post by biroby »

Hi Scott,
file exists and attached to this reply.

I attach also screenshot from event log where display send notification.

Thanks for your support,
biroby
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification by mail stopped after upgrade to 5.5.3

Post by scottwilkerson »

All those lines that show:

Code: Select all

[09-18-2017 01:12:13] Message sent! (method=smtp;host=10.250.1.14;port=25;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
Mean that 10.250.1.14 accepted the message for delivery. At this point you would need to check the logs on that server to see why it wasn't delivered, or possibly a spam filter.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
biroby
Posts: 21
Joined: Wed Nov 30, 2016 4:29 am

Re: Notification by mail stopped after upgrade to 5.5.3

Post by biroby »

Hi Scott,
if you look at the timestamp date you see is about 2017 when notification running correctly.

We have notification problem from September 2108 when we upgraded to 5.5.3 version; from this date we don't receive any notification.

Thanks
Biroby
DanielKissel
Posts: 14
Joined: Thu Aug 30, 2018 5:03 am

Re: Notification by mail stopped after upgrade to 5.5.3

Post by DanielKissel »

I have the same issue here and can verify that this occured after the upgrade to 5.5.3 as well.

Checked our Mail Server and no Messages were received. This means the problem must be in nagios. Sending test mails from nagios works fine.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification by mail stopped after upgrade to 5.5.3

Post by scottwilkerson »

biroby wrote:Hi Scott,
if you look at the timestamp date you see is about 2017 when notification running correctly.

We have notification problem from September 2108 when we upgraded to 5.5.3 version; from this date we don't receive any notification.

Thanks
Biroby
Apologies, can you show the permissions on that file?

Code: Select all

ls -al /usr/local/nagiosxi/tmp/phpmailer.log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
biroby
Posts: 21
Joined: Wed Nov 30, 2016 4:29 am

Re: Notification by mail stopped after upgrade to 5.5.3

Post by biroby »

Hi Scott,
this is file permission.

[root@itpglnx02 ~]# ls -al /usr/local/nagiosxi/tmp/phpmailer.log
-rw-r--r-- 1 apache nagios 84 Sep 4 12:22 /usr/local/nagiosxi/tmp/phpmailer.log
[root@itpglnx02 ~]#


Thanks
Biroby
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification by mail stopped after upgrade to 5.5.3

Post by scottwilkerson »

ok, looks like it isn't writable by nagios, please run the following:

Code: Select all

chown nagios.nagios /usr/local/nagiosxi/tmp/phpmailer.log
chmod g+w/usr/local/nagiosxi/tmp/phpmailer.log
Then after the next few notifications are supposed to go out, they should be logged there.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
biroby
Posts: 21
Joined: Wed Nov 30, 2016 4:29 am

Re: Notification by mail stopped after upgrade to 5.5.3

Post by biroby »

Hi Scott,
i've done steps in your post but problem persists. Nothing was write on /usr/local/nagiosxi/tmp/phpmailer.log.

This is current permission:

[root@itpglnx02 log]# ls -la /usr/local/nagiosxi/tmp/phpmailer.log
-rw-rw-r-- 1 nagios nagios 84 Sep 4 12:22 /usr/local/nagiosxi/tmp/phpmailer.log
[root@itpglnx02 log]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification by mail stopped after upgrade to 5.5.3

Post by scottwilkerson »

have new notifications been created in the Notifications report since making the change?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked