Setting up Smokeping: Difference between revisions
(Initial population of page) |
m (Formatting) |
||
Line 1: | Line 1: | ||
Notes for smokeping and smoketrace (need edge/testing repo to install smokeping): | Setting_up_Smokeping_to_Monitor__Network_Latency<br /> | ||
Notes for smokeping and smoketrace (need edge/testing repo to install smokeping): | |||
after install, enable mod_cgi in lighttpd | 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) | 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 | Softlink /usr/share/webapps/smokeping -> /var/www/localhost/htdocs/smokeping<br /> | ||
Softlink /var/lib/smokeping/.simg -> /var/www/localhost/htdocs/img | Softlink /var/lib/smokeping/.simg -> /var/www/localhost/htdocs/img<br /> | ||
/usr/share/perl5/vendor_perl/Qooxdoo/Services/Tr.pm<br /> | |||
line 34: add "sudo", to beginning, add path to traceroute /usr/bin/<br /> | |||
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<br /> | ||
add lighttpd ALL=(ALL) NOPASSWD: /usr/bin/traceroute<br /> | |||
/ | If using lighttpd, change permissions on /var/lib/smokeping/.simg to 777. <br /> | ||
Set fping to using setuid: chmod u+s /usr/sbin/fping<br /> | |||
Add hosts to be monitored in /etc/smokeping/config <br /> | |||
<br /> | |||
Revision as of 12:38, 30 July 2010
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