Hey all,

        I have a quick question.  Heres the senerio:
        Note: Im graphing  how many pages printed per/half hour from HP
              printers.
              
        I create an rrd (filename 1.rrd).
        I use perl's " use RRDs; " command to a create the graph.
        
        
              
        Why do I get different values when I make my start and end times
        over aprox 13days?
         -> If I choose to graph 5 days the max value would be 140 pages.
         -> If I choose to graph 20 days the max value would change to ~70 
pages.
         
         Why does this happen?
         
         
         ---------------Heres my create and graph script.------------------
         
         $time equals the first time in the file.
         RRDs::create("/tmp/1.rrd", "--start", "$time-1", "--step", "1800",
        "DS:value:COUNTER:2100:U:U",
        "RRA:AVERAGE:0.5:1:35040","RRA:MAX:0.5:1:35040","RRA:MIN:0.5:1:35040");

        ----------------Heres how I create the graph-----------------------
        
        @options=("-l 0","-s $starttime","-e $endtime",
                  "-v pages per half hour",
                  "-cCANVAS#F5FFFA","-cGRID#D2B48C",
                  "-h $height","-w $width",
                  "-u 25","-aGIF",
                  "-t $title $currenttime");
        @DEF=();
        @PLOT=();
        @LEGEND=();

        $newstr="DEF:${i}A=$foobar:value:AVERAGE";
         push(@DEF,$newstr,
            "CDEF:${i}${oida}=${i}A,1800,*",
            "LINE2:${i}${oida}$colors{$i}:$oida \: ","COMMENT: \t ",
                 "COMMENT:      $printerdevices{$databasename} - AVG",
                 "GPRINT:${i}${oida}:AVERAGE:%4.0lf",
                 "COMMENT:MAX",
                 "GPRINT:${i}${oida}:MAX:%4.0lf",
                 "COMMENT:MIN",
                 "GPRINT:${i}${oida}:MIN:%4.0lf",
                 "COMMENT:LAST",
                 "GPRINT:${i}${oida}:LAST:%4.0lf\\n");

        push(@LEGEND,
           "HRULE:$FIXED#FF0590:Base Line $FIXEDLABEL pages",
           "HRULE:-$FIXED#FF0590:",
           "HRULE:0#000000:");
        
        $fileOutFinal="/tmp/file.gif";
        RRDs::graph(( -w $fileOutFinal)? $fileOutFinal : $fileOutFinal ,
                @options,
                @DEF,@PLOT,@LEGEND);
                
        ------------------------------------------------------------------
        

Thanks 
                        
                      
Clarence Hart
UPS
Office: 410-560-4182
Fax:    410-560-4329
[EMAIL PROTECTED]


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to