cristianoav
(usa CentOS)
Enviado em 01/02/2009 - 17:21h
Senhores, gostaria de ajuda quanto ao SNMP. Já instalei o pacote net-snmp pois necessito de informações de memoria, cpu e trafego na eth0 ( localhost mesmo ). Acontece que ao utilizar o snmpget, ele nao traz o que necessito, conforme pode ser verificado abaixo.
snmpget -v 2c -c public localhost IF-MIB::ifOutOctets
resultado:
IF-MIB::ifOutOctets = No Such Object available on this agent at this OID
Parece algum problema na OID.
Já configurei o snmp.conf ( talvez esteja incorreto )
E nao quero utilizar cacti, nagios, etc
Abaixo o resultado de um snmpwalk ( acho que está trazendo pouca informação )
Alguem poderia me auxiliar ?? aguardo ajuda, e obrigado.
snmpwalk -v 1 -c public localhost
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain 2.6.18-92.1.22.el5x
en #1 SMP Tue Dec 16 13:08:49 EST 2008 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (102034) 0:17:00.34
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/sn
mp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.4 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.6 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.7 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for managing TCP implementatio ns
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing IP and ICMP imple mentations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing UDP implementatio ns
SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.6 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB for Message Processing and Dispatchin g.
SNMPv2-MIB::sysORDescr.8 = STRING: The management information definitions for th e SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (6) 0:00:00.06
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (1300422) 3:36:44.22
End of MIB