Setting up Smokeping: Difference between revisions

From Alpine Linux
m (Further formatting and cleaning up)
m (cleanup after another proofreading)
Line 14: Line 14:
  ln -s /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<br />
Softlink /var/lib/smokeping/.simg -> /var/www/localhost/htdocs/img<br />
ln -s /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:<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 20: Line 20:
This is because in Alpine, regular user can't run a traceroute
This is because in Alpine, regular user can't run a traceroute


Add sudo package, then add the following:<br />
Add sudo package, then add the following to /etc/sudoers using visudo command:<br />
  lighttpd ALL=(ALL) NOPASSWD: /usr/bin/traceroute
  lighttpd ALL=(ALL) NOPASSWD: /usr/bin/traceroute



Revision as of 12:51, 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 to /etc/sudoers using visudo command:

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.