[smokeping-users] Unable to click-drag to zoom

Matt Almgren almgren at gmail.com
Sun Dec 2 11:33:10 CET 2012


And if I move the cropper directory - say to the /var/www/html/cropper
directory, I get these messages:

[Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or
unable to stat: /var/www/cgi-bin/cropper, referer:
http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway
[Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or
unable to stat: /var/www/cgi-bin/cropper, referer:
http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway
[Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or
unable to stat: /var/www/cgi-bin/cropper, referer:
http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway
[Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or
unable to stat: /var/www/cgi-bin/cropper, referer:
http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway

So something is telling it to look in that directory for the scripts.


On Sun, Dec 2, 2012 at 2:24 AM, Matt Almgren <almgren at gmail.com> wrote:

> Config file, if that helps:
>
> # NOTE: do not put the Image Cache below cgi-bin
> # since all files under cgi-bin will be executed ... this is not
> # good for images.
> imgcache = /opt/smokeping/cache
> imgurl   = /cache
> datadir  = /opt/smokeping/data
> piddir  = /opt/smokeping/var
> #cgiurl   = http://localhost/cgi-bin/smokeping.cgi
> #cgiurl   = http://localhost/smokeping/smokeping.cgi
> cgiurl   = http://localhost/cgi-bin/smokeping.fcgi
> smokemail = /opt/smokeping/etc/smokemail
> tmail = /opt/smokeping/etc/tmail
> # specify this to get syslog logging
> syslogfacility = local0
>
>
>
>
>
> On Sun, Dec 2, 2012 at 2:11 AM, Matt Almgren <almgren at gmail.com> wrote:
>
>>
>> I noticed in the httpd error log I am seeing this:
>>
>>
>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission
>> denied: exec of '/var/www/cgi-bin/cropper/lib/prototype.js' failed,
>> referer:
>> http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN
>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of
>> script headers: prototype.js, referer:
>> http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN
>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission
>> denied: exec of '/var/www/cgi-bin/cropper/lib/scriptaculous.js' failed,
>> referer:
>> http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN
>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission
>> denied: exec of '/var/www/cgi-bin/cropper/cropper.js' failed, referer:
>> http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN
>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission
>> denied: exec of '/var/www/cgi-bin/cropper/smokeping-zoom.js' failed,
>> referer:
>> http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN
>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of
>> script headers: scriptaculous.js, referer:
>> http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN
>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of
>> script headers: cropper.js, referer:
>> http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN
>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of
>> script headers: smokeping-zoom.js, referer:
>> http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN
>>
>>
>> Tobi has replied to some threads about this problem, but I'm not sure
>> what it means:
>>
>> "check out you webserver configuration. for some reason it is trying
>> to execute the javascript files ... there must be some config that
>> is causing this ..."
>>
>> I'm not sure what needs to change.
>>
>> The only part of the default httpd.conf file that references cgi-bin is
>> this:
>>
>> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>> # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
>> <Directory "/var/www/cgi-bin">
>> #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
>>
>> And this from Tobi:
>>
>> "you must not put these files into the cgi-bin directory since your
>> webserver will try to run them ... put them somewhere else!"
>>
>> Well, if I put them someplace else, how is the browser know where to find
>> them?   What is the recommended location for them, other than
>> /var/www/cgi-bin ?  Or can I put something in httpd.conf to tell it not to
>> run them?
>>
>> Thanks, Matt
>>
>>
>> On Sun, Dec 2, 2012 at 1:45 AM, Matt Almgren <almgren at gmail.com> wrote:
>>
>>> Great guide!  I re-did two of my servers and also setup a third virgin
>>> server using that guide.
>>>
>>> However, that doesn't solve my original problem.   The cropper/zoom
>>> portion still doesn't work.  I click on an image to drill down and when I
>>> go to select part of the graph, the image is grabbed (attempt to copy), but
>>> the cropper isn't doing it's function.
>>>
>>> What else could be the problem?
>>>
>>> BTW, I'd love to know if you have an RPM for that guide - otherwise I
>>> might make one.
>>>
>>>
>>>
>>> On Fri, Nov 30, 2012 at 11:37 PM, Matt Almgren <almgren at gmail.com>wrote:
>>>
>>>> Not sure exactly what it's called, but I am unable to mouse click on a
>>>> graph, drag a box around it, and zoom in.  I have smokeping 2.6.8.
>>>> installed in several CentOS 6.2 boxes and they all have this problem.  I
>>>> have one install on an old SuSE box and it works fine, but I can't figure
>>>> out what the difference is.  Does something need to be enabled for this?
>>>>  Permission problem?
>>>>
>>>> Thanks, Matt
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121202/7ec7328f/attachment-0001.htm 


More information about the smokeping-users mailing list