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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]>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 [email protected] ++41 62 775 9902 / sb: -9900 > > -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900 _______________________________________________ smokeping-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
