[smokeping-users] smoketrace window

Tobias Oetiker tobi at oetiker.ch
Wed Dec 31 20:14:08 CET 2008


Today Michael Dafforn wrote:

> Tobi,
>
> Thanks for the reply!
>
> I had the smokeping.cgi in the cgi-bin directory, since your message I
> have moved it to /var/www/html, no change.
>
> I thought .cgi files needed to be executed, I am confused by your
> statement " don't do this ... the cgi will be
> executed because they end in .cgi ..."

the problem is that ALL FILES in cgi-bin will be executed, but only
the *.cgi files should be executed for smokeping to work, so you
have to configure your webserver so that the *.cgi files get
executed when they are found based on their file extension and not
only when they are in cgi-bin

cheers
tobi


> In order to get it to run, I have to add the execcgi command to the
> directory within the httpd.conf and .htaccess, so again, your statement
> confuses me, as the execute option is needed to make it work.
>
> This is what I have:
>
> /var/www/html/
>
> -rw-r--r--  1 apache apache 1881 Feb  4  2008 basepage.html
> drwxr-xr-x  3 apache apache 4096 Feb  4  2008 cropper
> -rw-r--r--  1 apache apache 1520 Mar 21  2008 global.html
> drwxr-xr-x  6 apache apache 4096 Mar 23  2008 imgcache
> -rw-r--r--  1 apache apache  326 Mar 21  2008 lippmanns.htm
> -rw-r--r--  1 apache apache  314 Mar 21  2008 netdc1.htm
> drwxr-xr-x  4 apache apache 4096 Jun 11  2008 resource
> drwxr-xr-x  2 apache apache 4096 Jun 11  2008 script
> -rwxr-xr-x  1 apache apache 2448 Dec 31 09:14 smokeping.cgi
> -rwxr-xr-x  1 apache apache  197 Jun 18  2008 test.cgi
> -rw-r--r--  1 apache apache  679 Mar 21  2008 top.htm
> -rwxr-xr-x  1 apache apache  647 Dec 30 14:44 tr.cgi
> -rwxr-xr-x  1 apache apache  203 Jun 17  2008 tr.html
> -rw-r--r--  1 apache apache  306 Mar 21  2008 web1.htm
>
>
> /var/www/html/script/
>
> -rw-r--r--  1 apache apache 669555 Jun 11  2008 Tr.js
>
>
> Thanks for your time!
>
> Mike
>
>
> -----Original Message-----
>
> From: Tobias Oetiker [mailto:tobi at oetiker.ch]
> Sent: Wednesday, December 31, 2008 9:13 AM
> To: Michael Dafforn
> Subject: Re: [smokeping-users] smoketrace window
>
> Michael,
>
> I guess your problem is, that you have stored the smokeping files
> in a cgi-bin directory ... don't do this ... the cgi will be
> executed because they end in .cgi ...
>
> cheers
> tobi
>
>
> Yesterday Michael Dafforn wrote:
>
> > I upgraded to 2.4 a while back, and messed around with smoketrace, but
> > never got it working.
> >
> >
> >
> > When I try to manually open /tr.cgi, I get the "Your HTTP Client is
> not
> > using the JSON-RPC protocol" message.
> >
> >
> >
> > When I click the * beside the target, another window opens, but it is
> > blank.
> >
> >
> >
> > I have looked in /var/log/httpd/error_log and access_log, and there
> > doesn't seem to be anything directly related to the smoketrace not
> > opening (there is nothing in the access_log).
> >
> >
> >
> > I made sure I had the following the httpd.conf:
> >
> >
> >
> > <Directory "/var/www/html">
> >
> >
> >
> >         AddHandler cgi-script cgi
> >
> >         Options +ExecCGI
> >
> >     AllowOverride Options
> >
> >
> >
> > </Directory>
> >
> >
> >
> > And my .htaccess file within the html directory contains:
> >
> >
> >
> > Options ExecCGI
> >
> >
> >
> > I do not know if it is related or not, but when I display my smokeping
> > page I get the following errors in my error_log (names / IP addresses
> > changed):
> >
> >
> >
> > [Tue Dec 30 14:09:06 2008] [error] [client 101.101.101.101]
> > (13)Permission denied: exec of
> > '/var/www/cgi-bin/cropper/lib/prototype.js' failed, referer:
> > http://test.host.com/cgi-bin/smokeping.cgi?target=WebServers
> >
> > [Tue Dec 30 14:09:06 2008] [error] [client 101.101.101.101] Premature
> > end of script headers: prototype.js, referer:
> > http://test.host.com/cgi-bin/smokeping.cgi?target=WebServers
> >
> > [Tue Dec 30 14:09:06 2008] [error] [client 101.101.101.101]
> > (13)Permission denied: exec of
> > '/var/www/cgi-bin/cropper/lib/scriptaculous.js' failed, referer:
> > http://test.host.com/cgi-bin/smokeping.cgi?target=WebServers
> >
> > [Tue Dec 30 14:09:06 2008] [error] [client 101.101.101.101] Premature
> > end of script headers: scriptaculous.js, referer:
> > http://test.host.com/cgi-bin/smokeping.cgi?target=WebServers
> >
> > [Tue Dec 30 14:09:06 2008] [error] [client 101.101.101.101] (8)Exec
> > format error: exec of '/var/www/cgi-bin/cropper/cropper.js' failed,
> > referer: http://test.host.com/cgi-bin/smokeping.cgi?target=WebServers
> >
> > [Tue Dec 30 14:09:06 2008] [error] [client 101.101.101.101] Premature
> > end of script headers: cropper.js, referer:
> > http://test.host.com/cgi-bin/smokeping.cgi?target=WebServers
> >
> > [Tue Dec 30 14:09:06 2008] [error] [client 101.101.101.101]
> > (13)Permission denied: exec of
> > '/var/www/cgi-bin/cropper/smokeping-zoom.js' failed, referer:
> > http://test.host.com/cgi-bin/smokeping.cgi?target=WebServers
> >
> > [Tue Dec 30 14:09:06 2008] [error] [client 101.101.101.101] Premature
> > end of script headers: smokeping-zoom.js, referer:
> > http://test.host.com/cgi-bin/smokeping.cgi?target=WebServers
> >
> >
> >
> > Thanks
> >
> >
> >
> >
> >
> > Mike
> >
> >
> >
> >
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the smokeping-users mailing list