Hi all,
I hope someone can help me with this one.
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.
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)
running snmpwalk, I get the following:
snmpwalk -v 1 -c public localhost 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 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (127237) 0:21:12.37 SNMPv2-MIB::sysContact.0 = STRING: Rudi Ahlers root@localhost SNMPv2-MIB::sysName.0 = STRING: localhost SNMPv2-MIB::sysLocation.0 = STRING: IS 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 implementations SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing IP and ICMP implementations SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing UDP implementations 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 Dispatching. SNMPv2-MIB::sysORDescr.8 = STRING: The management information definitions for the 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: (130862) 0:21:48.62 End of MIB
Yet, when I try and query the "SNMP - Interface Statistics", it doesn't return any information.
Running debug for the interface in Cacti, I get the following:
+ Running data query [1]. + Found type = '3' [snmp query]. + Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml' + XML file parsed ok. + Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' + No SNMP data returned + Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml' + Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml' + Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml'
Can someone please help me with this one?