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:
Post
by scottwilkerson » Wed Sep 05, 2018 8:52 am
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
biroby
Posts: 21 Joined: Wed Nov 30, 2016 4:29 am
Post
by biroby » Wed Sep 05, 2018 9:17 am
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:
Post
by scottwilkerson » Wed Sep 05, 2018 10:42 am
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.
biroby
Posts: 21 Joined: Wed Nov 30, 2016 4:29 am
Post
by biroby » Thu Sep 06, 2018 1:17 am
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
Post
by DanielKissel » Thu Sep 06, 2018 6:03 am
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:
Post
by scottwilkerson » Thu Sep 06, 2018 7:37 am
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
biroby
Posts: 21 Joined: Wed Nov 30, 2016 4:29 am
Post
by biroby » Thu Sep 06, 2018 8:01 am
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:
Post
by scottwilkerson » Thu Sep 06, 2018 8:26 am
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.
biroby
Posts: 21 Joined: Wed Nov 30, 2016 4:29 am
Post
by biroby » Thu Sep 06, 2018 9:05 am
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:
Post
by scottwilkerson » Thu Sep 06, 2018 9:17 am
have new notifications been created in the Notifications report since making the change?