[rrd-users] Re: RRD DS;heartbeat and MRTG

Tobias Oetiker oetiker at ee.ethz.ch
Tue Oct 12 07:43:52 MEST 1999


Yesterday you sent me mail regarding Re: [rrd-users] Re: RRD DS;heartbeat...:

*> On Mon, 11 Oct 1999, Tobias Oetiker wrote:
*> 
*> > *> But if I decided on a 10 minute or 15 minute interval, would it improve
*> > *> performance to reduce the number of samples accordingly?
*> > 
*> > performance is manly defined by data aquisition and not by the logging ... 
*> 
*> Okay, thanks.
*> 
*> Then to fix the problem with the heartbeat and step value in MRTG for
*> non-5 minute intervals, would the following code revision be sufficient:
*> 
*>     if (! -e $rrd) {
*>           # create the rrd if it doesn't exist
*>           my $now = time;
*>           my $intrvl = $$cfg{'interval'};
*>           my $hrtbt = $intrvl+300;

instead of adding a fixed interval I would rather multiply the interval by
something like 1.3 and also change the --setp size according to the lower
interval ... unless you want to keep the high resolution in the rrdfile in
order to be able to go back later ... 

cheers
tobi

*>           $now = ($now / $intrvl) * intrvl;
*>           RRDs::create($rrd, '-b', $now, '-s', $intrvl,
*>                   "DS:ds0:$up_abs:$hrtbt:U:U",
*>                   "DS:ds1:$up_abs:$hrtbt:U:U",
*>                   "RRA:AVERAGE:0.5:1:600",
*>                   "RRA:AVERAGE:0.5:6:600", 
*>                   "RRA:AVERAGE:0.5:24:600",
*>                   "RRA:AVERAGE:0.5:288:732",
*>                   "RRA:MAX:0.5:1:600",
*>                   "RRA:MAX:0.5:6:600",
*>                   "RRA:MAX:0.5:24:600",
*>                   "RRA:MAX:0.5:288:732");
*>           my $e = $RRDs::error;
*>           die "Cannot create logfile: $e\n" if $e;
*> 
*> 
*> --                      _______________
*>  Chris Josephes      __/ MRNet/Onvoy   \
*>  chrisj at mr.net    __/   www.onvoy.com  /
*> \________________/
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
* To unsubscribe from the rrd-users mailing list, send a message with the
  subject: unsubscribe to rrd-users-request at list.ee.ethz.ch



More information about the rrd-users mailing list