<div>OPS-SMOKE01 /var/www/html # ls -lrt</div><div>total 4</div><div>drwxr-xr-x 3 root root 4096 Dec 2 00:54 cropper</div><div>lrwxrwxrwx 1 root root 20 Dec 2 01:20 cache -> /opt/smokeping/cache</div><div>OPS-SMOKE01 /var/www/html #</div>
<div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 2, 2012 at 3:48 PM, Matt Almgren <span dir="ltr"><<a href="mailto:almgren@gmail.com" target="_blank">almgren@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tobi, I moved the cropper directory to /var/www/html/cropper<div>and changed the basehtml page to:</div><div><br></div>
<div><div></STYLE></div><div><br></div><div><script src="/var/www/html/cropper/lib/prototype.js" type="text/javascript"></script></div>
<div><script src="/var/www/html/cropper/lib/scriptaculous.js?load=builder,effects,dragdrop" type="text/javascript"></script></div><div><script src="/var/www/html/cropper/cropper.js" type="text/javascript"></script></div>
<div><script src="/var/www/html/cropper/smokeping-zoom.js" type="text/javascript"></script></div><div><br></div></div><div>But then I see this in the error log:</div><div><br></div><div><div>
<br></div><div>[Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not exist: /var/www/html/var, referer: <a href="http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway" target="_blank">http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway</a></div>
<div>[Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not exist: /var/www/html/var, referer: <a href="http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway" target="_blank">http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway</a></div>
<div>[Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not exist: /var/www/html/var, referer: <a href="http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway" target="_blank">http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway</a></div>
<div>[Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not exist: /var/www/html/var, referer: <a href="http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway" target="_blank">http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway</a></div>
<div>[</div></div><div><br></div><div>And when you say "<span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">If you store smokeping in cgi-bin then </span><span style="font-family:arial,sans-serif;font-size:13px">things will fall appart" I'm confused by this. I thought the smokeping.fcgi has to be in the cgi-bin directory?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I'm missing something. Given the path above and the basehtml configs, what needs to be done for this to work?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks, Matt</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">.</span></div>
<div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 2, 2012 at 10:31 AM, Tobias Oetiker <span dir="ltr"><<a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Matt,<br>
<div><br>
Today Matt Almgren wrote:<br>
<br>
> Where is that path defined?<br>
<br>
</div>in the basepage.html file<br>
<br>
by default the stuff is in a subdirectory underneath where<br>
smokeping.cgi is stored. If you store smokeping in cgi-bin then<br>
things will fall appart.<br>
<br>
you have to move the cropper directory somewhere else and modify<br>
the basepage.html file accordingly.<br>
<br>
cheer<br>
tobi<br>
<div><div><br>
> Thanks!<br>
><br>
><br>
> -- iMatt<br>
><br>
> On Dec 2, 2012, at 3:58 AM, Tobias Oetiker <<a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a>> wrote:<br>
><br>
> > Hi Matt,<br>
> ><br>
> > have a look at the html template you are using, it might be that<br>
> > the cropper.js file does not get loaded ... the path must be<br>
> > correct for it to load, and it must not reside inside the cgi-bin<br>
> > directory as this would cause the webserver to try to execute the<br>
> > code.<br>
> ><br>
> > cheers<br>
> > tobi<br>
> ><br>
> > Today Matt Almgren wrote:<br>
> ><br>
> >> And if I move the cropper directory - say to the /var/www/html/cropper<br>
> >> directory, I get these messages:<br>
> >><br>
> >> [Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or<br>
> >> unable to stat: /var/www/cgi-bin/cropper, referer:<br>
> >> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway</a><br>
> >> [Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or<br>
> >> unable to stat: /var/www/cgi-bin/cropper, referer:<br>
> >> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway</a><br>
> >> [Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or<br>
> >> unable to stat: /var/www/cgi-bin/cropper, referer:<br>
> >> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway</a><br>
> >> [Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or<br>
> >> unable to stat: /var/www/cgi-bin/cropper, referer:<br>
> >> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway</a><br>
> >><br>
> >> So something is telling it to look in that directory for the scripts.<br>
> >><br>
> >><br>
> >> On Sun, Dec 2, 2012 at 2:24 AM, Matt Almgren <<a href="mailto:almgren@gmail.com" target="_blank">almgren@gmail.com</a>> wrote:<br>
> >><br>
> >>> Config file, if that helps:<br>
> >>><br>
> >>> # NOTE: do not put the Image Cache below cgi-bin<br>
> >>> # since all files under cgi-bin will be executed ... this is not<br>
> >>> # good for images.<br>
> >>> imgcache = /opt/smokeping/cache<br>
> >>> imgurl = /cache<br>
> >>> datadir = /opt/smokeping/data<br>
> >>> piddir = /opt/smokeping/var<br>
> >>> #cgiurl = <a href="http://localhost/cgi-bin/smokeping.cgi" target="_blank">http://localhost/cgi-bin/smokeping.cgi</a><br>
> >>> #cgiurl = <a href="http://localhost/smokeping/smokeping.cgi" target="_blank">http://localhost/smokeping/smokeping.cgi</a><br>
> >>> cgiurl = <a href="http://localhost/cgi-bin/smokeping.fcgi" target="_blank">http://localhost/cgi-bin/smokeping.fcgi</a><br>
> >>> smokemail = /opt/smokeping/etc/smokemail<br>
> >>> tmail = /opt/smokeping/etc/tmail<br>
> >>> # specify this to get syslog logging<br>
> >>> syslogfacility = local0<br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>> On Sun, Dec 2, 2012 at 2:11 AM, Matt Almgren <<a href="mailto:almgren@gmail.com" target="_blank">almgren@gmail.com</a>> wrote:<br>
> >>><br>
> >>>><br>
> >>>> I noticed in the httpd error log I am seeing this:<br>
> >>>><br>
> >>>><br>
> >>>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission<br>
> >>>> denied: exec of '/var/www/cgi-bin/cropper/lib/prototype.js' failed,<br>
> >>>> referer:<br>
> >>>> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>
> >>>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of<br>
> >>>> script headers: prototype.js, referer:<br>
> >>>> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>
> >>>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission<br>
> >>>> denied: exec of '/var/www/cgi-bin/cropper/lib/scriptaculous.js' failed,<br>
> >>>> referer:<br>
> >>>> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>
> >>>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission<br>
> >>>> denied: exec of '/var/www/cgi-bin/cropper/cropper.js' failed, referer:<br>
> >>>> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>
> >>>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission<br>
> >>>> denied: exec of '/var/www/cgi-bin/cropper/smokeping-zoom.js' failed,<br>
> >>>> referer:<br>
> >>>> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>
> >>>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of<br>
> >>>> script headers: scriptaculous.js, referer:<br>
> >>>> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>
> >>>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of<br>
> >>>> script headers: cropper.js, referer:<br>
> >>>> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>
> >>>> [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of<br>
> >>>> script headers: smokeping-zoom.js, referer:<br>
> >>>> <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>
> >>>><br>
> >>>><br>
> >>>> Tobi has replied to some threads about this problem, but I'm not sure<br>
> >>>> what it means:<br>
> >>>><br>
> >>>> "check out you webserver configuration. for some reason it is trying<br>
> >>>> to execute the javascript files ... there must be some config that<br>
> >>>> is causing this ..."<br>
> >>>><br>
> >>>> I'm not sure what needs to change.<br>
> >>>><br>
> >>>> The only part of the default httpd.conf file that references cgi-bin is<br>
> >>>> this:<br>
> >>>><br>
> >>>> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"<br>
> >>>> # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased<br>
> >>>> <Directory "/var/www/cgi-bin"><br>
> >>>> #ErrorDocument 404 "/cgi-bin/<a href="http://missing_handler.pl" target="_blank">missing_handler.pl</a>"<br>
> >>>><br>
> >>>> And this from Tobi:<br>
> >>>><br>
> >>>> "you must not put these files into the cgi-bin directory since your<br>
> >>>> webserver will try to run them ... put them somewhere else!"<br>
> >>>><br>
> >>>> Well, if I put them someplace else, how is the browser know where to find<br>
> >>>> them? What is the recommended location for them, other than<br>
> >>>> /var/www/cgi-bin ? Or can I put something in httpd.conf to tell it not to<br>
> >>>> run them?<br>
> >>>><br>
> >>>> Thanks, Matt<br>
> >>>><br>
> >>>><br>
> >>>> On Sun, Dec 2, 2012 at 1:45 AM, Matt Almgren <<a href="mailto:almgren@gmail.com" target="_blank">almgren@gmail.com</a>> wrote:<br>
> >>>><br>
> >>>>> Great guide! I re-did two of my servers and also setup a third virgin<br>
> >>>>> server using that guide.<br>
> >>>>><br>
> >>>>> However, that doesn't solve my original problem. The cropper/zoom<br>
> >>>>> portion still doesn't work. I click on an image to drill down and when I<br>
> >>>>> go to select part of the graph, the image is grabbed (attempt to copy), but<br>
> >>>>> the cropper isn't doing it's function.<br>
> >>>>><br>
> >>>>> What else could be the problem?<br>
> >>>>><br>
> >>>>> BTW, I'd love to know if you have an RPM for that guide - otherwise I<br>
> >>>>> might make one.<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> On Fri, Nov 30, 2012 at 11:37 PM, Matt Almgren <<a href="mailto:almgren@gmail.com" target="_blank">almgren@gmail.com</a>>wrote:<br>
> >>>>><br>
> >>>>>> Not sure exactly what it's called, but I am unable to mouse click on a<br>
> >>>>>> graph, drag a box around it, and zoom in. I have smokeping 2.6.8.<br>
> >>>>>> installed in several CentOS 6.2 boxes and they all have this problem. I<br>
> >>>>>> have one install on an old SuSE box and it works fine, but I can't figure<br>
> >>>>>> out what the difference is. Does something need to be enabled for this?<br>
> >>>>>> Permission problem?<br>
> >>>>>><br>
> >>>>>> Thanks, Matt<br>
> >>>>>><br>
> >>>>>><br>
> >>>>><br>
> >>>><br>
> >>><br>
> >><br>
> ><br>
> > --<br>
> > Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>
> > <a href="http://it.oetiker.ch" target="_blank">http://it.oetiker.ch</a> <a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a> <a href="tel:%2B%2B41%2062%20775%209902" value="+41627759902" target="_blank">++41 62 775 9902</a> / sb: -9900<br>
><br>
><br>
<br>
--<br>
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>
<a href="http://it.oetiker.ch" target="_blank">http://it.oetiker.ch</a> <a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a> <a href="tel:%2B%2B41%2062%20775%209902" value="+41627759902" target="_blank">++41 62 775 9902</a> / sb: -9900<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>