Upgrading one of my toasters, I'm now getting warnings about running
multiple instances of mrtg.
Specifically, I see warnings like this:
Tuesday, 17 September 2013 at 17:05: ERROR: It looks as if you are
running two copies of mrtg in parallel on
the same config file. There is a lockfile
(/usr/share/toaster/mrtg/qmailmrtg.cfg_l) and it is
is only 1 seconds old ... Check your crontab.
(/etc/crontab and /var/spool/cron/root)
I run on 32-bit CentOS 5.9. The machine is doing nothing but run
QmailToaster so there's no reason for additional mrtg instances to run,
just the instance needed for the toaster.
Grepping /etc/cron* on a toaster that I haven't upgraded yet (and that
doesn't give me any mrtg warnings), I see these entries:
/etc/cron.d/mrtg:*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg
/etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file
/var/lib/mrtg/mrtg.ok
/etc/crontab:0-59/5 * * * * root env LANG=C /usr/bin/mrtg
/usr/share/toaster/mrtg/qmailmrtg.cfg 2>&1 > /dev/null
Grepping my upgraded toaster, I see these:
/etc/cron.d/mrtg:*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg
/etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file
/var/lib/mrtg/mrtg.ok
/etc/crontab:0-59/5 * * * * root env LANG=C /usr/bin/mrtg
/usr/share/toaster/mrtg/qmailmrtg.cfg 2>&1 > /dev/null
/etc/crontab:0-59/5 * * * * root env LANG=C /usr/bin/mrtg
/usr/share/toaster/mrtg/qmailmrtg.cfg 2>&1 > /dev/null
Obviously the duplicate entry in /etc/crontab is the cause of the
warnings so I'm going to delete that, but can anyone verify that
/etc/cron.d/mrtg is needed or not? Again, I'm not doing anything on
this machine other than run the toaster, so if it's not needed for the
toaster's mrtg then I don't need it.
Thanks.
Brent Gardner
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]