[rrd-users] Re: graphing problem.
Warnes, Jason SktnHR
jason.warnes at saskatoonhealthregion.ca
Thu Jan 2 17:46:58 MET 2003
Like Laurie mentioned in a previous post, the 'm' in 1000m stands for milli
with is 1/1000th of a full unit. So 1000m = 1.
What you may want to do is add:
"--units-exponent=1" for forcing the graph to use full units
"--upper-limit=2" for forcing the upper Y-axis boundary
"--rigid" to make sure RRDTool doesn't auto-scale it
Jason...
-----Original Message-----
From: kubel at t15.ds.pwr.wroc.pl [mailto:kubel at t15.ds.pwr.wroc.pl]
Sent: January 1, 2003 5:26 PM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] graphing problem.
I used to fill my rrd with small values, range from 0.00 to 2.00
(yes, system load ;)). But, when values are small, like 0.1 - 1.00, rdd
graphs it completely wrong, there are values from 0 to 1000m (?) on Y axis.
Why?
<source>
$_=`uptime`; chomp;
s/[a-zA-Z:\ ]+//g;
@uptime=split(/,/);
RRDs::update($db_dir.$db_file,"N:$uptime[3]:$uptime[4]:$uptime[5]");
RRDs::graph($png_dir.$png_file,
"-v System load","-w600","-h150","-y 0.2:5","-b1000",
"-aPNG","-t HADES - system load",
"HRULE:1.5#FF0000:System overload.\\n",
"COMMENT:\\n",
"DEF:sload1=".$db_dir.$db_file.":sysload1:AVERAGE",
"LINE1:sload1#c60f1f: 1 min.\\n",
"DEF:sload2=".$db_dir.$db_file.":sysload5:AVERAGE",
"LINE1:sload2#373df2: 5 min.\\n",
"DEF:sload3=".$db_dir.$db_file.":sysload15:AVERAGE",
"LINE1:sload3#000000: 15 min.\\n",
"COMMENT:\\n");
</source>
Kuba
---
Experience is that marvellous thing that enables you recognize a mistake
when you make it again.
--
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
--
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