½Ã½ºÅÛ°ü¸®ÀÚÀÇ ½°ÅÍ Ä¿ÇǴнº Ä¿ÇÇÇâÀÌ ³ª´Â *NIX
Ä¿ÇǴнº
½Ã½ºÅÛ/³×Æ®¿÷/º¸¾ÈÀ» ´Ù·ç´Â °÷
 FAQFAQ   °Ë»ö°Ë»ö   ¸â¹ö¸®½ºÆ®¸â¹ö¸®½ºÆ®   »ç¿ëÀÚ ±×·ì»ç¿ëÀÚ ±×·ì   »ç¿ëÀÚ µî·ÏÇϱâ»ç¿ëÀÚ µî·ÏÇϱâ 
 °³ÀÎ Á¤º¸°³ÀÎ Á¤º¸   ºñ°ø°³ ¸Þ½ÃÁö¸¦ È®ÀÎÇÏ·Á¸é ·Î±×ÀÎÇϽʽÿÀºñ°ø°³ ¸Þ½ÃÁö¸¦ È®ÀÎÇÏ·Á¸é ·Î±×ÀÎÇϽʽÿÀ   ·Î±×Àηα×ÀΠ

°¡ÀÔ¾øÀÌ ´©±¸³ª ±ÛÀ» ¾µ ¼ö ÀÖ½À´Ï´Ù. °øÁö»çÇ׿¡ ´ëÇÑ ´ñ±Û±îÁöµµ..




BBS >> ¼³Ä¡, ¿î¿µ Q&A | ³×Æ®¿÷, º¸¾È Q&A | ÀÏ¹Ý Q&A || Á¤º¸¸¶´ç | AWS || ÀÚÀ¯°Ô½ÃÆÇ | ±¸Àα¸Á÷ || °øÁö»çÇ× | ÀÇ°ßÁ¦½Ã
½Ã½ºÅÛ ¸ð´ÏÅ͸µ Munin

 
±Û ¾²±â   ´äº¯ ´Þ±â    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ °Ô½ÃÆÇ À妽º -> *NIX / IT Á¤º¸
ÀÌÀü ÁÖÁ¦ º¸±â :: ´ÙÀ½ ÁÖÁ¦ º¸±â  
±Û¾´ÀÌ ¸Þ½ÃÁö
jjun_
¼Õ´Ô





¿Ã¸®±â¿Ã·ÁÁü: 2010.3.10 ¼ö, 5:14 pm    ÁÖÁ¦: ½Ã½ºÅÛ ¸ð´ÏÅ͸µ Munin Àοë°ú ÇÔ²² ´äº¯

ȸ»ç ½Ã½ºÅÛ¿¡ Àû¿ëÇϸ鼭 Á¤¸®ÇصР¹®¼­ÀÔ´Ï´Ù.

ȨÆäÀÌÁö : http://munin.projects.linpro.no/


ÀåÁ¡ : ¹«·á, °£ÆíÇÑ ¼³Á¤, ±ò²ûÇÑ ±×·¡ÇÁ, ´Ù¾çÇÑ Ç÷¯±×ÀÎ
´ÜÁ¡ : ±â°£ °Ë»ö ¾ÈµÊ, ±×·¡ÇÁ Å©±â Á¶Àý ¾ÈµÊ


¼³Ä¡ÂüÁ¶ : http://thuannvn.blogspot.com/2009/06/howto-install-munin-on-centos.html
munin µ¥¸ð : http://h1550830.stratoserver.net/munin/stratoserver.net/index.html


*** CentOS 5.3 i386 ±âÁØÀ¸·Î ÀÛ¼ºÇÏ°í Å×½ºÆ®ÇÏ¿´À½


1. ÆÐÅ°Áö ¼³Ä¡ Áغñ
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm


2. ¼­¹ö ¼³Ä¡

ÆÐÅ°Áö ¼³Ä¡
yum -y install httpd
yum -y install munin
yum -y install munin-node

¼­¹öÂÊ ¼³Á¤
vi /etc/munin/munin.conf
[localhost-server] // munin ¼­¹ö¿¡¼­ »ç¿ëµÉ À̸§À» ÁöÁ¤ÇÑ´Ù.
address 127.0.0.1
use_node_name yes

³ëµå(Ŭ¶óÀ̾ðÆ®) ¼³Á¤ // munin ¼­¹ö ÀÚü¸¦ ¸ð´ÏÅ͸µ Çϱâ À§Çؼ­
vi /etc/munin/munin-node.conf

