Problem with Net-SNMP - not starting
-
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 isld-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!
-
@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.
-
Further searching found these posts:
https://forum.netgate.com/topic/198803/pkg-broken-in-25.07.1/14https://forum.netgate.com/topic/198800/solved-pkg-upgrade-not-found-required-by-pkg/2
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.
-
@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
andpfSense-upgrade
packages offer, it appears that the bottom line is that thepkg
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!