Where does Nagios XI put its SMTP mail logs?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Where does Nagios XI put its SMTP mail logs?

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Where does Nagios XI put its SMTP mail logs?

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Where does Nagios XI put its SMTP mail logs?

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Where does Nagios XI put its SMTP mail logs?

Post by benjaminsmith »

Hi Eric,

Thanks for the feedback!

We'll close this out.
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