[rrd-users] yet more questions :")

raptor raptor at tvskat.net
Thu Jan 8 12:20:52 MET 2004


1. my console is cyrilic locale, is there a way to tell rrdgraph to not use the locale but English when generating the graph ?
2. I use this at the moment to create .rrd's

rrdgraph ..  '--start' => $now, '--step' => 300,
                    'DS:sent:COUNTER:600:0:U',
                    #12pdp = 1h,288pdp = 24 h,8928pdp = 1month
                    'RRA:AVERAGE:0.5:1:24', #2 hours
                    'RRA:AVERAGE:0.5:12:24', #24 hours -> 1 day
                    'RRA:AVERAGE:0.5:288:7', #week
                    'RRA:AVERAGE:0.5:288:31'; #month
                    'RRA:AVERAGE:0.5:8928:12'; #year


then I use this to display the graph ... but  the graphics are "squared" (like bars w/o padding) not the way mrtg does it like "flow-area/chart". What I'm doing wrong..(an example of rrdgraph that mimic mrtg on 100% (rrdcreate & rrdgraph) on the web page will be good, so that new ppl get a starting point)


#!/usr/bin/perl
my @rrds = <*.rrd>;
foreach my $r (@rrds) {
    qx{rrdtool graph 2h-$r.png -s -7200 --upper-limit 200000 --rigid "DEF:sent=$r:sent:AVERAGE" 'GPRINT:sent:MAX:max %.1lf %S' 'GPRINT:sent:AVERAGE: avg %.1lf %S' 'GPRINT:sent:MIN:min %.1lf %S' 'AREA:sent#00FF22:speed' };
    qx{rrdtool graph 1day-$r.png -s -1day --upper-limit 200000 --rigid "DEF:sent=$r:sent:AVERAGE" 'GPRINT:sent:MAX:max %.1lf %S' 'GPRINT:sent:AVERAGE:avg %.1lf %S' 'GPRINT:sent:MIN:min %.1lf %S'  AREA:sent#00FF22:speed};
    qx{rrdtool graph week-$r.png -s -1week --upper-limit 200000 --rigid "DEF:sent=$r:sent:AVERAGE" 'GPRINT:sent:MAX:max %.1lf %S' 'GPRINT:sent:AVERAGE:avg %.1lf %S' 'GPRINT:sent:MIN:min %.1lf %S' AREA:sent#00FF22:speed};
    qx{rrdtool dump $r > $r.xml};
}

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list