[smokeping-users] Re: SMOKEPING.CGI ERROR

Drew Gibson drew.gibson at telecomcomputer.com
Thu Feb 6 15:52:33 MET 2003


Mukesh,

I had this error when setting up Smokeping. I'm sure it's a permissions 
issue but even with permissions set to 777 I couldn't get it going.

My fix was to ignore the paths in the sample config and put stuff where 
it was consistent with other apps. I think I did all this as root but 
modified the image dir rights to 777 (may not be needed)

(using redhat 7.3)

config, etc. = /etc/smokeping
smokeping progs = /usr/local/smokeping
web pages = /var/www/http/smokeping
images = /var/www/http/smokeping/image
cgi = main cgi-bin dir
data & pids = /var/smokeping

my config ...

*** General ***

owner    = Drew Gibson
contact  =
mailhost =
sendmail = /usr/lib/sendmail
imgcache = /var/www/html/smokeping/image
imgurl   = ../smokeping/image
datadir  = /var/smokeping
piddir  = /var/smokeping
cgiurl   = http://localhost/cgi-bin/smokeping.cgi
smokemail = /etc/smokeping/smokemail
# specify this to get syslog logging
# syslogfacility = local0

*** Database ***
<cut>....

This config worked first time!

regards,

Drew


Mukesh Bavisi wrote:

>when i go to http://192.168.22.252/cgi-bin/smokeping.cgi
> 
>Can any body help with this?? I think i am very close but i just can't
>seem to f
>igure it out. I have attached both errors.
> 
>I checked to makesure I do have a Smokeping.pm in the lib file - see
>below.
> 
>thanks MUK
> 
>Internal Server Error
> 
>The server encountered an internal error or misconfiguration and was
>unable to c
>omplete your request.
> 
>Please contact the server administrator, root at localhost and inform them
>of the t
>ime the error occurred, and anything you might have done that may have
>caused th
>e error.
> 
>More information about this error may be available in the server error
>log.
> 
>Apache/2.0.40 Server at _default_ Port 80
> 
>ERROR-LOG - SAYS
> 
>[Thu Feb 06 09:34:52 2003] [error] [client 192.168.22.252] Premature end
>of scri
>pt headers: smokeping.cgi
>[Thu Feb 06 09:34:52 2003] [error] [client 192.168.22.252] Can't locate
>Smokepin
>g.pm in @INC (@INC contains: /home/muk/smokeping-1.18/lib
>/usr/local/rrdtool-1.0
>.33/lib/perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi
>/usr/lib/perl5/5.8.0 /
>usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
>/usr/lib/perl5/site_perl/5
>.8.0 /usr/lib/perl5/site_perl
>/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread
>-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
>/var/ww
>w/cgi-bin/smokeping.cgi line 7.
>[Thu Feb 06 09:34:52 2003] [error] [client 192.168.22.252] BEGIN
>failed--compila
>tion aborted at /var/www/cgi-bin/smokeping.cgi line 7.
>[Thu Feb 06 09:34:52 2003] [error] [client 192.168.22.252]
>speedy_backend[15834]
>: perl_parse error
>[Thu Feb 06 09:34:52 2003] [error] [client 192.168.22.252]
>speedy[15832]: Cannot
> spawn backend process
> 
> 
>/home/muk/smokeping-1.18/lib
>[root at doodle lib]# ls -l
>total 164
>-rw-r--r--    1 510      ftp         22209 Feb 26  2002 BER.pm
>drwxr-xr-x    2 root     root         4096 Feb  5 18:59 ISG
>drwxr-xr-x    2 root     root         4096 Feb  5 18:59 probes
>-rw-r--r--    1 510      ftp         62935 Dec  5 05:15 Smokeping.pm
>-rw-r--r--    1 510      ftp         27607 Feb 26  2002 SNMP_Session.pm
>-rw-r--r--    1 510      ftp         33806 Feb 26  2002 SNMP_util.pm
>[muk at doodle muk]$
> 
> 
>
>
>--
>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
>
>  
>

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