Page 1 of 1
Where does Nagios XI put its SMTP mail logs?
Posted: Fri Apr 23, 2021 7:03 am
by eloyd
So I'm banging my head against this issue and can't find an answer:
Code: Select all
Where does Nagios XI put its mail logs when SMTP is chosen as the mail delivery mechanism?
I know I'm dense and I often forget to take out the trash, but I've grepped the entire file system and can't find what I'm looking for.
Re: Where does Nagios XI put its SMTP mail logs?
Posted: Fri Apr 23, 2021 11:03 am
by gsmith
Hi,
If you have SMTP selected, but the Logging checkbox is unchecked like:
Screenshot 2021-04-23 105854.jpg
You will not have any output to a log file. However if you follow this document:
https://support.nagios.com/kb/article.php?id=820
you will be shown how to enable debug logging.
Then you can watch these files:
Code: Select all
/var/log/maillog
/usr/local/nagiosxi/tmp/phpmailer.log
Thanks
Re: Where does Nagios XI put its SMTP mail logs?
Posted: Fri Apr 23, 2021 11:51 am
by eloyd
All these years, I've been thinking that Nagios has been logging SMTP traffic to...you know...syslog all along. Now when I need to go find something, it's not there and I discover this.
Thanks. I would strongly suggest that this be a checkable box in the config GUI rather than having to go edit class files which tend to get overridden during upgrades. It would have been sooooo much easier!
You can close this.
Re: Where does Nagios XI put its SMTP mail logs?
Posted: Fri Apr 23, 2021 5:18 pm
by benjaminsmith
Hi Eric,
Thanks for the feedback!
We'll close this out.