MUNIN - ³×Æ®¿öÅ© ¸®¼Ò½º ¸ð´ÏÅ͸µ ÅøRRDtool À» »ç¿ëÇÏ°í ÇÁ·¹ÀÓ ¿öÅ©´Â Perl·Î ÀÛ¼ºµÇ¾úÀ¸¸ç ¸¶½ºÅÍ°¡ ÀÏÁ¤ °£°ÝÀ¸·Î ¸ðµç ³ëµåµé¿¡ ¿¬°áÇÏ°í µ¥ÀÌÅ͵éÀ» ¿äûÇÏ´Â ¸¶½ºÅÍ / ³ëµå ±¸Á¶¸¦ °¡Áö°í ÀÖ½À´Ï´Ù. RRD ÆÄÀÏ¿¡ µ¥ÀÌÅ͸¦ ÀúÀåÇÏ°í ±×·¡ÇÁ¸¦ ¾÷µ¥ÀÌÆ®Çϸç Ç÷¯±×ÀÎ (±×·¡ÇÁ) ÀÛ¼ºÀÌ ¿ëÀÌÇÕ´Ï´Ù.
Âü°í : http://munin-monitoring.org
# cat /etc/issue
# uname -a
Linux osd4 3.13.0-52-generic #85-Ubuntu SMP Wed Apr 29 16:44:17 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
# apt-get update
# apt-get install munin munin-node
# apt-get install apache2 apache2-utils
# mv /etc/munin/apache.conf /etc/munin/apache.conf_old
:: Munin °æ·Î ¾ÆÆÄÄ¡ ¼³Á¤
# cat > /etc/apache2/sites-available/munin.chonnom.com.conf
<VirtualHost *:80>
ServerName munin.chonnom.com
DocumentRoot "/var/cache/munin/www"
DirectoryIndex index.html
<Directory "/var/cache/munin/www">
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig
AuthUserFile /etc/munin/htpasswd
AuthName "munin"
AuthType Basic
Require valid-user
Order allow,deny
Allow from all
</Directory>
CustomLog /var/log/apache2/munin.chonnom.com-access.log combined
ErrorLog /var/log/apache2/munin.chonnom.com-error.log
<Directory "/etc/munin/static">
Require all granted
</Directory>
<Directory "/usr/lib/munin/cgi">
Options +ExecCGI
Require all granted
<IfModule mod_fcgid.c>
SetHandler fcgid-script
</IfModule>
<IfModule !mod_fcgid.c>
SetHandler cgi-script
</IfModule>
</Directory>
</VirtualHost>
# cd /etc/apache2/sites-available
# a2ensite munin.chonnom.com
# mv /etc/munin/munin.conf /etc/munin/munin.conf_old
# cat > /etc/munin/munin.conf
dbdir /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir /var/run/munin
tmpldir /etc/munin/templates
includedir /etc/munin/conf.d
graph_strategy cron
cgiurl_graph /munin-cgi/munin-cgi-graph
html_strategy cron
[localhost]
address ${ipaddress}
use_node_name yes
:: ¸ð´ÏÅ͸µ ÆäÀÌÁö ¾ÆÇÇÄ¡ ÀÎÁõ Æнº¿öµå ¼³Á¤
# htpasswd -c /etc/munin/htpasswd munin
# service munin-node restart
# service apache2 restart
/var/cache/munin/www °æ·Î¿¡ 5ºÐ´ÜÀ§ °»½Å À̹ÌÁö/ÆÄÀÏ À§Ä¡
### Multi Node µî·Ï¹æ¹ý ###
- Node Server
# apt-get update
# apt-get install munin-node
# vim /etc/munin/munin-node.conf
allow ^XXX\.XXX\.XXX\.XXX$ ### Munin ¼¹ö ¾ÆÀÌÇÇ ###
# service munin-node restart
- MUNIN Server
# vim /etc/munin/munin.conf
[osd3;XXX.XXX.XXX.XXX] ### Munin Node ¼¹ö ¾ÆÀÌÇÇ
address XXX.XXX.XXX.XXX
use_node_name yes
# service munin-node restart
:: ÁÂÃø Groups ºÎºÐ¿¡ ¸ð´ÏÅ͸µÇÏ°íÀÚ ÇÏ´Â ³ëµåµé ¸ñ·ÏÀÌ Ç¥½Ã