Missing snmp interfaces

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
cmay4
Posts: 4
Joined: Sat Dec 21, 2002 9:13 pm

Missing snmp interfaces

Post by cmay4 »

Excuse me if this is obvious, but I've read through the forums and can't seem to figure this out.

I'm trying to add snmp interfaces to track things (initially bandwidth on eth0). After installing cacti, I realized I needed ucd-snmp, so I installed v4.2.6 (I am runnig Gentoo Linux).

Code: Select all

# snmpwalk -V
UCD-snmp version: 4.2.6
I read some about users under snmp, so I set that up. Now from the command-line:

Code: Select all

snmpwalk -c public localhost
returns TONS of stuff. Here is a partial list:

Code: Select all

system.sysDescr.0 = Linux springfield.comcast.net 2.4.19-gentoo-r7 #3 Sun Aug 11 19:29:11 EDT 2
002 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (162909) 0:27:09.09
system.sysContact.0 = Me <me@somewhere.org>
system.sysName.0 = springfield.comcast.net
system.sysLocation.0 = Right here, right now.
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.snmpModules.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.snmpModules.snmpVacm
MIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpFram
eworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIBCompliances.snmpFrameworkMIBCompliance
system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMPDM
IB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMPDCompliance
system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpUsmM
IB.usmMIBConformance.usmMIBCompliances.usmMIBCompliance
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic objects for netw
ork 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 implementations
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP and ICMP implementat
ions
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing UDP implementations
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 Dispatching.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information definitions 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: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (0) 0:00:00.00
interfaces.ifNumber.0 = 2
interfaces.ifTable.ifEntry.ifIndex.1 = 1
.
.
.
Next, I go under "snmp interfaces" and add one with localhost and public as the settings. It only lists 2 interaces (lo and eth0). Shouldn't I be seeing alot more? I may have snmp set up incorrectly, but it does seem to work fine from the command-line. What user is cacti accessing snmp from?

So I click on the "Add graph" for the eth0. It looks OK, but no graphs show up anywhere. Do I have to enable it? If so, I can't figure out where. I checked the output under "cron printout" and got blank values for the snmp data.

Anyone have any ideas? Any help would be appreciated,

Chuck
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

"SNMP Interfaces" gathers info from given device regarding network interfaces only. If you look at your example you may notice at the end the following line:
interfaces.ifNumber.0 = 2
The line indicates that there are two network interfaces on your system so this is exactly what you should get: lo and eth0.

- bulek
cmay4
Posts: 4
Joined: Sat Dec 21, 2002 9:13 pm

I see...

Post by cmay4 »

That makes sense. I though, however, that I could query all kinds of other stuff (like CPU load for example) through SNMP. Is this true? If so, how would I link those values in? Would I just need to write a perl script to extract the information? Thanks again,

Chuck
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

You don't have to write a perl script. Just create new data source and use data input type "Get SNMP Data". After creation click on "Edit data" (on the right side of you new DS) and put inside SNMP OID you are interested to.

- bulek
cmay4
Posts: 4
Joined: Sat Dec 21, 2002 9:13 pm

Thanks!

Post by cmay4 »

Thanks for the help...I now understand.

Chuck
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest