[rrd-users] graph errors?
Martin Friberg
martin at swetech.se
Tue Oct 20 20:27:12 CEST 2015
Hello all,
I got some wierd errors on how the images come out
these 2 images as you can see the numbers looks very diffrent from one
and other and i been looking at this so long nothing makes sense for me
anymore so if a couple of fresh eyes can tell me why it goes wrong.
code to create these are here
#!/usr/bin/perl
use RRDs;
my $cur_time = time();
my $start_time = $cur_time - 604800; # set end time to 24 hours ago
RRDs::graph "/var/www/TT/WEB/w_tadpole_temp.png",
"--start= $start_time",
"--end= $cur_time",
"--title= Tadpoles Temperature",
"--height= 300",
"--width= 600",
"--vertical-label= °C",
"DEF:TadpolesTemp=/home/pi/rrddata/tadpoles.rrd:tad:AVERAGE",
"COMMENT:\t\t\t\t\t\t\t\tNu Medel Max Min\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"HRULE:0#0000FF",
"AREA:TadpolesTemp#FF1919:Tadpole temperature\t",
"GPRINT:TadpolesTemp:LAST:%6.1lf",
"GPRINT:TadpolesTemp:AVERAGE:%6.1lf",
"GPRINT:TadpolesTemp:MAX:%6.1lf",
"GPRINT:TadpolesTemp:MIN:%6.1lf\\n";
my $err=RRDs::error;
if ($err) {print "problem generating the graph: $err\n";}
print "Done!\n"
And the second one
#!/usr/bin/perl
use RRDs;
my $cur_time = time();
my $start_time = $cur_time - 604800; # set end time to 24 hours ago
RRDs::graph "/var/www/TT/WEB/w_bombina_temp.png",
"--start= $start_time",
"--end= $cur_time",
"--title= Bombina Temperature",
"--height= 300",
"--width= 600",
"--vertical-label= °C",
"DEF:BombinaTemp=/home/pi/rrddata/bombina.rrd:bombina:AVERAGE",
"COMMENT:\t\t\t\t\tNu Medel Max Min\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"COMMENT:\\n",
"HRULE:0#0000FF",
"AREA:BombinaTemp#FF1919:Bombina Temperature\t",
"GPRINT:BombinaTemp:LAST:%6.1lf",
"GPRINT:BombinaTemp:AVERAGE:%6.1lf",
"GPRINT:BombinaTemp:MAX:%6.1lf",
"GPRINT:BombinaTemp:MIN:%6.1lf\n";
my $err=RRDs::error;
if ($err) {print "problem generating the graph: $err\n";}
print "Done!\n"
any ideas are welcome its driving me nuts..
---
Detta e-postmeddelande har sökts igenom efter virus med antivirusprogram från Avast.
https://www.avast.com/antivirus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: w_bombina_temp.png
Type: image/png
Size: 15963 bytes
Desc: not available
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20151020/021cd5c8/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: w_tadpole_temp.png
Type: image/png
Size: 18644 bytes
Desc: not available
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20151020/021cd5c8/attachment-0003.png>
More information about the rrd-users
mailing list