host_name localhost-server // munin ¼­¹ö¿¡¼­ »ç¿ëµÉ À̸§À» ÁöÁ¤ÇÑ´Ù.


munin ½ÃÀÛ
/etc/rc.d/init.d/munin-node start
chkconfig munin-node on


Àß Àü¼ÛµÇ´ÂÁö tail -f /var/log/munin/munin-node.log Çؼ­ ·Î±×¸¦ È®ÀÎÇÑ´Ù.
2009/10/14-17:35:01 CONNECT TCP Peer: "127.0.0.1:37109" Local: "127.0.0.1:4949"
2009/10/14-17:40:01 CONNECT TCP Peer: "127.0.0.1:57802" Local: "127.0.0.1:4949"
ÀÌ·¸°Ô ³ª¿Â´Ù¸é Á¤»ó.


½Ã°£ÀÌ Á¶±Ý Áö³­ ÈÄ¿¡(µ¥ÀÌŸ°¡ ÀúÀåµÇ¸é) http://localhost/munin ¿¡¼­ È®ÀÎ




3. ³ëµå(Ŭ¶óÀ̾ðÆ®) Ãß°¡

ÆÐÅ°Áö ¼³Ä¡
yum install munin-node

³ëµå ¼³Á¤
vi /etc/munin/munin-node.conf

host_name localhost2 // munin ¼­¹ö¿¡¼­ »ç¿ëµÉ À̸§À» ÁöÁ¤ÇÑ´Ù.
allow ^192\.168\.0\.4$ // munin ¼­¹ö¸¦ ÁöÁ¤ÇÑ´Ù.

munin-node ½ÃÀÛ
/etc/rc.d/init.d/munin-node start
chkconfig munin-node on


¸¶Áö¸·À¸·Î ¼­¹ö /etc/munin/munin.conf ¿¡¼­ ³ëµå¸¦ Ãß°¡ÇØÁØ´Ù.

[localhost-server]
address 127.0.0.1
use_node_name yes

// ¾Æ·¡¿Í °°ÀÌ /etc/munin/munin-node.conf ¼öÁ¤ÇÒ¶§ ÀÔ·ÂÇÑ host_name°ú ¸ÂÃ߾ Ãß°¡ÇÏ¸é µÈ´Ù.
[localhost2]
address 192.168.0.5
use_node_name yes


Àß Àü¼ÛµÇ´ÂÁö tail -f /var/log/munin/munin-node.log Çؼ­ ·Î±×¸¦ È®ÀÎÇÑ´Ù.
2009/10/14-17:35:01 CONNECT TCP Peer: "192.168.0.4:33896" Local: "192.168.0.5:4949"
2009/10/14-17:40:01 CONNECT TCP Peer: "192.168.0.4:34895" Local: "192.168.0.5:4949"
ÀÌ·¸°Ô ³ª¿Â´Ù¸é Á¤»ó.

¾÷µ¥ÀÌÆ®°¡ Àß µÇ´Â Áö tail -f /var/log/munin/munin-update.log Çؼ­ ·Î±×¸¦ È®ÀÎÇÑ´Ù.
Oct 14 18:35:06 [4955] - Fetched service: localhost-server -> memory (0.08 sec)
Oct 14 18:35:07 [4955] - Fetched service: localhost-server -> vmstat (1.06 sec)
Oct 14 18:35:07 [4955] - Fetched node: localhost-server (4.71 sec)
Oct 14 18:35:01 [4954] - Processed node: localhost2 (0.01 sec)
Oct 14 18:35:01 [4954] - Processed domain: localhost2 (0.01 sec)
Oct 14 18:35:07 [4954] - connection from localhost2 -> localhost2 (4957)
Oct 14 18:35:07 [4954] - connection from localhost2 -> localhost2 (4957) closed
Oct 14 18:35:07 [4954] - connection from localhost-server -> localhost-server (4955)
Oct 14 18:35:07 [4954] - connection from localhost-server -> localhost-server (4955) closed
Oct 14 18:35:07 [4954] - Munin-update finished (6.43 sec)
ÀÌ·¸°Ô ³ª¿Â´Ù¸é Á¤»ó.



¸¸¾à °°Àº µµ¸ÞÀÎÀ¸·Î ºÐ·ùÇÒ·Á¸é ¼­¹öÀÇ /etc/munin/munin.conf¿¡¼­ ´ÙÀ½°ú °°ÀÌ Ãß°¡ÇÑ´Ù.

