recently i have to install symon on the server so we can see the load of the system and here are the steps with a basic configuration and auth over the web server
first installed the packages
symon-2.82 active monitoring tool
syweb-0.60 web frontend to symon
then the configuration
/etc/symon.conf
monitor { cpu(0), mem,
if(lo0),if(bge0),if(re0),
pf,
mbuf,
proc(lighttpd),
proc(mysqld),
proc(named),
proc(pure-ftpd),
io(sd0a), io(sd0j)
} stream to 127.0.0.1 2100
/etc/symux.conf
mux 127.0.0.1 2100
source 127.0.0.1 {
accept {
cpu(0),
mem,
if(lo0),
if(bge0),
if(re0),
pf,
mbuf,
proc(lighttpd),
proc(mysqld),
proc(named),
proc(pure-ftpd),
io(sd0a),
io(sd0j)
}
datadir "/var/www/symon/rrds/localhost"
}
/etc/rc.local
...
if [ "$symon_flags" != "NO" -a -x /usr/local/libexec/symon ];then
printf ' symon -->'; /usr/local/libexec/symon && echo "\t\t [OK]" || echo "\t\t [Failed]" ;fi
if [ "$symux_flags" != "NO" -a -x /usr/local/libexec/symux ];then
printf ' symux -->'; /usr/local/libexec/symux && echo "\t\t [OK]" || echo "\t\t [Failed]" ;fi
$ sudo mkdir -p -m 0755 /var/www/symon/rrds/localhost
$ sudo /usr/local/share/symon/c_smrrds.sh all
configuration on the lighttpd for the auth
...
"mod_auth",
...
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
auth.require = ( "/syweb" =>
(
"method" => "digest",
"realm" => "Authorization",
"require" => "user=sax|user=moxi"
)
)
...
dont forget to put the credentials for the users on lighttpd.user file!
No comments:
Post a Comment