This one tool me some time. I lately installed a new sever with debian-jessie and I install the logcheck-packages, allways. So it happend I get mails over mails with one repeating logline:

Feb 19 08:32:43 websrv snmpd[20382]: error on subcontainer 'ia_addr' insert (-1)

I knew this one, because I saw this before. I remembered just changeing something in /etc/default/snmpd, but this time it doesn't help. Every 30 Seconds new lines like the one above in the syslogs.

After spending some time on dockduckgo I found this workaround in the debian bugtrackers:

So the reason this surfaced again recently may be that with systemd in Debian Testing, /etc/default/snmpd is completely ignored. So any changes to the SNMPDOPTS setting in that file have no effect anymore.

The solution:

Instead editing /etc/default/snmpd I had to change the file /lib/systemd/system/snmpd.service (the one systemd is reading) Changed this line:

ExecStart=/usr/sbin/snmpd -Lsd -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -f


ExecStart=/usr/sbin/snmpd -Ls6d -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -f

After reloading systemd (systemctl daemon-reload) and restarting snmpd (systemctl restart snmpd.service) the messages went away.

Previous Post