RadarURL

웹서버 CentOS 6.5 MRTG 설치

by JAESOO posted Dec 26, 2014
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

다른분이 작성하신 MRTG 세팅 게시물이 있지만 10년전 게시물이라...
따로 제가 호스팅 공유용으로 작성한 자료를 속성으로 작성합니다.


1. YUM 으로 MRTG 와 SNMP 데몬 설치

# yum install mrtg* net-snmp*


2. snmp 설정

# vi /etc/snmp/snmpd.conf
com2sec local     127.0.0.1/32    public
com2sec local     10.10.10.0/24   public
com2sec local     localhost       public
 
group MyRWGroup v1         local
group MyRWGroup v2c        local
group MyRWGroup usm        local
group MyROGroup v1         mynetwork
group MyROGroup v2c        mynetwork
group MyROGroup usm        mynetwork
 
view    systemview    included   .1.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.1
view all    included  .1                               80
 
access  notConfigGroup ""      any       noauth    exact  systemview none none
access MyROGroup ""      any       noauth    exact  all    none   none
access MyRWGroup ""      any       noauth    exact  all    all    none# /etc/init.d/snmpd start

3. MRTG 설정
# cfgmaker --global 'WorkDir: /var/www/mrtg/' --global 'Language: korean' --global 'Option[_]:bits,growright' -output /etc/mrtg/mrtg.cfg public@localhost
# indexmaker --title "A2B.SO First SERVER Status" --output /var/www/mrtg/index.html /etc/mrtg/mrtg.cfg

4. apache 설정
 
# vi /etc/httpd/conf.d/mrtg.conf
Allow from 127.0.0.1 을 Allow from All 로 변경
# /etc/init.d/httpd reload


출처 : https://www.xpressengine.com/tiptech_server/22708742

TAG •