Comment 7 for bug 30428

Revision history for this message
Kevin Otte (nivex) wrote : Re: [Bug 30428] Re: /var/lock/mrtg disappears on reboot

On Thu, Aug 24, 2006 at 08:33:41PM -0000, Victor Hugo dos Santos wrote:
> */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

The problem with this is that no data is logged during this run. You will
have a 10 minute gap in all your graphs.

It is probably better to simply do the mkdir in /etc/rc.local until the
package itself is corrected.

--
Kevin Otte, N8VNR
<email address hidden>
http://www.nivex.net/

-=-

"Those who cannot remember the past are condemned to repeat it."
-- George Santayana

"It seems no one reads Santayana anymore."
-- Cdr. Susan Ivanova, Babylon 5