[rrd-users] a few graphs crazy with --alt-y-mrtg

Håkan Lindholm hakan at staff.spray.se
Tue Aug 31 08:55:51 MEST 2004


I recently upgraded to rrdtool 1.0.49.
Using mrtg 2.9.17 as backend and my14all.cgi as frontend.
The upgrade made option --alt-y-mrtg available, so the other day I enabled it in the my14all frontend.
Everything seems OK, but a few graphs show values between -2 and +6 (approx) instead of 0 to 100. (These are CPU graphs.)

Here are the rrdtool commands used by the frontend script (logged by mrtg option 14all*rrdtoollog), showing there's no other difference than the --alt-y-mrtg option:


#GOOD:

rrdtool graph /tmp/leapsi1-cpu-daily.png -s -2000m -e now -a PNG -w 400 -h 100 -v CPU Utilization -b 1000 -l 0 -u 100 -r --lazy -c MGRID#ee0000 -c GRID#a0a0a0 -x HOUR:1:DAY:1:HOUR:2:0:%H DEF:in=/var/www/mrtg/switches/leapsi1-cpu.rrd:ds0:AVERAGE DEF:out=/var/www/mrtg/switches/leapsi1-cpu.rrd:ds1:AVERAGE CDEF:pin=in,100,/,100,*,1,/ CDEF:pout=out,100,/,100,*,1,/ DEF:min=/var/www/mrtg/switches/leapsi1-cpu.rrd:ds0:MAX DEF:mout=/var/www/mrtg/switches/leapsi1-cpu.rrd:ds1:MAX CDEF:pmin=min,100,/,100,*,1,/ CDEF:pmout=mout,100,/,100,*,1,/ AREA:in#00cc00:Incoming Traffic in Bytes per Second\l LINE1:out#0000ff:Outgoing Traffic in Bytes per Second\l GPRINT:min:MAX:Maximal In\:  %8.3lf %s%% GPRINT:mout:MAX:Maximal Out\: %8.3lf %s%%\l GPRINT:in:AVERAGE:Average In\:  %8.3lf %s%% GPRINT:out:AVERAGE:Average Out\: %8.3lf %s%%\l GPRINT:in:LAST:Current In\:  %8.3lf %s%% GPRINT:out:LAST:Current Out\: %8.3lf %s%%\l


#BAD:

rrdtool graph /tmp/leapsi1-cpu-daily.png -s -2000m -e now -a PNG -w 400 -h 100 -v CPU Utilization -b 1000 -l 0 -u 100 -r --alt-y-mrtg -c MGRID#ee0000 -c GRID#a0a0a0 -x HOUR:1:DAY:1:HOUR:2:0:%H DEF:in=/var/www/mrtg/switches/leapsi1-cpu.rrd:ds0:AVERAGE DEF:out=/var/www/mrtg/switches/leapsi1-cpu.rrd:ds1:AVERAGE CDEF:pin=in,100,/,100,*,1,/ CDEF:pout=out,100,/,100,*,1,/ DEF:min=/var/www/mrtg/switches/leapsi1-cpu.rrd:ds0:MAX DEF:mout=/var/www/mrtg/switches/leapsi1-cpu.rrd:ds1:MAX CDEF:pmin=min,100,/,100,*,1,/ CDEF:pmout=mout,100,/,100,*,1,/ AREA:in#00cc00:Incoming Traffic in Bytes per Second\l LINE1:out#0000ff:Outgoing Traffic in Bytes per Second\l GPRINT:min:MAX:Maximal In\:  %8.3lf %s%% GPRINT:mout:MAX:Maximal Out\: %8.3lf %s%%\l GPRINT:in:AVERAGE:Average In\:  %8.3lf %s%% GPRINT:out:AVERAGE:Average Out\: %8.3lf %s%%\l GPRINT:in:LAST:Current In\:  %8.3lf %s%% GPRINT:out:LAST:Current Out\: %8.3lf %s%%\l


