<div dir="ltr">Hi all, <br><br>I hope someone can help me with this one. <br><br>I'm trying to graph all traffic on the localhost's network card with Cacti. From what I understand I should use SNMP to query the traffic, but I can't seem to get SNMP info for the network interface. <br>
<br>I have installed all the necessary snmp tools, "yum install snmpd net-snmp net-snmp-utils net-snmp-devel net-snmpt-libs " and then started snmpd (/etc/init.d/snmpd start)<br><br>running snmpwalk, I get the following:<br>
<br><br>snmpwalk -v 1 -c public localhost<br>SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost 2.6.18-92.1.10.el5xen #1 SMP Tue Aug 5 08:11:18 EDT 2008 x86_64<br>SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10<br>
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (127237) 0:21:12.37<br>SNMPv2-MIB::sysContact.0 = STRING: Rudi Ahlers <root@localhost><br>SNMPv2-MIB::sysName.0 = STRING: localhost<br>SNMPv2-MIB::sysLocation.0 = STRING: IS<br>
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (6) 0:00:00.06<br>SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB<br>SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB<br>SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip<br>SNMPv2-MIB::sysORID.4 = OID: UDP-MIB::udpMIB<br>
SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup<br>SNMPv2-MIB::sysORID.6 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance<br>SNMPv2-MIB::sysORID.7 = OID: SNMP-MPD-MIB::snmpMPDCompliance<br>SNMPv2-MIB::sysORID.8 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance<br>
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities<br>SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for managing TCP implementations<br>SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing IP and ICMP implementations<br>
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing UDP implementations<br>SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP.<br>SNMPv2-MIB::sysORDescr.6 = STRING: The SNMP Management Architecture MIB.<br>
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB for Message Processing and Dispatching.<br>SNMPv2-MIB::sysORDescr.8 = STRING: The management information definitions for the SNMP User-based Security Model.<br>SNMPv2-MIB::sysORUpTime.1 = Timeticks: (6) 0:00:00.06<br>
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (6) 0:00:00.06<br>SNMPv2-MIB::sysORUpTime.3 = Timeticks: (6) 0:00:00.06<br>SNMPv2-MIB::sysORUpTime.4 = Timeticks: (6) 0:00:00.06<br>SNMPv2-MIB::sysORUpTime.5 = Timeticks: (6) 0:00:00.06<br>
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (6) 0:00:00.06<br>SNMPv2-MIB::sysORUpTime.7 = Timeticks: (6) 0:00:00.06<br>SNMPv2-MIB::sysORUpTime.8 = Timeticks: (6) 0:00:00.06<br>HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (130862) 0:21:48.62<br>
End of MIB<br><br clear="all"><br><br>Yet, when I try and query the "SNMP - Interface Statistics", it doesn't return any information. <br><br>Running debug for the interface in Cacti, I get the following:<br>
<br><span style="font-family: monospace;">+ Running data query [1].<br>+ Found type = '3' [snmp query].<br>+ Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml'<br>+ XML file parsed ok.<br>
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'<br>+ No SNMP data returned<br>+ Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml'<br>+ Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml'<br>
+ Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml'<br><br><br><br><br><br><br><br><br>Can someone please help me with this one?<br></span>-- <br><br>Kind Regards<br>Rudi Ahlers<br>
</div>