[Bug 376709] Re: /var/www/mrtg does not exist, so cron output is mailed every 5 minutes

Kenyon Ralph kenyon at kenyonralph.com
Fri Jun 12 00:00:16 UTC 2009


Here is /etc/cron.d/mrtg from intrepid:

*/5 *   * * *   root    if [ -d /var/lock/mrtg ]; then if [ -x
/usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg
/etc/mrtg.cfg >> /var/log/mrtg/mrtg.log 2>&1; fi else mkdir
/var/lock/mrtg; fi


And from jaunty:

*/5 *   * * *   root    if [ ! -d /var/lock/mrtg ]; then mkdir
/var/lock/mrtg; fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ];
then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a
/var/log/mrtg/mrtg.log ; fi


It looks like these are both intended to have the same effects, so I
don't know why it was changed, but the jaunty one causes output, which
cron emails. The emails look like this:


Date: Wed, 25 Mar 2009 20:10:05 -0700
From: Cron Daemon
To: root
Subject: Cron <root at localhost> if [ ! -d /var/lock/mrtg ]; then mkdir /var/lock/mrtg;
     fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C
    /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi

ERROR: CFG Error in "workdir", line 8: Working directory /var/www/mrtg
does not exist


On intrepid, these error messages would instead go only to
/var/log/mrtg/mrtg.log.

-- 
/var/www/mrtg does not exist, so cron output is mailed every 5 minutes
https://bugs.launchpad.net/bugs/376709
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list