[rrd-users] Problem with graph

mauro fammotta at tin.it
Sun Sep 29 11:14:24 MEST 2002


Hy, 
I'm a newbie and I have a little problem.

I make this RRD:

 RRDs::create ($rrd_n,
                    "DS:time_min:GAUGE:600:U:U",
                    "DS:time_max:GAUGE:600:U:U",
                    "RRA:AVERAGE: 0.5:1:600",
                    "RRA:AVERAGE: 0.5:6:700",
                    "RRA:AVERAGE: 0.5:24:775",
                    "RRA:AVERAGE: 0.5:288:797",
                    "RRA:MAX: 0.5:1:600",
                    "RRA:MAX: 0.5:6:700",
                    "RRA:MAX: 0.5:24:775",
                    "RRA:MAX: 0.5:288:797",
                    "RRA:MIN: 0.5:1:600",
                    "RRA:MIN: 0.5:6:700",
                    "RRA:MIN: 0.5:24:775",
                    "RRA:MIN: 0.5:288:797");

and i make a script for calculating 2 values: time_min and time_max every 10 minutes.
The data was insert into RRD correctly but when i make the graph:

RRDs::graph $rrd_day_graph_n,
  "--title", $tytle . " con connettivita' ",
  "--start", $start,
  "--end", $end,
  "--vertical-label","Secondi",
  "--imgformat","PNG",
  "--width=640",
  "--height=250",
  "--interlace",
  "DEF:time_min=$rrd_day_n:time_min:AVERAGE",
  "CDEF:real_time_min=time_min,1000,*",
  "DEF:time_max=$rrd_day_n:time_max:AVERAGE",
  "CDEF:real_time_max=time_max,1000,*",
  "AREA:time_min#FFFF00: tempo di risposta del server \\n",
  "STACK:time_max#0000FF: tempo di download complessivo \\n",
  "COMMENT: \\n",
  "COMMENT: \\n",
  "COMMENT:                                     ANALISI DEI TEMPI \\n",
  "COMMENT: \\n",

--->  "GPRINT:real_time_max:LAST:                                   ULTIMO RILEVAMENTO \\:       %6.3lf %ssec \\n",
--->  "GPRINT:real_time_max:MIN:                                    TEMPO DI DOWNLOAD MINIMO  \\: %6.3lf %ssec  \\n",
--->  "GPRINT:real_time_max:MAX:                                    TEMPO DI DOWNLOAD MASSIMO \\: %6.3lf %ssec  \\n",
--->  "GPRINT:real_time_max:AVERAGE:                                 TEMPO DI DOWNLOAD MEDIO \\:  %6.3lf%ssec \\n",

  "COMMENT: \\n",
  "COMMENT:                                                             Grafico creato in data:  $date";

Sometimes the value real_time_max:LAST, real_time_max:MIN,real_time_MAX:AVERAGE, are correct (ex.1,40 sec) but other times this value are very strange (ex. 714,00 sec).
Antoher problem is that:
 if the value is strange the time is in second: 714 sec
 if the value is correct the time is with a k value that i don't understand: 1,40 ksec (what is k?).
 

Can you help me?

Thanks.

Mauro Motta.










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