Your message dated Thu, 5 Jun 2008 09:06:09 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Re: mrtg: No timestamps in log file
has caused the Debian Bug report #204816,
regarding mrtg: No timestamps in log file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
204816: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=204816
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: mrtg
Version: 2.9.17-4 (not installed)
Severity: wishlist

Having no timestamps in the log files of mrtg makes it difficult to
judge if the last error is old or from a recent run. I fixed it on my
machine by adding this little perl script into the pipe in the cron job:

---->8----
#!/usr/bin/perl

$| = 1;

while (<>) {
        print "[".localtime()."] ".$_;
}
----8<----

The line in /etc/cron.d/mrtg is now (I also made this line a bit more
comapct:

0-55/5 * * * * root [ -x /usr/bin/mrtg -a -r /etc/mrtg.cfg ] &&
/usr/bin/mrtg /etc/mrtg.cfg 2>&1 | /etc/mrtg-scripts/log-timestamp.pl >>
/var/log/mrtg/mrtg.log

(This in one line)

Greetings Tobi

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux lafiel 2.4.20-1-k7 #1 Sat Mar 22 15:17:52 EST 2003 i686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---
Version: 2.14.3-1

Upstream added timestamp in logging in version 2.14.0, hence it's
fixed in Debian at above package version.

Thanks for the report!

Sandro

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


--- End Message ---

Reply via email to