[mrtg] Not getting monthly and annual graphs (RRD question)
Dan Colquhoun
dcolquho at opentext.com
Fri May 11 21:46:09 MEST 2001
I've been working on graphing network usage by protocol as reported by Ntop
for the past week or so. I've created 1 hour, 1 day, 1 week, 1 month and 1
year graphs for each protocol I want to watch. My hourly, daily and weekly
graphs are fine, but my monthly and annual graph don't have any data. I've
been through the rather thin tutorial on creating RRD databases and am
puzzled by the need to store more samples than (I think) needed in an RRA
(both the need and the explanation). I'm guessing this may be the source of
my problem. Here's some of the perl script I'm using to create the database
and graphs.
if(!(-e $rrd)) {
RRDs::create ($rrd, "--start",$start-1, "--step",30,
"DS:ftp:COUNTER:120:0:1000000",
"DS:http:COUNTER:120:0:1000000",
"DS:Email:COUNTER:120:0:1000000",
"DS:thpt:GAUGE:600:0:15000000",
"RRA:AVERAGE:0.5:1:120",
"RRA:AVERAGE:0.5:10:288",
"RRA:AVERAGE:0.5:60:336",
"RRA:AVERAGE:0.5:240:336",
"RRA:AVERAGE:0.5:2880:336",
"RRA:MAX:0.5:1:120",
"RRA:MAX:0.5:10:288",
"RRA:MAX:0.5:60:336",
"RRA:MAX:0.5:240:336",
"RRA:MAX:0.5:2880:336"
);
RRDs::graph "thpt-1m.png",
[snip formatting/labelling stuff]
"DEF:a=$rrd:thpt:AVERAGE",
"AREA:a#339999: Thruput ",
"GPRINT:a:LAST:Current \\: %.1lf %s",
"GPRINT:a:AVERAGE:Avg \\: %.1lf %s",
"GPRINT:a:MIN:Min \\: %.1lf %s",
"GPRINT:a:MAX:Max \\: %.1lf %s\\n",
;
Thanks,
--
Dan Colquhoun
Information Services
Open Text
519-888-7111 x2482
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list