[mrtg] problem using mrtg-rrd.cgi {i am a newbie, sorry!}
J.C. Hall
jchall at mtntel.com
Mon Sep 8 21:09:02 MEST 2003
Hi list; I am a newbie and first time poster, so please bear with me.
I am using mrtg-rrd.cgi (or at least attempting to) and am encountering
problems. When I try to call up the HTML with
http://servername/cgi-bin/mrtg-rrd.cgi/target.html/, it returns a "Server
error!" and my apache error log displays the following:
[Text omitted...]
[Mon Sep 08 13:44:32 2003] [error] [client x.x.x.x] Premature end of script
headers: mrtg-rrd.cgi
Can't locate CGI.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/mrtg-rrd.cgi line 1028.
[Mon Sep 08 13:44:32 2003] [error] [client x.x.x.x] BEGIN
failed--compilation aborted at /var/www/cgi-bin/mrtg-rrd.cgi line 1028.
I have 2 .CFG files in /etc/mrtg/:
MRTG.CFG
WorkDir: /home/mrtg/public_html/
IconDir: /home/mrtg/public_html/
Refresh: 300
Include: /etc/mrtg/xxx.target.cfg
Options[_]: bits,growright
RunAsDaemon: Yes
PathAdd: /usr/local/rrdtool-1.0.45/bin/
LibAdd: /usr/local/rrdtool-1.0.45/lib/perl/
LogFormat: rrdtool
xxx.target.cfg
[omitted]
My mrtg-rrd.cgi file includes BEGIN { @config_files = qw(/etc/mrtg.cfg); }
Then I run /usr/local/mrtg-2/bin/mrtg /etc/mrtg/mrtg.cfg and it returns
"Daemonizing MRTG..." It looks like it runs and my WorkDir contains the
.RRD's for my target.
Can anyone offer a suggestion for a resolution to my problem?
Thanks much,
J.C. Hall
CCNA, WatchGuard Certified Systems Professional
Mountain Telecommunications, L.L.C.
Data Technician
jchall at mtntel.com
(480) 850-7558 - Desk
(480) 850-9555 - NOC
(602) 850-5191 - Fax
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list