Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

Munin generates new statistics every 5 minutes and this can result in a large log file in the directory /var/log/munin/ - sometimes it will be Gigabytes!
Unlike most other services on a cPanel server, there is no rotation of the log files by default. However, it's quite easy to setup rotation by following this guide.

These instructions are intended for Linux server administrators who have previous experience working with Munin & Logrotate, and require some direction only. If your server is with Maxer Host, please contact our technical support and we can carry out this work for you. Please do not attempt it if you are unsure.

1) Login to SSH as root user

2) Navigate to the /var/log/munin directory and check how large the log files are:

cd /var/log/munin/
du -sh *


3) Open the munin file under the directory /etc/logrotate.d/
If no log rotation is in place, this file should be empty.

nano /etc/logrotate.d/munin

4) Paste the following lines into the file:

/var/log/munin/munin-update.log {
rotate 5
monthly
compress
missingok
notifempty
}

/var/log/munin/munin-node.log {
rotate 5
monthly
compress
missingok
notifempty
}

5) Exit the file (Ctrl + X) and save the changes.

6) Logrotate will run automatically but if you don't want to wait, you can force it to run immediately with this command:

logrotate --force /etc/logrotate.d/munin

9) That's the work done.

You might want to check the /var/log/munin directory and check how large the log files are now:

cd /var/log/munin/
du -sh *

Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution