Hello,
 
we use RRDTools with an own PHP script and generate graphs at this way:
 
$options = "";
$options .= " $img_file";
$options .= " -t \"$vdesc\t$desc2\" ";
$options .= " --start $start";
$options .= " --end $end";
$options .= " -w $width";
$options .= " -h $height";
$options .= " --slope-mode";
$options .= " -c SHADEA#f0f0f0 ";
$options .= " -c SHADEB#f0f0f0 ";
$options .= " -W ".$config['watermark'];
$options .= " -c ARROW#58A6A7 ";
$options .= " DEF:$val=$rrd_file:$sid:AVERAGE";
$options .= " LINE2:$val$color[$i]:\"$beschreibung\" ";
$options .= " GPRINT:$val:LAST:\"%4.1lf\"";
$options .= " GPRINT:$val:MIN:\"min %4.1lf%s\"";
$options .= " GPRINT:$val:MAX:\"max %4.1lf%s\l\"";

popen(RRDTOOL." graph $options", "r");
 
When we now generate graphs with different sizes unfortunately the values for LAST, MIN and MAX change also:
 
 
 
I think it is a problem with sampling the used values from the archive. Is there a way to make this better?
 
Thank you for all help
 
Lutz
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to