alpine SNMPd constant crashing
alpine musl.. just updated to 3.16.3.. tons of snmpd issues for a while.. running these two alpine servers for a while..
-rw-r--r-- 1 root root 9 Apr 24 2018 /etc/hostname (VM) -rw-r--r-- 1 root root 8 Nov 24 2011 /etc/hostname (BARE METAL)
cat /etc/snmp/snmpd.conf| egrep -v \^\#\|\#\|\^\$
view systemonly included .1.3.6.1.2.1.1
view systemonly included .1.3.6.1.2.1.25.1
rocommunity ^removed^ default -V systemonly
rouser authOnlyUser
sysLocation Sitting on the Dock of the Bay
sysContact Me <me@example.org>
sysServices 72
proc mountd
proc ntalkd 4
proc sendmail 10 1
disk / 10000
disk /var 5%
includeAllDisks 10%
load 12 10 5
iquerySecName internalUser
rouser internalUser
defaultMonitors yes
linkUpDownNotifications yes
extend test1 /bin/echo Hello, world!
extend-sh test2 echo Hello, world! ; echo Hi there ; exit 35
master agentx
agentAddress udp:0.0.0.0:161
rocommunity pcsdpub default -V all
view all included .1 80
rocommunity ^removed^ 10.20.0.0/16
rocommunity ^removed^ 172.16.0.0/16
extend .1.3.6.1.4.1.2021.7890.1 distro /opt/bin/distro
pretty basic..
I ended up running snmpd within daemontools/runit
core file says:
file core
core: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from '/usr/sbin/snmpd -f -p /run/snmpd.pid -LSwd -Lf /dev/null', real uid: 0, effective uid: 0, real gid: 0, effective gid: 0, execfn: '/usr/sbin/snmpd', platform: 'x86_64'
two machines, each crashing differently, both musl, one a vm within exsi, one bare metal..
(VM)
dmesg | grep snmp | tail -4
[ 3089.812651] traps: snmpd[7037] general protection fault ip:7f6f84c83d1d sp:7ffe8b3aa610 error:0 in ld-musl-x86_64.so.1[7f6f84c75000+48000]
[ 3091.293399] traps: snmpd[7039] general protection fault ip:7fbfcd351d1d sp:7fff82dd3980 error:0 in ld-musl-x86_64.so.1[7fbfcd343000+48000]
[ 3092.851207] traps: snmpd[7043] general protection fault ip:7f132c093920 sp:7ffce5d944c8 error:0 in ld-musl-x86_64.so.1[7f132c085000+48000]
[ 3094.405654] traps: snmpd[7051] general protection fault ip:7f26c20a1d1d sp:7ffe9f2cea70 error:0 in ld-musl-x86_64.so.1[7f26c2093000+48000]
(BARE METAL)
dmesg | grep snmp | tail -4
[ 1984.808764] snmpd[3544]: segfault at 7ff35b7d8180 ip 00007ff35bd5edab sp 00007ffcb44a7fd0 error 4 in libnetsnmpmibs.so.40.2.0[7ff35bd4a000+aa000]
[ 2284.194940] snmpd[3592]: segfault at 7f53c7a4c180 ip 00007f53c7fd2dab sp 00007fffae95ee10 error 4 in libnetsnmpmibs.so.40.2.0[7f53c7fbe000+aa000]
[ 2584.421846] snmpd[3718]: segfault at 7ffb21e0e180 ip 00007ffb22394dab sp 00007ffec617d960 error 4 in libnetsnmpmibs.so.40.2.0[7ffb22380000+aa000]
[ 2887.169790] snmpd[3799]: segfault at 7f361328a180 ip 00007f3613810dab sp 00007ffce085ec70 error 4 in libnetsnmpmibs.so.40.2.0[7f36137fc000+aa000]
Not sure what else would help..
If interested please let me know..