[MASOCH-L] Problemas com mrtg / snmp
Márcio A. Sepp
marcio at zyontecnologia.com.br
Mon Nov 24 14:16:25 -03 2008
Boa tarde,
Estou enfrentando problemas para configurar o mrtg/snmp. Na verdade o
problema parece ocorrer com o snmp.
O que fiz:
- Instalei o OpenBSD 4.4;
- Atualizei o kernel e o Ports (para versão stable);
- Instalei pelo ports tanto o mrtg, quanto o snmp;
configurei o arquivo /etc/snmp/snmp.conf assim:
rocommunity craz33guy
Startei o snmp (/usr/local/sbin/snmpd -c /etc/snmp/snmpd.conf)
Vejam agora as saídas para os comandos snmpwalk:
# snmpwalk -v 1 -c craz33guy localhost system
SNMPv2-MIB::sysDescr.0 = STRING: OpenBSD crypto.zyontecnologia.com.br 4.4
GENERIC#0 i386
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.12
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (8676) 0:01:26.76
SNMPv2-MIB::sysContact.0 = STRING: nobody at nowhere.invalid
SNMPv2-MIB::sysName.0 = STRING: crypto.zyontecnologia.com.br
SNMPv2-MIB::sysLocation.0 = STRING: somewhere
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.9 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and
Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions
for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP
implementations
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP
implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP
implementations
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.9 = STRING: The MIB module to describe generic
objects for network interface sub-layers
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (1) 0:00:00.01
e para as interfaces:
# snmpwalk -v 1 -c craz33guy localhost interface
IF-MIB::ifNumber.0 = INTEGER: 0
#
Ou seja, aparentemente ele não está pegando as interfaces de rede...
Na verdade eu quero o mrtg rodando apenas, então, se tiver alguma outra
forma de instalar o mrtg, sem precisar do snmp e/ou se souber consertar este
problema do snmp, é de grande valia.
Att.
Márcio A. Sepp
More information about the masoch-l
mailing list