[smokeping-users] Re: trouble executing smokeping.cgi on webserve r

Dan Didier Dan at mapolce.com
Tue Sep 17 20:03:09 MEST 2002


Ed,

I don't think so... here is the contents of my smokeping.cgi:
Is this right?



> -----Original Message-----[root at mrtg dan]# cat
/var/www/cgi-bin/smokeping.cgi 
#!/usr/bin/perl -w

# -*-perl-*-

 

use lib qw(/usr/local/rrdtool-1.0.33/lib/perl);

use lib qw(/usr/local/smokeping/lib);

 

use Smokeping 1.14;

 

Smokeping::main("/usr/local/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 }
    };
}

> From: Ed Ravin [mailto:eravin at panix.com]
> Sent: Tuesday, September 17, 2002 1:57 PM
> To: Dan at mapolce.com
> Cc: smokeping-users at list.ee.ethz.ch
> Subject: Re: [smokeping-users] trouble executing smokeping.cgi on
> webserver
> 
> 
> Dan Didier writes:
> >  When I try to go to http://webserver/cgi-bin/smokeping.cgi I get
> > an Internal Server Error.  I checked my error log, and it shows the
> > following:
> > 
> > [Tue Sep 17 13:12:09 2002] [error] [client 10.219.5.10] 
> malformed header
> > from script. Bad header=Daemonizing /var/www/cgi-bin/s:
> > /var/www/cgi-bin/smokeping.cgi
> 
> Looks like you've mixed up bin/smokeping with cgi-bin/smokeping.cgi.
> bin/smokeping is the one that prints the "Daemonizing..." message,
> you want to invoke that as its own daemon separately from the
> webserver.
> 

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