I've been having some odd resource issues with a cPanel VPS in recent months. The only major change made to the server during that timeframe was the addition of Munin. And several of the resource alert emails seem to indicate Munin is an open process at the time of failure. So for testing (process of elimination), I'd like to disable Munin without completely uninstalling it. Install and uninstall is rather easy from within WHM, while simply disabling it must be done through SSH.
Stop Munin:
Stop the Munin service:
Code:
service munin-node stop
Remove Munin from startup:
Confirm that Munin is set to run as server boot:
and assuming it is (and it should be), remove this entry:
Code:
chkconfig --del munin-node
Finally, restart the cron service:
Code:
/etc/init.d/crond restart
Remove the Munin cron job:
Verify that a munin cron job is scheduled:
Code:
crontab -u munin -l
and assuming it is (and it should be), edit the cron file for Munin, and comment out the task:
Code:
nano /var/spool/cron/munin
You'll find:
Code:
*/5 * * * * /usr/bin/munin-cron
and then add a # prefix to comment out a task
Code:
# */5 * * * * /usr/bin/munin-cron
... and that should do it.
To "unremove" Munin:
(1) Uncomment the cron and restart the service,
(2) Re-add Munin to the server startup tasks with
chkconfig --add munin
(3) Start the service