Talk:Setting up Smokeping: Difference between revisions

From Alpine Linux
 
Line 32: Line 32:
# since all files under cgi-bin will be executed ... this is not
# since all files under cgi-bin will be executed ... this is not
# good for images.
# good for images.
imgcache = /var/cache/smokeping/img  
imgcache = /var/cache/smokeping   
imgurl  = cache
imgurl  = cache
datadir  = /var/data/smokeping  
datadir  = /var/data/smokeping  
Line 41: Line 41:
</pre>
</pre>


no slaves
no slaves: comment it out in the config file.
 
Have to create some directories and link (in top of those described on main page):
<pre>
mkdir -p /var/cache/smokeping
mkdir -p /var/data/smokeping
chown -R smokeping /var/cache/smokeping
chown -R smokeping /var/data/smokeping
ln -s /var/cache/smokeping /var/www/localost/htdocs/smokeping/cache
</pre>

Latest revision as of 07:55, 17 April 2015

Wrong default config

smokeping

The default directories in /etc/smokeping/config do not exists.
When creating needed directories (in /var and not in /usr), do not forget to properly set ownership and access rights!
The pid should go under /var/run/smokeping.

The /usr/etc/*.dist files should be replaced by /etc/smokeping/* (without the .dist extention).

lighttpd

smoke:~# wget http://localhost/smokeping/smokeping.cgi
Connecting to localhost (127.0.0.1:80)
wget: server returned error: HTTP/1.1 403 Forbidden

uncomment the use of mod_cgi in /etc/lighttpd/lighttpd.conf

--Jch (talk) 09:19, 16 April 2015 (UTC)

example of working config

*** General ***

owner    = My Company
contact  = none@my.company 
mailhost = relay.my.company
sendmail = /usr/sbin/sendmail
# 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/cache/smokeping  
imgurl   = cache
datadir  = /var/data/smokeping 
piddir  = /var/run/smokeping 
cgiurl   = https://my.company/smokeping/smokeping.cgi 
smokemail = /etc/smokeping/smokemail 
tmail = /etc/smokeping/tmail  

no slaves: comment it out in the config file.

Have to create some directories and link (in top of those described on main page):

mkdir -p /var/cache/smokeping
mkdir -p /var/data/smokeping
chown -R smokeping /var/cache/smokeping
chown -R smokeping /var/data/smokeping
ln -s /var/cache/smokeping /var/www/localost/htdocs/smokeping/cache