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

Matt Almgren almgren at gmail.com
Mon Dec 3 00:49:20 CET 2012


OPS-SMOKE01 /var/www/html # ls -lrt
total 4
drwxr-xr-x 3 root root 4096 Dec  2 00:54 cropper
lrwxrwxrwx 1 root root   20 Dec  2 01:20 cache -> /opt/smokeping/cache
OPS-SMOKE01 /var/www/html #



On Sun, Dec 2, 2012 at 3:48 PM, Matt Almgren <almgren at gmail.com> wrote:

> Hi Tobi, I moved the cropper directory to /var/www/html/cropper
> and changed the basehtml page to:
>
> </STYLE>
>
> <script src="/var/www/html/cropper/lib/prototype.js"
> type="text/javascript"></script>
> <script
> src="/var/www/html/cropper/lib/scriptaculous.js?load=builder,effects,dragdrop"
> type="text/javascript"></script>
> <script src="/var/www/html/cropper/cropper.js"
> type="text/javascript"></script>
> <script src="/var/www/html/cropper/smokeping-zoom.js"
> type="text/javascript"></script>
>
> But then I see this in the error log:
>
>
> [Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not
> exist: /var/www/html/var, referer:
> http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway
> [Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not
> exist: /var/www/html/var, referer:
> http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway
> [Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not
> exist: /var/www/html/var, referer:
> http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway
> [Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not
> exist: /var/www/html/var, referer:
> http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway
> [
>
> And when you say " If you store smokeping in cgi-bin then things will
> fall appart" I'm confused by this.  I thought the smokeping.fcgi has to be
> in the cgi-bin directory?
>
> I'm missing something.  Given the path above and the basehtml configs,
> what needs to be done for this to work?
>
> Thanks, Matt
> .
>
>
> On Sun, Dec 2, 2012 at 10:31 AM, Tobias Oetiker <tobi at oetiker.ch> wrote:
>
>> Matt,
>>
>> Today Matt Almgren wrote:
>>
>> > Where is that path defined?
>>
>> in the basepage.html file
>>
>> by default the stuff is in a subdirectory underneath where
>> smokeping.cgi is stored. If you store smokeping in cgi-bin then
>> things will fall appart.
>>
>> you have to move the cropper directory somewhere else and modify
>> the basepage.html file accordingly.
>>
>> cheer
>> tobi
>>
>> > Thanks!
>> >
>> >
>> > -- iMatt
>> >
>> > On Dec 2, 2012, at 3:58 AM, Tobias Oetiker <tobi at oetiker.ch> wrote:
>> >
>> > > Hi Matt,
>> > >
>> > > have a look at the html template you are using, it might be that
>> > > the cropper.js file does not get loaded ... the path must be
>> > > correct for it to load, and it must not reside inside the cgi-bin
>> > > directory as this would cause the webserver to try to execute the
>> > > code.
>> > >
>> > > cheers
>> > > tobi
>> > >
>> > > Today Matt Almgren wrote:
>> > >
>> > >> 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
>> > >>>>>>
>> > >>>>>>
>> > >>>>>
>> > >>>>
>> > >>>
>> > >>
>> > >
>> > > --
>> > > 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
>> >
>> >
>>
>> --
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121202/179f6434/attachment-0001.htm 


More information about the smokeping-users mailing list