Lock already exists: /run/munin/munin-update.lock. Dying.
I'm heavily using Munin for monitoring and every 5 minutes I receive a mail saying that Lock already exists: /run/munin/munin-update.lock. Dying.
This is because Munin takes more than 5 minutes to process every nodes, might it be because the node takes too much time to answer or for any reason.
So the lock is not erased at the next launch.
Munin is ran every 5 minutes by /etc/cron.d/munin which contains
*/5 * * * * test -x /usr/bin/munin-cron && /usr/bin/munin-cron
In order to avaoid launching when the lock file still exists, I have to add the check before:
*/5 * * * * if [ ! -f /run/munin/munin-update.lock ]; then munin test -x /usr/bin/munin-cron && /usr/bin/munin-cron ; fi