<br><font size=2 face="sans-serif">Here are some instructions I use for
fixing the RRDs location problem (which I think is what you're experiencing).
>From FlowViewer FAQ:</font>
<br>
<br><a href=http://ensight.eos.nasa.gov/FlowViewer/faq.html#16><font size=2 face="sans-serif">http://ensight.eos.nasa.gov/FlowViewer/faq.html#16</font></a>
<br>
<br><font size=2 face="sans-serif"> If the FlowTracker Group
page appears but there is no sample graph at the top, or you</font>
<br><font size=2 face="sans-serif"> receive an "Internal
Server Error" (most likely Perl compilation problem, it could be that</font>
<br><font size=2 face="sans-serif"> you haven't correctly installed
RRDs.pm. A quick way to check for this is to issue a</font>
<br><font size=2 face="sans-serif"> 'perl -c FlowTracker_Group.cgi'
from a command line. If there is a RRDs.pm location problem</font>
<br><font size=2 face="sans-serif"> the script will not compile.</font>
<br>
<br><font size=2 face="sans-serif"> This problem can be tricky
and I will try to make it easier in the next version. In the meantime</font>
<br><font size=2 face="sans-serif"> the easiest way to fix
this is:</font>
<br>
<br><font size=2 face="sans-serif"> 1. Do a 'perl -V'
from a command line, and look at the @INC array</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> @INC:</font>
<br><font size=2 face="sans-serif"> /usr/lib/perl5/5.8.5/i386-linux-thread-multi</font>
<br><font size=2 face="sans-serif"> /usr/lib/perl5/5.8.5</font>
<br><font size=2 face="sans-serif"> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi</font>
<br><font size=2 face="sans-serif"> (
... more )</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> 2. Identify the
most likely directory into which to put a copy of RRDs.pm</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> probably:
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> 3. Copy RRDs.pm
into that directory</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> from:
/usr/local/rrdtool-1.2.26/lib/perl/5.8.5/i386-linux-thread-multi/RRDs.pm</font>
<br><font size=2 face="sans-serif"> to:
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/RRDs.pm</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> 4. Copy the RRDs
and RRDp 'auto' subdirectories and their contents into the Perl 'auto'
subdirectory</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> from:
/usr/local/rrdtool-1.2.26/lib/perl/5.8.5/i386-linux-thread-multi/auto/RRDp</font>
<br><font size=2 face="sans-serif"> to:
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDp</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> from:
/usr/local/rrdtool-1.2.26/lib/perl/5.8.5/i386-linux-thread-multi/auto/RRDs</font>
<br><font size=2 face="sans-serif"> to:
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs</font>
<br>
<br><font size=2 face="sans-serif"> Note: the above can be
accomplished using links instead of copying.</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Joe</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Mark Woodruff <n3hf@yahoo.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Koaps <koaps@yahoo.com>, rrd-users@lists.oetiker.ch</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">11/04/2009 01:52 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [rrd-users] RRD Newbee needs help
with RRD Perl script</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3 face="Roman">Chris, Thank you for the feedback. I tried
rewriting something with RRDs but no success, something must be missing
from the installation (I think!).</font>
<br><font size=3 face="Roman"> </font>
<p><font size=2 face="Roman">Can't locate loadable object for module RRDs
in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.</font>
<p><font size=2 face="Roman">.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/ve</font>
<p><font size=2 face="Roman">dor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl .) at ./temp-one.cgi line 27</font>
<p><font size=2 face="Roman">Compilation failed in require at ./temp-one.cgi
line 27.</font>
<p><font size=3 face="Roman"> </font>
<p><font size=3 face="Roman">Mark</font>
<br>
<br>
<hr><font size=2 face="Tahoma"><b>From:</b> Koaps <koaps@yahoo.com><b><br>
To:</b> Mark Woodruff <n3hf@yahoo.com><b><br>
Sent:</b> Tue, November 3, 2009 8:42:04 PM<b><br>
Subject:</b> Re: [rrd-users] RRD Newbee needs help with RRD Perl script</font><font size=2 face="Arial"><br>
<br>
I have no idea about RRDp but I have used RRDs with no issues in perl scripts.<br>
<br>
The graph subroutine I used looked like this:<br>
<br>
# print "Creating graph\n";<br>
RRDs::graph ("$png_path/$k.png",<br>
"--title=$TITLE
$k",<br>
"--vertical-label=$VLABEL",<br>
"--color=$BACK",<br>
"--color=$SHADEA",<br>
"--color=$SHADEB",<br>
"--color=$FONT",<br>
"--color=$CANVAS",<br>
"--color=$GRID",<br>
"--color=$MGRID",<br>
"--color=$FRAME",<br>
"--color=$ARROW",<br>
"--base=$BASE",<br>
"DEF:avg=$rrd_path/$k.rrd:$ds:AVERAGE",<br>
"DEF:pred=$rrd_path/$k.rrd:$ds:HWPREDICT",<br>
"DEF:dev=$rrd_path/$k.rrd:$ds:DEVPREDICT",<br>
"DEF:fail=$rrd_path/$k.rrd:$ds:FAILURES",<br>
"COMMENT: \\n",<br>
"CDEF:mbs=avg,1048576,/",<br>
"LINE2:$AVG_LINE:Average MB/s",<br>
"GPRINT:mbs:AVERAGE:\\: %5.2lf",<br>
"GPRINT:mbs:LAST: Last\\:
%5.2lf\\n",<br>
"TICK:$TICK:1.0:Failures",<br>
"CDEF:upper=pred,dev,2,*,+",<br>
"CDEF:lower=pred,dev,2,*,-",<br>
"LINE1:$UPPER_LINE:Upper Bound",<br>
"LINE1:$LOWER_LINE:Lower Bound",<br>
"\\n",<br>
"COMMENT:$date",<br>
);<br>
$err=RRDs::error;<br>
if ($err) {print "problem generating the
graph: $err\n";}<br>
<br>
<br>
with variables defined like this:<br>
NOTE: $k for me was pulled from a reference I generated, you should be
able to set it to your RRD without any issues.<br>
<br>
<br>
#--------------#<br>
# RRDTool vars #<br>
#--------------#<br>
my $png_path = "/var/www/html/";<br>
my $TITLE = "IO Test:";<br>
my $VLABEL = "Bytes per second (B/s)";<br>
my $BACK = "BACK#000000";<br>
my $SHADEA = "SHADEA#FFFFFF";<br>
my $SHADEB = "SHADEB#FFFFFF";<br>
my $FONT = "FONT#DDDDDD";<br>
my $CANVAS = "CANVAS#202020";<br>
my $GRID = "GRID#666666";<br>
my $MGRID = "MGRID#AAAAAA";<br>
my $FRAME = "FRAME#202020";<br>
my $ARROW = "ARROW#FFFFFF";<br>
my $BASE = 1024;<br>
my $AVG_LINE = "AVG#0000FF";<br>
my $TICK = "FAIL#FFFFA0";<br>
my $UPPER_LINE = "UPPER#ff0000";<br>
my $LOWER_LINE = "LOWER#ff0000";<br>
<br>
<br>
-Chris<br>
<br>
--- On Tue, 11/3/09, Mark Woodruff <</font><a href=mailto:n3hf@yahoo.com><font size=2 color=blue face="Arial"><u>n3hf@yahoo.com</u></font></a><font size=2 face="Arial">>
wrote:<br>
<br>
> From: Mark Woodruff <</font><a href=mailto:n3hf@yahoo.com><font size=2 color=blue face="Arial"><u>n3hf@yahoo.com</u></font></a><font size=2 face="Arial">><br>
> Subject: [rrd-users] RRD Newbee needs help with RRD Perl script<br>
> To: </font><a href="mailto:rrd-users@lists.oetiker.ch"><font size=2 color=blue face="Arial"><u>rrd-users@lists.oetiker.ch</u></font></a><font size=2 face="Arial"><br>
> Date: Tuesday, November 3, 2009, 5:03 PM<br>
> Recently installed Version 1.3.8<br>
> and have been trying to make a Perl script wrritten by Brian<br>
> Lane (Digitemp) from what I have been able to determine the<br>
> scripts hangs up on the line containing:<br>
> <br>
> $answer=RRDp::read;<br>
> <br>
> # Output a HTML header for the PNG<br>
> image to follow<br>
> <br>
> print $cgi->header('image/png');<br>
> # Generate the graph<br>
> RRDp::cmd "graphv - --imgformat PNG",<br>
> "--start '$starttime' --end<br>
> '$endtime'",<br>
> "--width $width --height $height",<br>
> "DEF:temp_c=$rrd:$var:AVERAGE",<br>
> "CDEF:temp_f=temp_c,9,*,5,/,32,+",<br>
> "LINE1:temp_f$color:'$label'";<br>
> $answer=RRDp::read;<br>
> print $$answer;<br>
> RRDp::end;<br>
> <br>
> After reading rrd tutiorial I wrote a<br>
> shorten bash script which works fine which tells me my<br>
> RRD datafile is fine. Is there a bug and/or do I have<br>
> installation issue?? <br>
> <br>
> Mark<br>
> <br>
> <br>
> <br>
> -----Inline Attachment Follows-----<br>
> <br>
> _______________________________________________<br>
> rrd-users mailing list<br>
> </font><a href="mailto:rrd-users@lists.oetiker.ch"><font size=2 color=blue face="Arial"><u>rrd-users@lists.oetiker.ch</u></font></a><font size=2 face="Arial"><br>
> </font><a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target=_blank><font size=2 color=blue face="Arial"><u>https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</u></font></a><font size=2 face="Arial"><br>
> <br>
<br>
<br>
</font>
<br><tt><font size=2>_______________________________________________<br>
rrd-users mailing list<br>
rrd-users@lists.oetiker.ch<br>
</font></tt><a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users"><tt><font size=2>https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>