Phpmailer Log Size

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Phpmailer Log Size

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Phpmailer Log Size

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Re: Phpmailer Log Size

Post by andyb4u »

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

Post 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
}
Locked