웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
2. snmp 설정
3. MRTG 설정
4. apache 설정
CentOS 6.5 MRTG 설치
2014.04.29 16:35
다른분이 작성하신 MRTG 세팅 게시물이 있지만 10년전 게시물이라...
따로 제가 호스팅 공유용으로 작성한 자료를 속성으로 작성합니다.
1. YUM 으로 MRTG 와 SNMP 데몬 설치
# yum install mrtg* net-snmp*
2. snmp 설정
# vi /etc/snmp/snmpd.confcom2sec local 127.0.0.1/32 publiccom2sec local 10.10.10.0/24 publiccom2sec local localhost publicgroup MyRWGroup v1 localgroup MyRWGroup v2c localgroup MyRWGroup usm localgroup MyROGroup v1 mynetworkgroup MyROGroup v2c mynetworkgroup MyROGroup usm mynetworkview systemview included .1.3.6.1.2.1.1view systemview included .1.3.6.1.2.1.25.1.1view all included .1 80access notConfigGroup "" any noauth exact systemview none noneaccess 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.confAllow from 127.0.0.1 을 Allow from All 로 변경
# /etc/init.d/httpd reload