Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Problem with Net-SNMP - not starting

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 3.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • kmpK Offline
      kmp
      last edited by

      Hi,

      As usual, I hope this isn't anything stupid.

      A couple of days ago, I had to modify my PORT2LAN internal IPv6 address due to an updated delegated network allocation (thanks, Comcast). I noticed yesterday that I can't make any queries using SNMP.

      • Net-SNMP is installed; no updates or changes recently.
      • The daemon is not running. Attempts to restart it (via the UI) simply fail. No messages are logged anywhere.
      • I tracked down the startup script, which apparently issues /usr/local/sbin/snmpd -LS 0-6 d -p /var/run/net_snmpd.pid -C -c /var/etc/netsnmpd.conf,/var/etc/netsnmpd-users.conf and ran it as root. The response is ld-elf.so.1: Shared object "libutil.so.10" not found, required by "libpkg.so.4" .

      I'm partly perplexed because aside from changing the router's PORT2LAN IPv6 address, I hadn't made any changes to the configuration - but that message implies some sort of change occurred (the router hadn't been rebooted for 2-3 weeks until I did so today trying to diagnose this), and that it should not ever have run.

      Environment: Netgate 4200, Version 25.07.1-RELEASE. Net-SNMP is pfSense-pkg-net-snmp-0.1.5_13. Other packages installed: bandwidthd, Netgate_Firmware_Upgrade, Nexus, pfBlockerNG, Service_Watchdog, softflowd, sudo, Wireguard, zabbix-agent7.

      I think at some point I was using the provided SNMP instead, but found some reason to use Net-SNMP - was this a mistake? For my monitoring needs (I'm actually only monitoring the IPv6 routing) perhaps I should re-try "basic" SNMP?

      Any help or ideas would be welcome!

      B 1 Reply Last reply Reply Quote 0
      • B Offline
        barnettd @kmp
        last edited by

        @kmp said in Problem with Net-SNMP - not starting:

        /usr/local/sbin/snmpd -LS 0-6 d -p /var/run/net_snmpd.pid -C -c /var/etc/netsnmpd.conf,/var/etc/netsnmpd-users.conf

        I am having the same issue, but I noticed that running pkg returns a similar error:
        ld-elf.so.1: Shared object "libutil.so.10" not found, required by "pkg"

        I haven't found a solution yet.

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          barnettd @barnettd
          last edited by

          Further searching found these posts:
          https://forum.netgate.com/topic/198803/pkg-broken-in-25.07.1/14

          https://forum.netgate.com/topic/198800/solved-pkg-upgrade-not-found-required-by-pkg/2

          https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html#upgrade-not-offered-library-errors

          This worked for me:

          • Go to System > Update and let the process run. I did not need to change branch.
          • In the cli run
           pkg-static clean -ay; pkg-static install -fy pkg pfSense-repo pfSense-upgrade
          

          The process took about 10 minutes on a 2100. It seemed to get hung up on on certctl processes but eventually got through. After that was done I was able to start net-snmp normally.

          kmpK 1 Reply Last reply Reply Quote 1
          • kmpK Offline
            kmp @barnettd
            last edited by

            @barnettd Hey there, thanks!

            I haven't really worked with FreeBSD for many years, and I've forgotten all of the package management stuff... your solution worked fine for me, though, and as with you I was able to then start Net-SNMP and I'm back to fully operational. Thanks again.

            I'd just like to summarize (for those following as well) what I understand: without really knowing what the pfSense-repo and pfSense-upgrade packages offer, it appears that the bottom line is that the pkg utility had to be downgraded from 2.2.2_2 to 1.21.3_5 [pfSense]. Do I have that right?

            I'm guessing that somehow I hit the update server at the right (wrong) moment and got an incompatible configuration. Strange, though, that I've (intentionally) never opted for anything other than the STABLE branch.

            Very much appreciate your help!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.