I think the latest releases of Net-SNMP have been tightened up security wise. By default on Ubuntu, SNMP access is limit to the system description information. I suspect the same problem is occuring to you on Centos.
In the line below from /etc/snmp/snmpd.conf to enable read-only access to all of the available SNMP MIB objects compiled in, you need to change associated security name for the "public" community from "paranoid" to "read-only", which is what I have done here, by commenting the line with "paranoid" and uncommenting "readonly":- #### # First, map the community name (COMMUNITY) into a security name # (local and mynetwork, depending on where the request is coming # from): # sec.name source community #com2sec paranoid default public com2sec readonly default public #com2sec readwrite default private So the before and after result from an snmpwalk on the interface part of the MIB tree is below. First with "paranoid" for "public":- $ snmpwalk -v 1 -c public localhost interface End of MIB And now with "readonly for "public" (after doing a "service snmpd restart" in between) :- $ snmpwalk -v 1 -c public localhost interface IF-MIB::ifNumber.0 = INTEGER: 7 IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB::ifIndex.2 = INTEGER: 2 IF-MIB::ifIndex.3 = INTEGER: 3 IF-MIB::ifIndex.4 = INTEGER: 4 IF-MIB::ifIndex.5 = INTEGER: 5 IF-MIB::ifIndex.6 = INTEGER: 6 IF-MIB::ifIndex.8 = INTEGER: 8 IF-MIB::ifDescr.1 = STRING: lo IF-MIB::ifDescr.2 = STRING: eth1 IF-MIB::ifDescr.3 = STRING: eth2 IF-MIB::ifDescr.4 = STRING: br0 IF-MIB::ifDescr.5 = STRING: ip6tnl0 IF-MIB::ifDescr.6 = STRING: ano-linode IF-MIB::ifDescr.8 = STRING: tap0 IF-MIB::ifType.1 = INTEGER: softwareLoopback(24) IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.5 = INTEGER: tunnel(131) IF-MIB::ifType.6 = INTEGER: tunnel(131) IF-MIB::ifType.8 = INTEGER: ethernetCsmacd(6) IF-MIB::ifMtu.1 = INTEGER: 16436 IF-MIB::ifMtu.2 = INTEGER: 1500 IF-MIB::ifMtu.3 = INTEGER: 1500 IF-MIB::ifMtu.4 = INTEGER: 1500 IF-MIB::ifMtu.5 = INTEGER: 1460 IF-MIB::ifMtu.6 = INTEGER: 1360 IF-MIB::ifMtu.8 = INTEGER: 1500 IF-MIB::ifSpeed.1 = Gauge32: 10000000 IF-MIB::ifSpeed.2 = Gauge32: 10000000 IF-MIB::ifSpeed.3 = Gauge32: 10000000 IF-MIB::ifSpeed.4 = Gauge32: 10000000 IF-MIB::ifSpeed.5 = Gauge32: 0 IF-MIB::ifSpeed.6 = Gauge32: 0 IF-MIB::ifSpeed.8 = Gauge32: 10000000 ----------------- 8-< ---------------------------- Regards, Martin Regards, Martin [email protected] On Fri, Sep 17, 2010 at 12:19 PM, Voytek Eymont <[email protected]> wrote: > > On Thu, September 16, 2010 9:42 pm, Amit Dor-Shifer wrote: > > Is netsnmp built with ifmib support? > > If you can't snmpwalk ifmib, I'm not sure cacti group will be the right > > place to look for answers. Rather the SNMP crowd should be consulted. > > Amit, > > thanks, yes, it seems there is no support for the ifmib > > I kinda perused a bunch of docs on netsnmp pages, with nothing that really > helped me, as this is more of a hobby project than a real need, I'll be > happy with polling NICs of the switch/router and NAS, which is what really > matters for this, at this time; the Linux' box sole purpose is to run > cacti and ntpd, I'll look at it again at some future time > > thanks again for all the help, guys > > > > -- > Voytek > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
