[smokeping-users] CGI Error - Can't locate Pod/Usage.pm in @INC
Brian Faulkner
ecuity at gmail.com
Fri Mar 4 20:34:06 MET 2005
Hello,
I see this error in my apache logs when I run smokeping.cgi; It looks
like @INC is searching for an older version of perl. Is my current
version of perl installed the wrong place or is there something I need
to change for @INC to have the correct paths?
This message in the archives looks like the same problem, but I don't
see an answer posted.
http://www.ee.ethz.ch/~slist/smokeping-users/msg00721.html
I've also included my configuration just in case I missed something.
Regards,
Brian
Can't locate Pod/Usage.pm in @INC (@INC contains:
/export/home/brian/smokeping/lib /usr/local/rrdtool-1.0.33/lib/perl
/usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
/usr/perl5/site_perl/5.005/su
n4-solaris /usr/perl5/site_perl/5.005 .) at
/export/home/brian/smokeping/lib/Smokeping.pm line 7.
BEGIN failed--compilation aborted at
/export/home/brian/smokeping/lib/Smokeping.pm line 7.
BEGIN failed--compilation aborted at
/usr/www/site.smokeping/cgi-bin/smokeping.cgi line 7.
speedy_backend[4864]: perl_parse error
speedy[4862]: Cannot spawn backend process
[Fri Mar 4 11:05:24 2005] [error] [client 172.16.2.43] Premature end
of script headers: /usr/www/site.smokeping/cgi-bin/smokeping.cgi
# perl -v
This is perl, v5.8.6 built for sun4-solaris
# perl -e 'map{ print "$_\n"; }@INC'
/usr/local/lib/perl5/5.8.6/sun4-solaris
/usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl
# pwd
/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/PDL/Pod
# ls
Parser.pm Select.pm Usage.pm
CONFIG
*** General ***
owner = Joe Random
contact = joe at some.place.xyz
mailhost = smtp.mailhost.abc
sendmail = /usr/lib/sendmail
imgcache = /usr/www/smokeping/htdocs/smokeping
imgurl = /usr/www/smokeping/htdocs/smokeping
datadir = /usr/www/site.smokeping/rrd
piddir = /usr/www/smokeping/var
cgiurl = http://172.16.2.55/cgi-bin/smokeping.cgi
smokemail = /export/home/brian/smokeping/etc/smokemail
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no
*** Alerts ***
to = admin at company.xy
from = smokealert at company.xy
+bigloss
type = loss
# in percent
pattern = ==0%,==0%,==0%,==0%,>0%,>0%,>0%
comment = suddenly there is packet loss
+someloss
type = loss
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times in a row
+startloss
type = loss
# in percent
pattern = ==S,>0%,>0%,>0%
comment = loss at startup
+rttdetect
type = rtt
# in milli seconds
pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100
comment = routing mesed up again ?
*** Database ***
step = 300
pings = 20
# consfn mrhb steps total
AVERAGE 0.5 1 1008
AVERAGE 0.5 12 4320
MIN 0.5 12 4320
MAX 0.5 12 4320
AVERAGE 0.5 144 720
MAX 0.5 144 720
MIN 0.5 144 720
SMOKEPING
#!/usr/local/bin/perl5.8.6 -w
# -*-perl-*-
use lib qw(/usr/local/rrdtool-1.0.33/lib/perl);
use lib qw(/export/home/brian/smokeping/lib);
use Smokeping 1.38;
Smokeping::main("../etc/config");
=head1 NAME
smokeping - Commandline tool for SmokePing
=head1 SYNOPSIS
B<smokeping> [ B<--email> | B<--makepod> | B<--version> | B<--restart> ]
Options:
SMOKEPING.CGI
#!/usr/bin/speedy -w
# -*-perl-*-
use lib qw(/usr/local/rrdtool-1.0.33/lib/perl);
use lib qw(/export/home/brian/smokeping/lib);
use Smokeping 1.38;
Smokeping::cgi("/export/home/brian/smokeping/etc/config");
BEGIN {
if ($ENV{SERVER_SOFTWARE}) {
$SIG{__WARN__} = sub { print "Content-Type: text/plain\n\n".(shift)."\n"
; };
$SIG{__DIE__} = sub { print "Content-Type: text/plain\n\n".(shift)."\n";
exit 1 }
};
}
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the smokeping-users
mailing list