[rrd-users] graphing problem.

Jakub Drwal kubel at t15.ds.pwr.wroc.pl
Thu Jan 2 00:26:26 MET 2003



  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



More information about the rrd-users mailing list