[smokeping-users] Smokeping install issue
Stephen Spence
sspence at clarkslegal.com
Tue Mar 6 16:26:50 CET 2007
Hi Stefan,
The error on /smokeping I get is:
Forbidden
You don't have permission to access /smokeping on this server.
Is this just an access problem for apache to the cgi file? The RRD files have appeared since adding the hosts to config.
The RRD errors were viewed when I did a --debug and looked like it didn't have access to the file, running --debug again I no longer see those errors:
FPing: probing 3 targets with step 300 s and offset 239 s.
FPing: Executing /opt/local/sbin/fping -C 20 -q -B1 -r1 -i10 172.20.1.1 172.27.1.1 172.29.1.1
FPing: Got fping output: '172.20.1.1 : 0.53 0.47 0.49 0.51 0.50 0.50 0.48 0.50 0.50 0.50 0.48 0.52 0.39 0.39 0.59 0.56 0.51 0.43 0.51 0.47'
FPing: Got fping output: '172.27.1.1 : 7.80 7.47 8.22 7.47 6.96 7.10 8.59 7.22 7.22 7.35 7.84 7.84 7.72 7.09 9.96 7.34 7.34 7.33 7.20 7.09'
FPing: Got fping output: '172.29.1.1 : 5.59 5.59 5.34 5.47 5.47 5.47 5.47 5.58 5.32 5.57 5.45 5.45 5.44 6.30 5.43 5.44 5.43 5.54 5.43 5.51'
Calling RRDs::update(/opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteC.rrd --template uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping19:ping20 N:U:0:7.3500000000e-03:6.9600000000e-03:7.0900000000e-03:7.0900000000e-03:7.1000000000e-03:7.2000000000e-03:7.2200000000e-03:7.2200000000e-03:7.3300000000e-03:7.3400000000e-03:7.3400000000e-03:7.3500000000e-03:7.4700000000e-03:7.4700000000e-03:7.7200000000e-03:7.8000000000e-03:7.8400000000e-03:7.8400000000e-03:8.2200000000e-03:8.5900000000e-03:9.9600000000e-03)
Alert "bigloss": no match for target /opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteC
Alert "someloss": no match for target /opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteC
Alert "startloss": no match for target /opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteC
Calling RRDs::update(/opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteB.rrd --template uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping19:ping20 N:U:0:5.0000000000e-04:3.9000000000e-04:3.9000000000e-04:4.3000000000e-04:4.7000000000e-04:4.7000000000e-04:4.8000000000e-04:4.8000000000e-04:4.9000000000e-04:5.0000000000e-04:5.0000000000e-04:5.0000000000e-04:5.0000000000e-04:5.0000000000e-04:5.1000000000e-04:5.1000000000e-04:5.1000000000e-04:5.2000000000e-04:5.3000000000e-04:5.6000000000e-04:5.9000000000e-04)
Alert "bigloss": no match for target /opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteB
Alert "someloss": no match for target /opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteB
Alert "startloss": no match for target /opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteB
Calling RRDs::update(/opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteA.rrd --template uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping19:ping20 N:U:0:5.4700000000e-03:5.3200000000e-03:5.3400000000e-03:5.4300000000e-03:5.4300000000e-03:5.4300000000e-03:5.4400000000e-03:5.4400000000e-03:5.4500000000e-03:5.4500000000e-03:5.4700000000e-03:5.4700000000e-03:5.4700000000e-03:5.4700000000e-03:5.5100000000e-03:5.5400000000e-03:5.5700000000e-03:5.5800000000e-03:5.5900000000e-03:5.5900000000e-03:6.3000000000e-03)
Alert "bigloss": no match for target /opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteA
Alert "someloss": no match for target /opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteA
Alert "startloss": no match for target /opt/local/var/smokeping/IPV4Hosts/Firm/IPTelephony/SiteA
Regards,
Steve
________________________________
From: Stefan Zeissig [mailto:zeissig at lewron.de]
Sent: 06 March 2007 15:11
To: Stephen Spence
Subject: Re: [smokeping-users] Smokeping install issue
hi steve,
mmh ... ... , check your /etc/apache2/sites-ena.../default...
i'm not shure, if the alias have to be inside the defined DocumentRoot [ actually not ] (... try a link to your installationpath from your virtual-host Document-Root). thats my /sites-enable/default...
... maybe the scriptAlias-section is necessary ?? first you said smokeping.cgi can't access (or provide ?) the *.rrd files - check the permissions of rrd-(data)-directory. the user that is running smokeping should be able to write there ...
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster at localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
the permissions that work for my installation:
ztest:/var/www# ls -lisa
insgesamt 16
403296 4 drwxr-xr-x 4 root root 4096 2007-02-23 03:59 .
370945 4 drwxr-xr-x 14 root root 4096 2007-02-23 03:01 ..
403297 4 drwxr-xr-x 2 root root 4096 2007-02-23 03:01 apache2-default
403311 4 drwxr-xr-x 6 www-data root 4096 2007-02-23 15:57 smokeping
ztest:/var/www/smokeping# ls -lisa
insgesamt 36
403311 4 drwxr-xr-x 6 www-data root 4096 2007-02-23 15:57 .
403296 4 drwxr-xr-x 4 root root 4096 2007-02-23 03:59 ..
403320 4 drwxr-xr-x 3 root root 4096 2007-02-23 05:00 cache
419439 4 drwxr-xr-x 11 www-data www-data 4096 2007-02-23 05:30 Local
419892 4 drwxr-xr-x 2 www-data www-data 4096 2007-03-03 23:08 __navcache
403332 4 -rw-r--r-- 1 www-data www-data 3908 2007-02-23 05:20 rrdtool.png
403318 0 lrwxrwxrwx 1 root root 30 2007-02-23 04:12 smokeping.cgi -> /usr/lib/cgi-bin/smokeping.cgi
403333 8 -rw-r--r-- 1 www-data www-data 4382 2007-02-23 05:20 smokeping.png
403319 4 drwxr-xr-x 3 root root 4096 2007-03-05 12:39 var
ztest:/var/www/smokeping/var# ls -lisa
insgesamt 16
403319 4 drwxr-xr-x 3 root root 4096 2007-03-05 12:39 .
403311 4 drwxr-xr-x 6 www-data root 4096 2007-02-23 15:57 ..
403321 4 drwxr-xr-x 2 root root 4096 2007-02-23 04:58 Local
403305 4 -rw-r--r-- 1 root root 5 2007-03-05 12:39 smokeping.pid
ztest:/usr/lib/cgi-bin# ls -lisa
insgesamt 24
113117 4 drwxr-xr-x 2 root root 4096 2007-02-23 05:31 .
16154 16 drwxr-xr-x 49 root root 16384 2007-03-06 00:19 ..
113118 4 -rwxr-xr-x 1 root root 2432 2007-02-23 04:42 smokeping.cgi
kind regards
stefan
Mit freundlichen Grüssen
Stefan Zeißig
Network Consulting
LEWRON GmbH
Teltowkanalstrasse 2
D 12247 Berlin
Geschäftsführer Peter Schauber,
Handelsregister Berlin Charlottenburg HRB24864,
USt-IdNr.DE167450257
Stephen Spence wrote:
Hi Stefan,
I'm using Apache2, also a darwinport. I'm following http://smokeping.darwinports.com/dports/net/smokeping/Portfile for the post installation stuff.
On this build I have three paths which the port installed to:
Smokedata: /opt/local/lib/smokeping/ contains the config and smokeping
Smokeroot: /opt/local/var/smokeping/ contains the log, cgi, img, etc
Smokeetc: /opt/local/etc/smokeping/
I've added an entry to apache for localhost/smokeping:
_+_+_+_+_+_+
Alias /smokeping \"/opt/local/var/smokeping\"
<Directory \"/opt/local/var/smokeping\">
Allow from all
Options ExecCGI
</Directory>
<IfModule dir_module>
DirectoryIndex index.html smokeping.cgi
</IfModule>
_+_+_+_+_+_+
I can get to the apache2 root dir fine, just having problems with /smokeping
What permissions will I need to set and which? Or is it a matter of changing ownership?
Regards,
Steve
-----Original Message-----
From: Stefan Zeissig [mailto:zeissig at lewron.de]
Sent: 06 March 2007 13:08
To: Stephen Spence
Subject: Re: [smokeping-users] Smokeping install issue
hi steve,
looks like a http-service problem ... what a server is in use ?
i'm using the default-enabled site from debian-a2, where /usr/lib/cgi-bin is the default-dir for the scripts.
this is the place for my smokeping.cgi and a softlink connects to my /"default-enabled-site"/smokeping/smokeping.cgi
# /etc/smokeping/config
sendmail = /usr/lib/sendmail
imgcache = /var/www/smokeping
imgurl = ../smokeping
datadir = /var/www/smokeping/var
piddir = /var/www/smokeping/var
cgiurl = http://192.168.100.78/smokeping/smokeping.cgi ###
/var/www/smokeping/smokeping.cgi is the softlink to /usr/lib/cgi-bin/smokeping.cgi smokemail = /etc/smokeping/smokemail tmail = /etc/smokeping/tmail
# /var/www/ -> is my default-enabled site in my a2-config
- check that softlinks and execution is allowed in your http-server-software
- check your path-vars in smokeping.cgi, smokeping-bin-pl's and your config-files
- check the user-rights for cgi-files and pl's
kind regards
stefan
Stephen Spence wrote:
Installing Smokeping via Darwinports I'm seeing two problems that I hope somebody can help with...
Following the portfile at http://smokeping.darwinports.com everything is installed but I get a Forbidden error when visiting http://localhost/smokeping - same for the smokeping.cgi directly and Permission Denied on the .rrd when I run smokeping under -debug from the terminal. Any ideas?
The only permissions change the portfile requests is to chown on the
smokedata folder for www:www (/opt/local/lib/smokeping)
TIA
Steve
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
smokeping-users mailing list
smokeping-users at lists.oetiker.ch<mailto:smokeping-users at lists.oetiker.ch>
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
--
Mit freundlichen Grüssen
S. Zeißig
-----------------------------------
Stefan Zeißig
Network Consulting
LEWRON GmbH
Teltowkanalstraße 2, D-12247 Berlin
mailto:zeissig at lewron.de
tel.: 00493072383135
fax.: 00493072383200
Geschäftsführer Peter Schauber,
Handelsregister Berlin Charlottenburg HRB24864,
USt-IdNr.DE167450257
http://www.lewron.de
------------------------------------
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
More information about the smokeping-users
mailing list