Hi,
I'm trying to find out if the /usr/local/nagiosxi/tmpphpmailer.log file size is managed by NagiosXI or will it just keep growing?
Regards,
Andy
Phpmailer Log Size
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Phpmailer Log Size
Hello, @andyb4u. I think you can regulate the debugging levels in this config file:
What's the size of your phpmailer.log file as of right now?
Code: Select all
/usr/local/nagiosxi/html/includes/phpmailer/class.smtp.phpAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Phpmailer Log Size
It's currently 188 MB.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Phpmailer Log Size
I assume that's handled by phpmailer, but you could easily add log rotation to /etc/logrotate.d/nagiosxi:
Code: Select all
/usr/local/nagiosxi/tmp/*log {
missingok
notifempty
size 5M
rotate 1
compress
}