[smokeping-users] Re: trouble with smokeping 1.18

chelle mdemarr at ev1.net
Thu Feb 20 05:28:02 MET 2003


thats exactly what i thought, heres what smokeping.cgi looks like:

        [chelle at smokeping smokeping]# cat
/var/www/cgi-bin/smokeping/smokeping.cgi
        #!/usr/bin/perl -w
        # -*-perl-*-

        use lib qw(/usr/local/rrdtool-1.0.33/lib/perl);
        use lib qw(/var/www/cgi-bin/smokeping/lib);
        use lib qw(/usr/lib/perl5/site_perl/5.6.1/CGI);

        use Smokeping 1.18;

        Smokeping::main("/var/www/cgi-bin/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 }
            };
        }

i had to add the "use lib qw(/usr/lib/perl5/site_perl/5.6.1/CGI);" line
because it wasnt in @INC (only way i could get it to run)

thanks,
chelle

----- Original Message -----
From: "Leigh Sharpe" <lsharpe at pacificwireless.com.au>
To: "chelle" <mdemarr at ev1.net>; <smokeping-users at list.ee.ethz.ch>
Sent: Wednesday, February 19, 2003 10:19 PM
Subject: Re: [smokeping-users] Re: trouble with smokeping 1.18


> Getting somewhere.
> Now you have smokeping running, and apparently pinging as it should. The
RRD
> is being updated. Now all you need is to display it.
> According to your log, the smokeping CGI is outputting the following:
>      Daemonizing /var/www/cgi-bin/s:
> /var/www/cgi-bin/smokeping/smokeping.cgi
> This looks wrong. Is your smokeping.cgi correct? It looks more like it is
> starting the executable, rather than the CGI.
>
> Regards,
>              Leigh
>
> Leigh Sharpe
> Network Systems Engineer
> Pacific Wireless
> Ph 9584 8966
> Mob 0408 009 502
> email lsharpe at pacificwireless.com.au
> web www.pacificwireless.com.au
>
>
>

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