MRTG가 SNMP에서 자료를 제대로 못 받아 오는거 같습니다.
글쓴이: 사랑천사 / 작성시간: 월, 2007/01/08 - 2:27오전
네트워크 트레픽을 그래프로그리도록 설정을 해 두었는데 아무리 트래픽이 발생해도 결과가 바뀌질 않습니다. 분명히 5 분 간격으로 갱신은 되고 잇는데 트래픽은 0 0 0 0 입니다. 일간 평균, 주간 평균, 월간 평균, 년간 평균... 아 물론 이전 까지는 잘 기록이 되었습니다. 우분투에서 젠투로 옮기고 부터 그렇네요.
SNMP 5.2.1.2가 안 깔려서 ~x86 마스크 걸린거 풀어 주고 SNMP 5.4를 깔았습니다. 그리고 MRTG 2.14.5인가가 깔리더군요.
우선 두 개의 설정 파일입니다.
-- snmpd.conf --
####################### ## Secure-COmmunitys ## ####################### # Sec-Name Source Community-Name com2sec local localhost leclnet ############ ## Groups ## ############ # Group-Name Version Security-Name group LECL v1 local group LECL v2c local group LECL usm local access LECL "" any noauth exact all none none view all included .1 80 ######################### ## System Informations ## ######################### syslocation LECL syscontect <a href="mailto:yeosong@gmail.com" rel="nofollow">yeosong@gmail.com</a>
-- mrtg.conf --
WorkDir: /data/wwwroot/sysstat/mrtg EnableIPv6: no Language: korean Target[lecl]: 4:leclnet@localhost MaxBytes[lecl]: 12500000 Title[lecl]: LECL -- 네트워크 사용량 PageTop[lecl]: "<div align=center>전산기 네트워크 사용량 통계 분석표</div> <hr>"
그리고 아래는 cfgmaker 결과입니다.
root@main mrtg # cfgmaker leclnet@localhost --base: Get Device Info on leclnet@localhost: --base: Vendor Id: --base: Populating confcache --coca: populate confcache leclnet@localhost: --coca: store in confcache leclnet@localhost_ Name lo --> 1 --coca: store in confcache leclnet@localhost_ Name tunl0 --> 2 --coca: store in confcache leclnet@localhost_ Name eth0 --> 3 --coca: store in confcache leclnet@localhost_ Name eth1 --> 4 --coca: store in confcache leclnet@localhost_ Descr lo --> 1 --coca: store in confcache leclnet@localhost_ Descr tunl0 --> 2 --coca: store in confcache leclnet@localhost_ Descr eth0 --> 3 --coca: store in confcache leclnet@localhost_ Descr eth1 --> 4 --coca: store in confcache leclnet@localhost_ Type 24 --> 1 --coca: store in confcache leclnet@localhost_ Type 131 --> 2 --coca: store in confcache leclnet@localhost_ Type 6 --> 3 --coca: store in confcache leclnet@localhost_ Type 6 --> 4 (duplicate) --coca: store in confcache leclnet@localhost_ Ip 121.55.119.34 --> 4 --coca: store in confcache leclnet@localhost_ Ip 127.0.0.1 --> 1 --coca: store in confcache leclnet@localhost_ Ip 192.168.0.254 --> 3 --coca: store in confcache leclnet@localhost_ Eth --> 1 --coca: store in confcache leclnet@localhost_ Eth --> 2 (duplicate) --coca: store in confcache leclnet@localhost_ Eth 30-78-30-30-65-30-34-63-37-66- 30-33-32-32 --> 3 --coca: store in confcache leclnet@localhost_ Eth 30-78-30-30-30-62-36-61-36-64- 34-35-30-30 --> 4 --base: Get Interface Info --base: Walking ifIndex --base: Walking ifType --base: Walking ifAdminStatus --base: Walking ifOperStatus --base: Walking ifMtu --base: Walking ifSpeed # Created by # /usr/bin/cfgmaker leclnet@localhost ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:\mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no ###################################################################### # System: main # Description: Linux main 2.6.18-gentoo-r6-1lecl #1 Wed Jan 3 04:43:43 KST 2007 i686 # Contact: root@Unknown # Location: LECL ###################################################################### ### Interface 1 >> Descr: 'lo' | Name: 'lo' | Ip: '127.0.0.1' | Eth: '' ### ### The following interface is commented out because: ### * it is a Software Loopback interface # # Target[localhost_1]: 1:leclnet@localhost: # SetEnv[localhost_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo" # MaxBytes[localhost_1]: 1250000 # Title[localhost_1]: Traffic Analysis for 1 -- main # PageTop[localhost_1]: <h1>Traffic Analysis for 1 -- main</h1> # <div id="sysdetails"> # <table> # <tr> # <td>System:</td> # <td>main in LECL</td> # </tr> # <tr> # <td>Maintainer:</td> # <td>root@Unknown</td> # </tr> # <tr> # <td>Description:</td> # <td>lo </td> # </tr> # <tr> # <td>ifType:</td> # <td>softwareLoopback (24)</td> # </tr> # <tr> # <td>ifName:</td> # <td>lo</td> # </tr> # <tr> # <td>Max Speed:</td> # <td>1250.0 kBytes/s</td> # </tr> # <tr> # <td>Ip:</td> # <td>127.0.0.1 (main)</td> # </tr> # </table> # </div> ### Interface 2 >> Descr: 'tunl0' | Name: 'tunl0' | Ip: '' | Eth: '' ### ### The following interface is commented out because: ### * it is administratively DOWN ### * it is operationally DOWN ### * has a speed of 0 which makes no sense # # Target[localhost_2]: 2:leclnet@localhost: # SetEnv[localhost_2]: MRTG_INT_IP="" MRTG_INT_DESCR="tunl0" # MaxBytes[localhost_2]: 0 # Title[localhost_2]: Traffic Analysis for 2 -- main # PageTop[localhost_2]: <h1>Traffic Analysis for 2 -- main</h1> # <div id="sysdetails"> # <table> # <tr> # <td>System:</td> # <td>main in LECL</td> # </tr> # <tr> # <td>Maintainer:</td> # <td>root@Unknown</td> # </tr> # <tr> # <td>Description:</td> # <td>tunl0 </td> # </tr> # <tr> # <td>ifType:</td> # <td>Encapsulation Interface (131)</td> # </tr> # <tr> # <td>ifName:</td> # <td>tunl0</td> # </tr> # <tr> # <td>Max Speed:</td> # <td>0.0 Bytes/s</td> # </tr> # </table> # </div> ### Interface 3 >> Descr: 'eth0' | Name: 'eth0' | Ip: '192.168.0.254' | Eth: '30 -78-30-30-65-30-34-63-37-66-30-33-32-32' ### Target[localhost_3]: 3:leclnet@localhost: SetEnv[localhost_3]: MRTG_INT_IP="192.168.0.254" MRTG_INT_DESCR="eth0" MaxBytes[localhost_3]: 12500000 Title[localhost_3]: Traffic Analysis for 3 -- main PageTop[localhost_3]: <h1>Traffic Analysis for 3 -- main</h1> <div id="sysdetails"> <table> <tr> <td>System:</td> <td>main in LECL</td> </tr> <tr> <td>Maintainer:</td> <td>root@Unknown</td> </tr> <tr> <td>Description:</td> <td>eth0 </td> </tr> <tr> <td>ifType:</td> <td>ethernetCsmacd (6)</td> </tr> <tr> <td>ifName:</td> <td>eth0</td> </tr> <tr> <td>Max Speed:</td> <td>12.5 MBytes/s</td> </tr> <tr> <td>Ip:</td> <td>192.168.0.254 ()</td> </tr> </table> </div> ### Interface 4 >> Descr: 'eth1' | Name: 'eth1' | Ip: '121.55.119.34' | Eth: '30 -78-30-30-30-62-36-61-36-64-34-35-30-30' ### Target[localhost_4]: 4:leclnet@localhost: SetEnv[localhost_4]: MRTG_INT_IP="121.55.119.34" MRTG_INT_DESCR="eth1" MaxBytes[localhost_4]: 12500000 Title[localhost_4]: Traffic Analysis for 4 -- main PageTop[localhost_4]: <h1>Traffic Analysis for 4 -- main</h1> <div id="sysdetails"> <table> <tr> <td>System:</td> <td>main in LECL</td> </tr> <tr> <td>Maintainer:</td> <td>root@Unknown</td> </tr> <tr> <td>Description:</td> <td>eth1 </td> </tr> <tr> <td>ifType:</td> <td>ethernetCsmacd (6)</td> </tr> <tr> <td>ifName:</td> <td>eth1</td> </tr> <tr> <td>Max Speed:</td> <td>12.5 MBytes/s</td> </tr> <tr> <td>Ip:</td> <td>121.55.119.34 ()</td> </tr> </table> </div> root@main mrtg #
뭐가 문제일까요.. 아 참.. MRTG를 업데이트 햇습니다.
역시 ~x86 마스크를 풀어 주엇습니다 흐휴...
이거 해결 하는 방법이 없을까요... 일단 업데이트를 했는데도 안 된다 그럼 정말 뭔가 방법이 필요한데모르겠군요... 이대로 하면 잘 돌앗었는데 왜 안 되는 걸까요 흐휴..
Forums:
흐흠.
갑자기 언젠가부터 로그 기록이 남더군요. 웃끼는일입니다.
근대 snmpd.conf 설정 파일에도 잘못 된 부분이 잇긴 하더군요. syscontext라고 쓰여 있는데 제가 저런 실수를 자주 하는 군요 요즘... 한글로 써야 할 곳에 영어로 갈겨 써 버리고 e를 써야 할 곳에 a를 쓰고 그 반데됴.. y를 쓸 곳에 i를 스기도.. 으음.. 이건 자주 일어 나는 일은 아닌데 최근에도.. 요즘 제가 이상한ㄱ 봅니다. 왜 이러죠 흠.
아무튼 잘 되고 있습니다 으음.
----
Lee Yeosong(이여송 사도요한)
E-Mail: yeosong@gmail.com
MSN: ysnglee2000@hotmail.com
----
웃음... 행복... 평화... (진정한...) 희망... 사랑... 이 세상 모든것이 그렇다면 얼마나 좋을까...(꿈 속의 바램일 뿐인가...)
사람천사
댓글 달기