Setting up Smokeping: Difference between revisions

From Alpine Linux
m (Formatting)
m (Further formatting and cleaning up)
Line 1: Line 1:
Setting_up_Smokeping_to_Monitor__Network_Latency<br />
== Setting up Smokeping to Monitor Network Latency==
Notes for smokeping and smoketrace (need edge/testing repo to install smokeping):
 
<b> Smokeping and Smoketrace setup </b>
 
Add edge/testing repository to install smokeping
 
Install lighttpd, then in lighttpd.conf uncomment line: include "mod_cgi.conf", save and exit <br /><br />
Assign cgi to run with /usr/bin/perl in /etc/lighttpd/mod_cgi.conf (by default it's only in cgi-bin virtual host): <br />
cgi.assign = (
".cgi" => "/usr/bin/perl"
)


after install, enable mod_cgi in lighttpd<br />
Assign cgi to run with /usr/bin/perl in mod_cgi (by default it's only in cgi-bin virtual host)<br />
Softlink /usr/share/webapps/smokeping -> /var/www/localhost/htdocs/smokeping<br />
Softlink /usr/share/webapps/smokeping -> /var/www/localhost/htdocs/smokeping<br />
ln -s /usr/share/webapps/smokeping /var/www/localhost/htdocs/smokeping
Softlink /var/lib/smokeping/.simg -> /var/www/localhost/htdocs/img<br />
Softlink /var/lib/smokeping/.simg -> /var/www/localhost/htdocs/img<br />
ln -s /var/lib/smokeping/.simg /var/www/localhost/htdocs/img


/usr/share/perl5/vendor_perl/Qooxdoo/Services/Tr.pm<br />
Edit /usr/share/perl5/vendor_perl/Qooxdoo/Services/Tr.pm and on line 34: add "sudo", to beginning so that line looks like:<br />
line 34: add "sudo", to beginning, add path to traceroute /usr/bin/<br />
system "sudo","traceroute","-I","-q","1",$host;
This is because in Alpine, regular user can't run a traceroute, but I
This is because in Alpine, regular user can't run a traceroute
don't think people would want this by default (some don't like sudo on
system at all)
 
/etc/sudoers<br />
add lighttpd ALL=(ALL) NOPASSWD: /usr/bin/traceroute<br />


If using lighttpd, change permissions on /var/lib/smokeping/.simg to 777. <br />
Add sudo package, then add the following:<br />
Set fping to using setuid: chmod u+s /usr/sbin/fping<br />
lighttpd ALL=(ALL) NOPASSWD: /usr/bin/traceroute
Add hosts to be monitored in /etc/smokeping/config <br />


Change permissions on /var/lib/smokeping/.simg to 777. <br />
chmod 777 /var/lib/smokeping/.simg
Set fping to using setuid:<br />
chmod u+s /usr/sbin/fping
Add hosts to be monitored in /etc/smokeping/config and remove example hosts<br />
<br />
<br />
For further information on configuration, see the smokeping homepage http://oss.oetiker.ch/smokeping/doc/index.en.html.

Revision as of 12:50, 30 July 2010

Setting up Smokeping to Monitor Network Latency

Smokeping and Smoketrace setup

Add edge/testing repository to install smokeping

Install lighttpd, then in lighttpd.conf uncomment line: include "mod_cgi.conf", save and exit

Assign cgi to run with /usr/bin/perl in /etc/lighttpd/mod_cgi.conf (by default it's only in cgi-bin virtual host):

cgi.assign = (
".cgi" => "/usr/bin/perl"
)

Softlink /usr/share/webapps/smokeping -> /var/www/localhost/htdocs/smokeping

ln -s /usr/share/webapps/smokeping /var/www/localhost/htdocs/smokeping

Softlink /var/lib/smokeping/.simg -> /var/www/localhost/htdocs/img
ln -s /var/lib/smokeping/.simg /var/www/localhost/htdocs/img

Edit /usr/share/perl5/vendor_perl/Qooxdoo/Services/Tr.pm and on line 34: add "sudo", to beginning so that line looks like:

system "sudo","traceroute","-I","-q","1",$host;

This is because in Alpine, regular user can't run a traceroute

Add sudo package, then add the following:

lighttpd ALL=(ALL) NOPASSWD: /usr/bin/traceroute

Change permissions on /var/lib/smokeping/.simg to 777.

chmod 777 /var/lib/smokeping/.simg

Set fping to using setuid:

chmod u+s /usr/sbin/fping

Add hosts to be monitored in /etc/smokeping/config and remove example hosts

For further information on configuration, see the smokeping homepage http://oss.oetiker.ch/smokeping/doc/index.en.html.