my smokeping.cgi which i have placed in my /var/www/cgi-bin

#!/usr/bin/speedy -w
# -*-perl-*-

use lib qw(/usr/local/rrdtool-1.0.33/lib/perl);
use lib qw(/usr/src/smokie/smokeping-1.20/lib);

use Smokeping 1.20;

Smokeping::cgi("/usr/src/smokie/smokeping-1.20/etc/config");




----- Original Message -----
From: "Leigh Sharpe" <[EMAIL PROTECTED]>
To: "Dayo Adeyeye" <[EMAIL PROTECTED]>; "Smokeping Users"
<[EMAIL PROTECTED]>
Sent: Wednesday, August 20, 2003 4:49 AM
Subject: [smokeping-users] Re: Understanding SmokePing Graphs.


> OK. Now we're getting somewhere.
> The way your log file changes indicates that you have made some config
> changes to Apache, some of which may have been a bad idea. Assuming that
you
> are able to execute cgis from where you have smokeping.cgi, this bit is a
> giveaway:
>
>
> > > [Wed Aug 20 02:47:19 2003] [error] [client 10.50.3.207]
> > > Premature end of script headers: smokeping.cgi
> > > [Wed Aug 20 02:47:19 2003] [error] [client 10.50.3.207]
> > > Can't locate lib.pm in @INC (@INC contains:
> > > /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
> > > /usr/lib/perl5/site_perl/5.6.1/i386-linux
> > > /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl
> > > /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
> > > /usr/lib/perl5/vendor_perl/5.6.1
> > > /usr/lib/perl5/vendor_perl .) at
> > > /var/www/cgi-bin/smokeping.cgi line 4.
> > > [Wed Aug 20 02:47:19 2003] [error] [client 10.50.3.207]
> > > BEGIN failed--compilation aborted at
> > > /var/www/cgi-bin/smokeping.cgi line 4.
> > > [Wed Aug 20 02:47:19 2003] [error] [client 10.50.3.207]
> > > speedy_backend[2354]: perl_parse error
> > > [Wed Aug 20 02:47:19 2003] [error] [client 10.50.3.207]
> > > speedy[2352]: Cannot spawn backend process
>
> Most particularly this line:
> > > Can't locate lib.pm in @INC (@INC contains:
>
> In the 'use lib' statements (particularly line 4) of smokeping.cgi,
> something is not quoted properly and the system is looking for 'lib.pm'
> instead of the named module.
> The two lines likely to cause the problem look like this on my machine:
>
> use lib qw(/usr/local/rrdtool-1.0.42/lib/perl);
> use lib qw(/smokeping/lib);
>
> I have encountered this problem before, but I can't remember exactly what
I
> did to fix it. Hope this helps.
>
>
> --
> Unsubscribe
mailto:[EMAIL PROTECTED]
> Help        mailto:[EMAIL PROTECTED]
> Archive     http://www.ee.ethz.ch/~slist/smokeping-users
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to