안녕하세요.
한컴리눅스os 1.2 사용중입니다.
mrtg로 외부로 나가는 트래픽을 조사해보려고 하는데 이게 많이 걸려서
좀 어려운데 특히 snmp 부분이 잘 안됩니다. 에러메세지만 나오고 테스트
도 잘안되고 system 부분도 snmpget 으로 얻어보면 시스템 변수는
알아서 표시해주는데 nosuchname이라는 내용이나 아래와 같은 내용만
나옵니다.
아래는 snmpwalk 명령으로 얻은 것이고 마지막에 항상 저런 에러메세지가
나옵니다. 또 /var/log/messages를 보면 플로피드라이브를 읽으려고
하다 i/o 에러가 나온 글이 보입니다. 참고로 플로피가 없어서 바이오스
에서 off 시켜놨고 fstab에서도 /dev/fd0 부분을 제외시켜놓았습니다.
결국 해보면 system에 관계된 것만 되고 나머진 안됩니다. 할려는 건
네트웍인데 시스템 정보정도만 읽어올 수가 있네요. ㅡㅡ^
가르침 부탁드립니다.
-------------------
snmpd.conf 내용
--------------------
기본 셋업 내용에 뷰 부분만 추가된것입니다.
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view all included .1 80
view systemview included system fe
view mib2 included .iso.org.dod.internet.mgmt.mib-
2 fc
access notConfigGroup "" any noauth exact systemview
none none
access notConfigGroup "" any noauth exact all all
all
access notConfigGroup "" any noauth exact mib2 none
none
--------------
snmpwalk 명령 실행후
--------------
[root@router xinetd.d]# snmpwalk localhost public
system.sysDescr.0 = Linux router 2.2.16-21hl #1 Sat Sep 30 14:43:49
EDT 2000 i58
6
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks:(104372) 0:17:23.72
system.sysContact.0 = Root <root@localhost>
(configure /etc/snmp/snmp.local.conf
)
system.sysName.0 = router
system.sysLocation.0 = Unknown (edit /etc/snmp/snmpd.conf)
system.sysORLastChange.0 = Timeticks:(0) 0:00:00.00
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 =
OID:.iso.org.dod.internet.snmpV2.snmpM
odules.snmpMIB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 =
OID:.iso.org.dod.internet.snmpV2.snmpM
odules.snmpVacmMIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.7 =
OID:.iso.org.dod.internet.snmpV2.snmpM
odules.snmpFrameworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIBCom
pliances.
snmpFrameworkMIBCompliance
system.sysORTable.sysOREntry.sysORID.8 =
OID:.iso.org.dod.internet.snmpV2.snmpM
odules.snmpMPDMIB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMPDCo
mpliance
system.sysORTable.sysOREntry.sysORID.9 =
OID:.iso.org.dod.internet.snmpV2.snmpM
odules.snmpUsmMIB.usmMIBConformance.usmMIBCompliances.usmMIBCompliance
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe
generic o
bjects for network interface sub-layers
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2
entities
system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for
managing TCP impl
ementations
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for
managing IP and I
CMP implementations
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for
managing UDP impl
ementations
system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control
Model for
SNMP.
system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management
Architecture MIB
.
system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message
Processing and D
ispatching.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information
definitio
ns for the SNMP User-based Security Model.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks:(0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks:(0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks:(0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks:(0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks:(0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks:(0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks:(4) 0:00:00.04
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks:(4) 0:00:00.04
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks:(4) 0:00:00.04
Timeout: No Response from localhost
[root@router xinetd.d]#