Talk:Setting up Smokeping: Difference between revisions

From Alpine Linux
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Wrong default config ==
== Wrong default config ==


The default directories in /etc/smokeping/config do not exists.
=== smokeping ===


When creating needed directories, do not forget to properly set ownership and access rights!
The default directories in /etc/smokeping/config do not exists.<br/>
When creating needed directories (in /var and not in /usr), do not forget to properly set ownership and access rights!<br/>
The pid should go under /var/run/smokeping.
 
The /usr/etc/*.dist files should be replaced by /etc/smokeping/* (without the .dist extention).
 
=== lighttpd ===
 
<pre>
smoke:~# wget http://localhost/smokeping/smokeping.cgi
Connecting to localhost (127.0.0.1:80)
wget: server returned error: HTTP/1.1 403 Forbidden
</pre>
uncomment the use of mod_cgi in /etc/lighttpd/lighttpd.conf


--[[User:Jch|Jch]] ([[User talk:Jch|talk]]) 09:19, 16 April 2015 (UTC)
--[[User:Jch|Jch]] ([[User talk:Jch|talk]]) 09:19, 16 April 2015 (UTC)
== example of working config ==
<pre>
*** 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 
</pre>
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