[smokeping-users] Help with a new install of Smokeping

Joe Lawson jlawson at financeware.com
Sun Jun 15 13:57:56 MEST 2003


Greetings,
Being the "nix" newbie that I am, I've finally gotten smokeping and the
dependent software installed on a RH 7.2 box.  The smokeping --debug and
daemon calls work (I tested them first).  However, when I call the
smokeping.cgi script from a browser, I get this error:

[Sat Jun 14 22:15:39 2003] [error] [client 10.0.0.204] Premature end of
script headers: /var/www/cgi-bin/smokeping.cgi
Can't locate Smokeping.pm in @INC (@INC contains:
/home/smokeping/smokeping/lib /usr/local/rrdtool-1.0.42/lib/perl
/usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at
/var/www/cgi-bin/smokeping.cgi line 7.
BEGIN failed--compilation aborted at /var/www/cgi-bin/smokeping.cgi line 7.
speedy_backend[29464]: perl_parse error
speedy[29462]: Cannot spawn backend process
[Sat Jun 14 22:16:00 2003] [error] [client 10.0.0.204] Premature end of
script headers: /var/www/cgi-bin/smokeping.cgi



the smokeping.cgi (line 7) looks like this:

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

use lib qw(/usr/local/rrdtool-1.0.42/lib/perl);
use lib qw(/home/smokeping/smokeping/lib);

use Smokeping 1.20;

Smokeping::cgi("/home/smokeping/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 }
    };
}


The referenced paths all look correct.  I've beaten myself up enough on this
for one day. I thought I read the manuals, can anyone throw me a bone
here... and maybe point me in the right direction?

TIA,

Joe



--
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