[rrd-users] RRD Newbee needs help with RRD Perl script
Mark Woodruff
n3hf at yahoo.com
Wed Nov 4 02:03:23 CET 2009
Recently installed Version 1.3.8 and have been trying to make a Perl script wrritten by Brian Lane (Digitemp) from what I have been able to determine the scripts hangs up on the line containing:
$answer=RRDp::read;
# Output a HTML header for the PNG image to follow
print $cgi->header('image/png');
# Generate the graph
RRDp::cmd "graphv - --imgformat PNG",
"--start '$starttime' --end '$endtime'",
"--width $width --height $height",
"DEF:temp_c=$rrd:$var:AVERAGE",
"CDEF:temp_f=temp_c,9,*,5,/,32,+",
"LINE1:temp_f$color:'$label'";
$answer=RRDp::read;
print $$answer;
RRDp::end;
After reading rrd tutiorial I wrote a shorten bash script which works fine which tells me my RRD datafile is fine. Is there a bug and/or do I have installation issue??
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20091103/ae3830de/attachment.htm
More information about the rrd-users
mailing list