I am trying to get the trend.cgi to work but am having some difficulty.
Using the .7 release from newest beta, under linux, and i have added trendurl = /cgi-bin/trend.cgi to the routers2.conf file.
I've got the correct path set for perl rrdtool and /tmp and i know the permissions on the /tmp are good.
I get this error on the page:
Error message:
Premature end of script headers: trend.cgi
No debug info file in the /tmp even with it enabled.
This is what i see in the apache error log.
[Fri Aug 06 08:46:29 2004] [error] [client 192.168.61.29] BEGIN failed--compilation aborted at /var/www/cgi-bin/trend.cgi line 37., referer:
http://redhat/cgi-bin/routers2.cgi?rtr= ... 72.0.0.2_2
[Fri Aug 06 08:50:51 2004] [error] [client 192.168.61.29] Premature end of script headers: trend.cgi, referer:
http://redhat/cgi-bin/routers2.cgi?rtr= ... diskspace1
[Fri Aug 06 08:50:51 2004] [error] [client 192.168.61.29] Can't locate RRDs.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /var/www/cgi-bin/trend.cgi line 37., referer:
http://redhat/cgi-bin/routers2.cgi?rtr= ... diskspace1
[Fri Aug 06 08:50:51 2004] [error] [client 192.168.61.29] BEGIN failed--compilation aborted at /var/www/cgi-bin/trend.cgi line 37., referer:
http://redhat/cgi-bin/routers2.cgi?rtr= ... diskspace1
If it helps my RRDs.pm is located here: /usr/local/RRDtool/lib/perl/RRDs.pm