Page 1 of 1
Phpmailer Log Size
Posted: Fri Dec 15, 2017 7:47 am
by andyb4u
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
Re: Phpmailer Log Size
Posted: Fri Dec 15, 2017 11:38 am
by npolovenko
Hello,
@andyb4u. I think you can regulate the debugging levels in this config file:
Code: Select all
/usr/local/nagiosxi/html/includes/phpmailer/class.smtp.php
What's the size of your phpmailer.log file as of right now?
Re: Phpmailer Log Size
Posted: Fri Dec 15, 2017 2:49 pm
by andyb4u
It's currently 188 MB.
Re: Phpmailer Log Size
Posted: Fri Dec 15, 2017 3:04 pm
by dwhitfield
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
}