SNMPd: Cannot open /proc/bus/pci

12,878

Solution 1

I'm assuming you're on a Linux target.

Net-SNMP's changelog lists "[PATCH 3057093]: allow linux to use libpci for creating useful ifDescr strings".

The configure script will search for an available libpci, and, having found one, will define HAVE_PCI_LOOKUP_NAME and HAVE_PCI_PCI_H. To disable this code: after configuring, you can change those defines in include/net-snmp/net-snmp-config.h, then rebuild. The affected code is in agent/mibgroup/if-mib/data_access/interface_linux.c.

Solution 2

There's also a patch in this bug report: http://sourceforge.net/p/net-snmp/bugs/2449/

Share:
12,878
j4x
Author by

j4x

I believe I have climbed as many steps as possible in C++ programming a few years ago when I decided to switch career from any-level-developer to FAE in Embedded Systems. Five years later I may have to look for updates but having to keep my kids fed might impose a barrier... Ok. I can take any free lancing from Embedded Systems to Expert Systems and Data/Signal/Image Processing if it makes everybody happy.

Updated on June 25, 2022

Comments

  • j4x
    j4x almost 2 years

    I cross-compiled NET-SNMP 5.7.1 from sources to a PowerPC using ELDK-3.1. When I try to load the snmpd daemon in my embedded board, I see the message:

    # snmpd -f -Lo
    pcilib: Cannot open /proc/bus/pci
    pcilib: Cannot find any working access method.
    

    Of course my PPC board has no PCI, and I wonder why is netsnmp looking for it.

    In more than one place I see this same message (sourceforge, mail-archive, google-groups), but ir has no answer at all. Another variant, with a little but unhelpful responses at (archlinuxarm).

    Can anybody please help me?