Munin : Install2016/01/15 |
Install Munin to monitor system status.
|
|
[1] | |
[2] | Install Munin server. Also Install Munin agent to monitor Munin server itself. |
root@dlp:~# apt-get -y install munin munin-node
|
[3] | Configure Munin Server. |
root@dlp:~#
vi /etc/munin/munin.conf # line 98: change to your own hostname [ dlp.srv.world ]address 127.0.0.1 use_node_name yes
root@dlp:~#
vi /etc/munin/apache.conf # line 18: add access permission Allow from localhost 127.0.0.0/8 ::1 10.0.0.0/24
# line 29-32: uncomment AuthUserFile /etc/munin/munin-htpasswd AuthName "Munin" AuthType Basic require valid-user
root@dlp:~#
/etc/init.d/munin start root@dlp:~# /etc/init.d/apache2 restart * Restarting web server apache2 ...done. # add a user ( create a new file with "-c" ) root@dlp:~# htpasswd -c /etc/munin/munin-htpasswd ubuntu New password: # set password Re-type new password: Adding password for user ubuntu |
[4] | Configure Munin node as a monitoring target. |
root@dlp:~#
vi /etc/munin/munin-node.conf # line 37: change to your own hostname host_name dlp.srv.world
/etc/init.d/munin-node stop * Stopping Munin-Node ...done. root@dlp:~# /etc/init.d/munin-node start * Starting Munin-Node ...done. |
[5] | Access to the "http://(Munin server's hostname or IP address)/munin/" from a client which is in the network allowed in config. Then, authentication is required, input a username and password you set in [3] and proceed next. |
[6] | After sucessing authentication, the index page is displayed. It's possible to see graphs to click a hostname. |
Sponsored Link |
|