[smokeping-users] smoketrace window
Michael Dafforn
mdafforn at netplatform.com
Thu Jan 8 16:15:26 CET 2009
Ok, I must be getting closer, as now I actually have things showing up in the error_log:
Parameter to use lib must be directory, not file at /var/www/html/smokeping.cgi line 4
Line 4 is:
use lib qw(/usr/bin/);
which is a directory, with rrdtool, rrdupdate, and rrdcgi in it.
Thanks for any help!
-----Original Message-----
From: Tobias Oetiker [mailto:tobi at oetiker.ch]
Sent: Thursday, January 01, 2009 2:14 AM
To: Michael Dafforn
Subject: RE: [smokeping-users] smoketrace window
Hi Michael,
now the solution to your problem is to look at the error.log of
your web server, and maybe the suexec.log all problems should show
there ...
cheers
tobi
Yesterday Michael Dafforn wrote:
> Thanks for the explanation!
>
> So, is there anything else I can try / look for to fix my issue?
>
> -----Original Message-----
> From: Tobias Oetiker [mailto:tobi at oetiker.ch]
> Sent: Wednesday, December 31, 2008 1:14 PM
> To: Michael Dafforn
> Cc: smokeping-users at lists.oetiker.ch
> Subject: Re: [smokeping-users] smoketrace window
>
> 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