We tried to test how our nagios XI server is working with a SMTP server via phpmailer, and after some tests we found an interesting issue.
There was no log data coming out in the "/usr/local/nagiosxi/tmp/phpmailer.log" file,unless we use send test mail function.
No matter we blocked out the nagios Xi server from the SMTP server or let it work normally.Nothing left in the log file from the host or service
alert notifications.ONLY when we used 'send test mail' function, will there be log message shown.
attachments are our setting and phpmailer log result.
is there any one ever having such experience or knowing how to deal with this problem?
BTW, we DID receive the notification emailS in either way.ONLY the log data is not shown.
Wondering why there is no log data in phpmailer.log, unless.
Wondering why there is no log data in phpmailer.log, unless.
You do not have the required permissions to view the files attached to this post.
Last edited by ahm002 on Mon Jun 29, 2020 11:34 am, edited 1 time in total.
Re: Wondering why there is no log data in phpmailer.log, unl
BTW, we DID receive the notification emailS in either way.ONLY the log data is not shown.
Re: Wondering why there is no log data in phpmailer.log, unl
problem solved,it's a matter of permission.need to chmod to let nagios group users to write data into log files.
Anyway.Is it possible to record more detail log messages?
We can tell only there is a message sent ,not able to tell what alert notification is sent via reading log data
Anyway.Is it possible to record more detail log messages?
We can tell only there is a message sent ,not able to tell what alert notification is sent via reading log data
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Wondering why there is no log data in phpmailer.log, unl
HI,
See:
https://support.nagios.com/kb/article/p ... g-820.html
https://github.com/PHPMailer/PHPMailer/ ... -Debugging
Glad you got that worked out. Yes, normally, if you want to get more details for troubleshooting, you can use the following guide to turn on debugging output. However, this is typically just used for troubleshooting then disabled again.problem solved,it's a matter of permission.need to chmod to let nagios group users to write data into log files.
Anyway.Is it possible to record more detail log messages?
See:
https://support.nagios.com/kb/article/p ... g-820.html
https://github.com/PHPMailer/PHPMailer/ ... -Debugging
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!