[testdomain;localhost-server]
address 192.168.0.4
use_node_name yes

[testdomain;localhost2]
address 192.168.0.5
use_node_name yes



4. Ç÷¯±×ÀÎ »ç¿ë

4.1. ¾ÆÆÄÄ¡ ¸ð´ÏÅ͸µ
¾ÆÆÄÄ¡ À¥¼­¹ö¸¦ ¸ð´ÏÅ͸µ ÇÒ·Á¸é
ln -s /usr/share/munin/plugins/apache_* /etc/munin/plugins/
Çؼ­ Ç÷¯±×ÀÎÀ» ¾µ¼ö ÀÖµµ·Ï ÇÏ°í,

¾ÆÆÄÄ¡ ¼³Á¤¿¡¼­µµ server-status ¸¦ »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ¼öÁ¤ÇÑ´Ù.
ExtendedStatus On

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

¸¶Áö¸·À¸·Î service munin-node restart ¸¦ ÇÏ¿© Àû¿ë½ÃŲ´Ù. ½Ã°£ÀÌ Áö³ª¸é ¸ð´ÏÅ͸µÈ­¸é¿¡¼­ °»½ÅµÇ¾î º¼ ¼ö ÀÖ´Ù.



4.2. MySQL ¸ð´ÏÅ͸µ(Å×½ºÆ® ÁøÇàÁß)
ln -s /usr/share/munin/plugins/mysql_* /etc/munin/plugins/

