Ubuntu 10.4 snmp 설치 에러가 ㅠㅠ

우분투 10.4에 snmp를 설치하고자 아래와 같이 apt-get명령으로 설치를 했습니다.

sudo apt-get install snmp snmpd
이상없이 잘 깔리고

ps -aux | grep snmp 으로 조회하면 데몬도 잘 뜹니다,
snmp 938 0.0 0.2 8344 1028 ? S 13:30 0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1
human 1705 0.0 0.1 3156 860 pts/0 S+ 13:54 0:00 grep --color=auto snmp

human@desktop:~$ netstat -ln | grep 161
udp 0 0 127.0.0.1:161 0.0.0.0:

프로그램이 제대로 동작하나 보려고 아래와 같은 명령을 바꾸어 여러가지로 시도했는 데 에러메시지만 쫘악 뜹니다,.
human@desktop:~$ snmpget -v 2c -c public 127.0.0.1 system
human@desktop:~$ snmpget -v 1 -c public 127.0.0.1 system
human@desktop:~$ snmpget -v 2c -c public localhost system
human@desktop:~$ snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.1.1.0

무엇이 문제일까요… 참고로 net-snmp 7.1 버전을 소스를 컴파일해서 설치했다가 삭제한 사실이 있습니다

Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/LM-SENSORS-MIB.txt
Cannot find module (UCD-SNMP-MIB): At line 17 in /usr/share/snmp/mibs/LM-SENSORS-MIB.txt
Did not find ‘DisplayString’ in module #-1 (/usr/share/snmp/mibs/LM-SENSORS-MIB.txt)
Did not find ‘ucdExperimental’ in module #-1 (/usr/share/snmp/mibs/LM-SENSORS-MIB.txt)
Unlinked OID in LM-SENSORS-MIB: lmSensors ::= { ucdExperimental 16 }
Undefined identifier: ucdExperimental near line 32 of /usr/share/snmp/mibs/LM-SENSORS-MIB.txt
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
Cannot find module (IPV6-MIB): At line 0 in (none)
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
Cannot adopt OID in LM-SENSORS-MIB: lmMiscSensorsEntry ::= { lmMiscSensorsTable 1 }
Cannot adopt OID in LM-SENSORS-MIB: lmFanSensorsEntry ::= { lmFanSensorsTable 1 }
Cannot adopt OID in LM-SENSORS-MIB: lmTempSensorsEntry ::= { lmTempSensorsTable 1 }
Cannot adopt OID in LM-SENSORS-MIB: lmVoltSensorsEntry ::= { lmVoltSensorsTable 1 }
Cannot adopt OID in LM-SENSORS-MIB: lmMiscSensorsValue ::= { lmMiscSensorsEntry 3 }
Cannot adopt OID in LM-SENSORS-MIB: lmMiscSensorsDevice ::= { lmMiscSensorsEntry 2 }
Cannot adopt OID in LM-SENSORS-MIB: lmMiscSensorsIndex ::= { lmMiscSensorsEntry 1 }
Cannot adopt OID in LM-SENSORS-MIB: lmSensors ::= { ucdExperimental 16 }
Cannot adopt OID in LM-SENSORS-MIB: lmFanSensorsValue ::= { lmFanSensorsEntry 3 }
Cannot adopt OID in LM-SENSORS-MIB: lmFanSensorsDevice ::= { lmFanSensorsEntry 2 }
Cannot adopt OID in LM-SENSORS-MIB: lmFanSensorsIndex ::= { lmFanSensorsEntry 1 }
Cannot adopt OID in LM-SENSORS-MIB: lmTempSensorsValue ::= { lmTempSensorsEntry 3 }
Cannot adopt OID in LM-SENSORS-MIB: lmTempSensorsDevice ::= { lmTempSensorsEntry 2 }
Cannot adopt OID in LM-SENSORS-MIB: lmTempSensorsIndex ::= { lmTempSensorsEntry 1 }
Cannot adopt OID in LM-SENSORS-MIB: lmVoltSensorsValue ::= { lmVoltSensorsEntry 3 }
Cannot adopt OID in LM-SENSORS-MIB: lmVoltSensorsDevice ::= { lmVoltSensorsEntry 2 }
Cannot adopt OID in LM-SENSORS-MIB: lmVoltSensorsIndex ::= { lmVoltSensorsEntry 1 }
Cannot adopt OID in LM-SENSORS-MIB: lmMiscSensorsTable ::= { lmSensors 5 }
Cannot adopt OID in LM-SENSORS-MIB: lmVoltSensorsTable ::= { lmSensors 4 }
Cannot adopt OID in LM-SENSORS-MIB: lmFanSensorsTable ::= { lmSensors 3 }
Cannot adopt OID in LM-SENSORS-MIB: lmTempSensorsTable ::= { lmSensors 2 }
Cannot adopt OID in LM-SENSORS-MIB: lmSensorsMIB ::= { lmSensors 1 }
system: Unknown Object Identifier (Sub-id not found: (top) -> system)

답변이 될지 모르겠지만 도움이 되길 바라며 글을 남겨봅니다.

  • 소스를 직접 컴파일하셨다면, 그리고 기본 설정으로 컴파일을 하셨다면
    기본 mib디렉토리가 우분투의 그것과 다릅니다.
    둘 다 설치할 경우 제 경험상 기본 디렉토리의 충돌이 생겨서 여러모로 곤란해지더군요.

컴파일해서 설치했다가 다시 apt-get으로 설치하셨다면
기본 디렉토리가 꼬였을 가능성이 높습니다.

  • 확인은 snmpget보다 snmpwalk로 해보시기 바랍니다.
    설정을 어떻게 하셨는지 모르겠지만 public community는 제대로 정의하셨는지
    확인 또한 필요할듯 싶습니다.

  • 남기신 에러메시지는 mib 파일을 찾지 못하겠다는 에러입니다.
    말씀드렸듯 기본 디렉토리가 꼬여있을 가능성이 큽니다.

도움되시길 바랍니다.

에러 내용을 보시면 아시겠지만.

MIB 조회가 안되는 문제입니다~.

snmpd.conf 에
"rocommunity localhost" 로만

적으시고 시도해보세요…^^

참고용 snmpd.conf 내용

view all included .1
rocommunity public default
rocommunity secret 192.168.1.0/24
rouser public