[smokeping-users] New browsers do not show graphs
Thorstensen, Kjetil
kt at avis.no
Thu Apr 3 16:03:41 CEST 2014
Hi.
I found the problem - I'd love to say that it was by design, but more a coincidence.
I stumbled on the properties of the graphics - the path was a URL where the smokeping server was referenced with its hostname only, not IP or FQDN. This cannot be resolved in my new environment. After some searching I found the setting in the top of the smokeping config file - along with the definitions of the monitored hosts:
# 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 = /var/www/html/smokeping/img
imgurl = http://10.XXX.XXX.91/smokeping/img
datadir = /usr/local/smokeping/var
piddir = /usr/local/smokeping/var
cgiurl = http://10.XXX.XXX.91/smokeping.cgi
smokemail = /usr/local/smokeping/etc/smokemail
tmail = /usr/local/smokeping/etc/tmail
# specify this to get syslog logging
When I swapped the hostname for the IP it work fine - and much quicker too.
/Kjetil
"The true definition of madness is repeating the same action, over and over, hoping for a different result."
Albert Einstein
From: smokeping-users-bounces+kt=avis.no at lists.oetiker.ch [mailto:smokeping-users-bounces+kt=avis.no at lists.oetiker.ch] On Behalf Of Thorstensen, Kjetil
Sent: 31. mars 2014 15:00
To: Paul Mansfield; smokeping-users at lists.oetiker.ch
Subject: Re: [smokeping-users] New browsers do not show graphs
/etc/httpd/conf/httpd.conf:
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
There are no 404's though, because I get the sidebar with the list of monitored hosts, but just the "broken page" icon on the right:
[cid:image001.png at 01CF4F55.DD8466D0]
/Kjetil
From: smokeping-users-bounces+kt=avis.no at lists.oetiker.ch<mailto:smokeping-users-bounces+kt=avis.no at lists.oetiker.ch> [mailto:smokeping-users-bounces+kt=avis.no at lists.oetiker.ch] On Behalf Of Paul Mansfield
Sent: 31. mars 2014 14:41
To: smokeping-users at lists.oetiker.ch<mailto:smokeping-users at lists.oetiker.ch>
Subject: Re: [smokeping-users] New browsers do not show graphs
(I restored the list as a recipient; see far below for Kjetil's response direct to me)
I think you must have set up web server incorrectly. Here's some bits of my apache vhost config
DocumentRoot /usr/local/smokeping/htdocs
<Directory /usr/local/smokeping/htdocs>
Options +ExecCGI
Addhandler fcgid-script *
Order allow,deny
Allow from 192.168.0.0/24<http://192.168.0.0/24>
DirectoryIndex smokeping.fcgi
</Directory>
Alias /cache /usr/local/smokeping/cache
<Directory /usr/local/smokeping/cache>
Allow from all
</Directory>
That should stop a bunch of the 404s. Don't forget to kill all the fcgi processes after reloading apache ("apachectl graceful" for example).
On 31 March 2014 13:09, Thorstensen, Kjetil <kt at avis.no<mailto:kt at avis.no>> wrote:
There are quite a lot of these messages in error_log - but they refer to the server where I am able to see graphics as well as the PC where I can't - below:
[Mon Mar 31 14:01:45 2014] [error] [client 10.99.24.125] script not found or unable to stat: /var/www/cgi-bin/cropper, referer: http://10.99.20.91/cgi-bin/smokeping.cgi?target=RAC.External
In access_log it looks like this:
10.99.24.125 - - [31/Mar/2014:14:06:49 +0200] "GET /cgi-bin/smokeping.cgi?target=RAC.External HTTP/1.1" 200 6899 "http://10.99.20.91/cgi-bin/smokeping.cgi?target=RAC.External" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36"
10.99.24.125 - - [31/Mar/2014:14:06:49 +0200] "GET /cgi-bin/cropper/lib/scriptaculous.js?load=builder,dragdrop HTTP/1.1" 404 310 "http://10.99.20.91/cgi-bin/smokeping.cgi?target=RAC.External" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36"
10.99.24.125 - - [31/Mar/2014:14:06:49 +0200] "GET /cgi-bin/cropper/lib/prototype.js HTTP/1.1" 404 306 "http://10.99.20.91/cgi-bin/smokeping.cgi?target=RAC.External" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36"
10.99.24.125 - - [31/Mar/2014:14:06:49 +0200] "GET /cgi-bin/cropper/cropper.js HTTP/1.1" 404 300 "http://10.99.20.91/cgi-bin/smokeping.cgi?target=RAC.External" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36"
10.99.24.125 - - [31/Mar/2014:14:06:49 +0200] "GET /cgi-bin/cropper/smokeping-zoom.js HTTP/1.1" 404 307 "http://10.99.20.91/cgi-bin/smokeping.cgi?target=RAC.External" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36"
Kind regards
/Kjetil
From: smokeping-users-bounces+kt=avis.no at lists.oetiker.ch<mailto:avis.no at lists.oetiker.ch> [mailto:smokeping-users-bounces+kt<mailto:smokeping-users-bounces%2Bkt>=avis.no at lists.oetiker.ch<mailto:avis.no at lists.oetiker.ch>] On Behalf Of Paul Mansfield
Sent: 31. mars 2014 12:59
To: smokeping-users at lists.oetiker.ch<mailto:smokeping-users at lists.oetiker.ch>
Subject: Re: [smokeping-users] New browsers do not show graphs
what do you see in the web logs when using a "broken" browser?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20140403/c4a0d95d/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6377 bytes
Desc: image001.png
Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20140403/c4a0d95d/attachment-0001.png
More information about the smokeping-users
mailing list