If your root user has a password (or want to use a different user),
edit the plugin configuration file in /etc/munin/plugin-conf.d/munin-node and
uncomment line 16 by removing the leading hash (#).
Then change the parameters that will be used when mysqladmin is run.


±×¿Ü Ç÷¯±×ÀÎ ´Ù¿î·Îµå
http://muninexchange.projects.linpro.no
¼³Ä¡¹æ¹ýÀº À§¿¡¼­µµ ¾Ë°ÚÁö¸¸ /etc/munin/plugins/ ¿¡ ÇØ´ç Ç÷¯±×ÀÎÀ» º¹»çÇϰųª ¸µÅ©¸¦ °É¾îÁÖ¸é µÈ´Ù.
ÀÚ¼¼ÇÑ °ÍµéÀº °¢ Ç÷¯±×ÀÎÀÇ README ¹®¼­µîÀ» È®ÀÎÇÏÀÚ.



5. munin ¸ð´ÏÅ͸µ ÆäÀÌÁö º¸¾È
¼­¹ö¿¡¼­ httpd.conf ¿¡ ´ÙÀ½ ³»¿ë Ãß°¡
<Directory "/var/www/html/munin">
Options -Indexes FollowSymLinks
AllowOverride All
Allow from all
</Directory>


/var/www/html/munin/.htaccess ÆÄÀÏ ÀÛ¼º

AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/html/munin/.mypasswd
<limit GET PUT POST>
require valid-user
</limit>


/var/www/html/munin/.mypasswd ÆÄÀÏ ÀÛ¼º

[root@localhost munin]# htpasswd -c /var/www/html/munin/.mypasswd admin
New password:
Re-type new password:
Adding password for user admin
[root@localhost munin]# cat .mypasswd
admin:WOQyFQnaXXA4E



6. ¿À·ù ¼öÁ¤
¼³Á¤¿¡ ÀÌ»óÀÌ ¾ø´Âµ¥µµ ±×·¡ÇÁ°¡ ±×·ÁÁöÁö ¾ÊÀ¸¸é(Á¤È®È÷´Â png ÆÄÀÏÀÌ »ý¼ºÀÌ ¾ÈµÇ¸é), ¿ÏÀüÈ÷ »èÁ¦ÇÏ°í À缳ġÇغ»´Ù.
yum remove munin munin-node
rm -rf /etc/munin/
rm -rf /var/log/munin/
rm -rf /var/www/html/munin/
rm -rf /var/run/munin/

¹æÈ­º®¿¡ ¸·Çô¼­ ±×·²¼ö µµ ÀÖÀ¸³ª tcpdump³ª telnet È£½ºÆ®¸í 4949 ·Î ¿­·ÁÀÖ´ÂÁö È®ÀÎ
¼­¹ö¿¡¼­ :
tcpdump host ³ëµåIP

15:45:06.026183 IP 192.168.0.4.56021 > 192.168.0.5.munin: . ack 18168 win 501 <nop,nop,timestamp 856234716 2614717493>
15:45:06.026283 IP 192.168.0.5.munin > 192.168.0.4.56021: P 18168:18536(368) ack 850 win 46 <nop,nop,timestamp 2614717533 856234716>
15:45:06.026299 IP 192.168.0.4.56021 > 192.168.0.5.munin: . ack 18536 win 501 <nop,nop,timestamp 856234716 2614717533>
15:45:06.028062 IP 192.168.0.4.56021 > 192.168.0.5.munin: F 850:850(0) ack 18536 win 501 <nop,nop,timestamp 856234718 2614717533>
15:45:06.028300 IP 192.168.0.5.munin > 192.168.0.4.56021: F 18536:18536(0) ack 851 win 46 <nop,nop,timestamp 2614717535 856234718>
15:45:06.028316 IP 192.168.0.4.56021 > 192.168.0.5.munin: . ack 18537 win 501 <nop,nop,timestamp 856234718 2614717535>

ÀÌ·¸°Ô Åë½ÅÀ» ÁÖ°í ¹ÞÀ¸¸é Á¤»ó.

[root@ns2 ~]# telnet 192.168.0.6 4949
Trying 192.168.0.6...
Connected to 192.168.0.6 (192.168.0.6).
Escape character is '^]'.
# munin node at localhost2

ÀÌ·¸°Ô ³ª¿À¸é Á¤»ó.


·Î±×¿¡ ¾Æ·¡¿Í °°ÀÌ ÂïÈù´Ù¸é (È®ÀÎÁß)
Use of uninitialized value in eval {block} exit at /usr/sbin/munin-node line 385, <CHILD> line 17.
http://osdir.com/ml/db.rddtool.munin.general/2008-02/msg00059.html
À» º¸¸é FQDNÀ¸·Î hostnameÀ» ÀÔ·ÂÇ϶ó°í ³ª¿Â´Ù. ´ÙÀ½ °Íµµ º¸ÀÚ. Á¦´ë·ÎµÈ hostnameÀ» ÁöÁ¤ÇÏ¸é µÈ´Ü´Ù.
http://charles.lescampeurs.org/2009/03/11/munin-and-use-of-uninitializer-value-in-eval



Á»´õ ¹ßÀüÀûÀÎ Âü°í ÀÚ·á
http://waste.mandragor.org/munin_tutorial/munin.html
http://wiki.kartbuilding.net/index.php/Munin_Statistics
http://www.arnebrodowski.de/blog/improving-munin-snmp-performance.html
À§·Î
t5mk2t
¼Õ´Ô





¿Ã¸®±â¿Ã·ÁÁü: 2010.4.09 ±Ý, 3:06 pm    ÁÖÁ¦: ¿À.. ÁÁÀºÁ¤º¸ °¨»çÇÕ´Ï´Ù ^^ Àοë°ú ÇÔ²² ´äº¯

Àúµµ Çѹø Àû¿ëÇغÁ¾ß°Ú³×¿ä~

°¨»çÇÕ´Ï´Ù ^^
À§·Î
jjun



°¡ÀÔ: 2009³â 12¿ù 10ÀÏ
¿Ã¸° ±Û: 8

¿Ã¸®±â¿Ã·ÁÁü: 2010.4.14 ¼ö, 10:22 am    ÁÖÁ¦: Munin¿¡¼­ MySQL ¸ð´ÏÅ͸µ Àοë°ú ÇÔ²² ´äº¯

¾îÁ¦ ȸ»ç¼­¹ö ¼³Á¤ÇÏ´Ù°¡ È®ÀÎÀÌ µÇ¾î¼­ Ãß°¡ÇÕ´Ï´Ù.

4.2. MySQL ¸ð´ÏÅ͸µ
ln -s /usr/share/munin/plugins/mysql_* /etc/munin/plugins/

mysqladmin Á¢¼ÓÀ» À§Çؼ­ ·Î±×ÀÎ Á¤º¸¸¦ Ãß°¡ÇØÁÖ¾î¾ß ÇÑ´Ù.
°ü·Ã ¿¡·¯´Â /var/log/munin/munin-node.log ¿¡ ±â·ÏµÈ´Ù.
ÄÚµå:
mysqladmin: connect to server at 'localhost' failed


ÇØ´ç ¼³Á¤Àº /etc/munin/plugin-conf.d/munin-node ¿¡¼­ ÇÏ¸é µÇ°í ³»¿ëÀº ´ÙÀ½°ú °°´Ù.

ÄÚµå:
[mysql*]
user root
env.mysqladmin /usr/bin/mysqladmin
env.mysqlopts --defaults-extra-file=/root/.my.cnf

-> user ÁöÁ¤À» mysql ½ÇÇà À¯ÀúÀÎ mysql ·Î Çصµ µÇ´ÂÁö´Â È®ÀÎÇÏÁö ¾ÊÀ½

.my.confÀÇ ³»¿ëÀº ´ÙÀ½°ú °°´Ù.
ÄÚµå:
[client]
user=°èÁ¤
password=¾ÏÈ£
socket=/var/lib/mysql/mysql.sock



Âü°íÀÚ·á : http://forums.cpanel.net/f42/munin-not-show-mysql-graphs-62093.html
À§·Î
»ç¿ëÀÚ Á¤º¸ º¸±â ºñ¹Ð ¸Þ½ÃÁö º¸³»±â
bugfree
¼Õ´Ô





¿Ã¸®±â¿Ã·ÁÁü: 2010.4.20 È­, 11:01 pm    ÁÖÁ¦: Munin¿¡¼­ MySQL ¸ð´ÏÅ͸µ (Ãß°¡) Àοë°ú ÇÔ²² ´äº¯

Àúµµ ¸î°³ Ãß°¡ ÇØ º¾´Ï´Ù.

1. mysql Á¢±Ù¿¡ Æнº¿öµå°¡ °É·Á ÀÖ´Â °æ¿ì
/etc/munin/plugins.conf ¿¡ ¾Æ·¡¸¦ Ãß°¡ ÇÑ´Ù.

ÄÚµå:

[mysql*]
env.mysqlopts -uÀ¯Àú¸í -pÆнº¿öµå
env.mysqladmin mysqladmin°æ·Î


2. munin ¼­¹ö¿¡¼­ munin-node °ªÀ» °¡Á®¿ÀÁö ¸øÇÒ¶§

telnet À» ÅëÇؼ­ °ªÀ» °¡Á®¿À´ÂÁö ¸ÕÀú È®ÀÎÇغ»´Ù

[root@dosirak plugins]# telnet 218.xxx.xxx.21 4949
Trying 218.xxx.xxx.21...
Connected to 218.xxx.xxx.21 (218.xxx.xxx.21).
Escape character is '^]'.
# munin node at 218.xxx.xxx.21

À§ »óÅ¿¡¼­ list, nodes, config, fetch, version or quit ¸¦ »ç¿ë ÇÒ ¼ö ÀÖ´Ù.
list
irqstats mysql_slowqueries apache_accesses if_eth0 df mysql_threads uptime swap load cpu mysql_queries iostat memory vmstat apache_processes apache_activity processes apache_volume interrupts netstat mysql_bytes port_www mysql_cachememory hddtemp_smartctl

½ÇÁ¦·Î °ªÀ» °¡Á®¿À´ÂÁö È®ÀÎÇØ º»´Ù.
fetch mysql_queries

delete.value 258
insert.value 26003
replace.value 0
select.value 684503
update.value 51821
cache_hits.value 0

ÀÌ·¸°Ô ³ª¿Â´Ù¸é Á¤»ó

ps. /var/lib/munin ¿¡ munin user °¡ R/W ÇÒ ¼ö ÀÖ´Â ±ÇÇÑÀÌ ÀÖ´ÂÁöµµ È®ÀÎ
À§·Î
ÀÌÀü ±Û Ç¥½Ã:   
±Û ¾²±â   ´äº¯ ´Þ±â    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ °Ô½ÃÆÇ À妽º -> *NIX / IT Á¤º¸ ½Ã°£´ë: GMT + 9 ½Ã°£(Çѱ¹)
ÆäÀÌÁö 1 Áß 1

 
°Ç³Ê¶Ù±â:  
»õ·Î¿î ÁÖÁ¦¸¦ ¿Ã¸± ¼ö ÀÖ½À´Ï´Ù
´ä±ÛÀ» ¿Ã¸± ¼ö ÀÖ½À´Ï´Ù
ÁÖÁ¦¸¦ ¼öÁ¤ÇÒ ¼ö ¾ø½À´Ï´Ù
¿Ã¸° ±ÛÀ» »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù
ÅõÇ¥¸¦ ÇÒ ¼ö ¾ø½À´Ï´Ù


Powered by phpBB © 2001, 2005 phpBB Group