월간 인기 게시물

게시물 1,377건
   
MUNIN - 리소스 모니터링툴
글쓴이 : 최고관리자 날짜 : 2015-05-06 (수) 12:43 조회 : 6717
글주소 :
                                
MUNIN - 네트워크 리소스 모니터링 툴
RRDtool 을 사용하고 프레임 워크는 Perl로 작성되었으며 마스터가 일정 간격으로 모든 노드들에 연결하고 데이터들을 요청하는 마스터 / 노드 구조를 가지고 있습니다. RRD 파일에 데이터를 저장하고 그래프를 업데이트하며 플러그인 (그래프) 작성이 용이합니다.

참고 :  http://munin-monitoring.org

# cat /etc/issue
Ubuntu 14.04.2 LTS \n \l

# 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 부분에 모니터링하고자 하는 노드들 목록이 표시








이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.