From kt at avis.no Thu Apr 3 16:03:41 2014 From: kt at avis.no (Thorstensen, Kjetil) Date: Thu, 3 Apr 2014 14:03:41 +0000 Subject: [smokeping-users] New browsers do not show graphs In-Reply-To: <814B488316DAF54FBDB3DDEEA2F5B59234254811@N10OS2CE16CN1.N10.tconet.net> References: <814B488316DAF54FBDB3DDEEA2F5B59234253E5A@N10OS2CE16CN1.N10.tconet.net> <814B488316DAF54FBDB3DDEEA2F5B59234254718@N10OS2CE16CN1.N10.tconet.net> <814B488316DAF54FBDB3DDEEA2F5B59234254811@N10OS2CE16CN1.N10.tconet.net> Message-ID: <814B488316DAF54FBDB3DDEEA2F5B5923425EB21@N10OS2CE16CN1.N10.tconet.net> 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: Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all 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] On Behalf Of Paul Mansfield Sent: 31. mars 2014 14:41 To: 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 Options +ExecCGI Addhandler fcgid-script * Order allow,deny Allow from 192.168.0.0/24 DirectoryIndex smokeping.fcgi Alias /cache /usr/local/smokeping/cache Allow from all 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 > 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:smokeping-users-bounces+kt=avis.no at lists.oetiker.ch] On Behalf Of Paul Mansfield Sent: 31. mars 2014 12:59 To: 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 From pf at tippete.net Thu Apr 24 17:43:14 2014 From: pf at tippete.net (Pierfrancesco Caci) Date: Thu, 24 Apr 2014 17:43:14 +0200 Subject: [smokeping-users] master/slave questions Message-ID: <87vbtyspgt.fsf@snoopy.tippete.net> Hello, I've managed to get 2 smokepings working as master and slave. I see the graphs from both the master and the slave and all seems working fine. Now it comes the time to do some tweaking: 1) in the overview graphs, I can change the colour for the slaves, but I can't find the corresponding command for the master. Is it possible to tweak the master graph colours? 2) in the individual graphs, I see the slave as e.g. "Last 3 hours from Hong Kong", but the master only has "Last 3 hours". Is there a way to specify the display_name for the master in the individual graphs? oddly, this works for the overview graphs, but not for the individual ones (the colour legend properly puts the master's display name inside the graph) 3) I was hoping to be able to provide some sort of separate views for each slave, instead of having them all in the same page for each target. Is this something that can be achieved with hieararchies? Thanks Pf -- Pierfrancesco Caci, ik5pvx