The graphs produced by these commands are attached.
Why do they use different Y axis ranges?
Anyone able to share good or bad experience with --alt-y-mrtg?


And here are the top of an rrd dump showing typical values:

<!-- Round Robin Database Dump -->
<rrd>
        <version> 0001 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1093934473 </lastupdate> <!-- 2004-08-31 08:41:13 CEST -->

        <ds>
                <name> ds0 </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> 1.0000000000e+02 </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> 1.0950000000e+03 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

        <ds>
                <name> ds1 </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> 1.0000000000e+02 </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> 7.2270000000e+03 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

<!-- Round Robin Archives -->
        <rra>
                <cf> AVERAGE </cf>
                <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->
                <xff> 5.0000000000e-01 </xff>

                <cdp_prep>
                        <ds><value> NaN </value>  <unknown_datapoints> 0 </unknown_datapoints></ds>
                        <ds><value> NaN </value>  <unknown_datapoints> 0 </unknown_datapoints></ds>
                </cdp_prep>
                <database>
                        <!-- 2004-08-29 06:45:00 CEST / 1093754700 --> <row><v> 8.2400000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 06:50:00 CEST / 1093755000 --> <row><v> 8.7700000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 06:55:00 CEST / 1093755300 --> <row><v> 8.2400000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:00:00 CEST / 1093755600 --> <row><v> 8.7700000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:05:00 CEST / 1093755900 --> <row><v> 8.2400000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:10:00 CEST / 1093756200 --> <row><v> 8.7700000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:15:00 CEST / 1093756500 --> <row><v> 9.0000000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:20:00 CEST / 1093756800 --> <row><v> 8.2533333333e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:25:00 CEST / 1093757100 --> <row><v> 8.0000000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:30:00 CEST / 1093757400 --> <row><v> 8.7700000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:35:00 CEST / 1093757700 --> <row><v> 8.2700000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:40:00 CEST / 1093758000 --> <row><v> 8.0000000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:45:00 CEST / 1093758300 --> <row><v> 8.0000000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:50:00 CEST / 1093758600 --> <row><v> 8.0000000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 07:55:00 CEST / 1093758900 --> <row><v> 8.0000000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:00:00 CEST / 1093759200 --> <row><v> 8.0000000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:05:00 CEST / 1093759500 --> <row><v> 9.5333333333e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:10:00 CEST / 1093759800 --> <row><v> 8.5000000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:15:00 CEST / 1093760100 --> <row><v> 8.7666666667e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:20:00 CEST / 1093760400 --> <row><v> 9.7533333333e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:25:00 CEST / 1093760700 --> <row><v> 9.2533333333e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:30:00 CEST / 1093761000 --> <row><v> 9.7500000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:35:00 CEST / 1093761300 --> <row><v> 9.2600000000e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:40:00 CEST / 1093761600 --> <row><v> 9.7733333333e+00 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:45:00 CEST / 1093761900 --> <row><v> 1.0000000000e+01 </v><v> 9.9000000000e+01 </v></row>
                        <!-- 2004-08-29 08:50:00 CEST / 1093762200 --> <row><v> 9.2400000000e+00 </v><v> 9.9000000000e+01 </v></row>




Thanks in advance

/Hakan

-- 
    Senior Network Engineer  @  SPRAY NETWORK SERVICES AB
      System, Network and Security Architecture and Admin
        for Lycos Europe ( http://www.lycos-europe.com/ )
HL1251-RIPE 12832 AS-LYCOSEU LINX AMS-IX DIX DE-CIX SFINX

-- Attached file removed by Ecartis and put at URL below --
-- Type: image/png
-- Desc: good.png
-- Size: 3k (3401 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/good.png


-- Attached file removed by Ecartis and put at URL below --
-- Type: image/png
-- Desc: bad.png
-- Size: 3k (3557 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/bad.png


--
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