[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mrtg
Subject:    Re: [mrtg] Safe to edit mrtg log files by hand?
From:       Alex van den Bogaerdt <alex () ergens ! op ! het ! net>
Date:       2007-09-09 11:19:59
Message-ID: 20070909111959.GB29694 () ergens ! op ! het ! net
[Download RAW message or body]

On Sat, Sep 08, 2007 at 02:03:51PM -0600, Kelly Jones wrote:
> Is it safe to edit mrtg's service.log files by hand?

Yes and no.

> I got some spurious 0's in mine (my fault this time), and want to
> delete them because they make my graph look weird.

Don't delete data.  MRTG's log files depend on proper formatting.
Some 600 rows are 5-minute rates, then 600 rows are 30-minute rates,
and so on.

If you would delete rows from that first range of 600, you would
shift data from the 30-minute part into the 5-minute part.

If MRTG doesn't detect this problem, you will be looking at false
data.

> I know I could just turn off "unknaszero", but I'm using that for
> another reason (notifications), so I want to edit the .log files directly.

Changing the numbers into "2593 0 2593 0" is probably OK.  But don't
delete lines.

HTH
-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/

_______________________________________________
mrtg mailing list
mrtg@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic