User talk:Jbilyk

From Alpine Linux
Revision as of 12:35, 30 July 2010 by Jbilyk (talk | contribs) (noticed fping needs setuid to work properly)
This page is a work in progress ...

This page is still being developed.

Setting_up_Smokeping_to_Monitor__Network_Latency
Notes for smokeping and smoketrace (need edge/testing repo to install smokeping):

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

/usr/share/perl5/vendor_perl/Qooxdoo/Services/Tr.pm
line 34: add "sudo", to beginning, add path to traceroute /usr/bin/
This is because in Alpine, regular user can't run a traceroute, but I don't think people would want this by default (some don't like sudo on system at all)

/etc/sudoers
add lighttpd ALL=(ALL) NOPASSWD: /usr/bin/traceroute

If using lighttpd, change permissions on /var/lib/smokeping/.simg to 777.
Set fping to using setuid: chmod u+s /usr/sbin/fping
Add hosts to be monitored in /etc/smokeping/config