[Solved] snmpd gives “error on subcontainer” ‘ia_addr’ insert (-1) warnings

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.


Debian, Ubuntu


After starting the snmpd service, the following messages appear in /var/log/syslog or /var/log/net-snmpd.log

error on subcontainer ‘ia_addr’ insert (-1)
error on subcontainer ‘ia_addr’ insert (-1)

The error occurs every a few seconds and fills the log.


The problem is snmpd reports all errors to syslog, because of default setting in /etc/defaults/snmpd.

To log only up to info level, and not debug, change these to lines as follows:

SNMPDOPTS=’-LS6d -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid’
TRAPDOPTS=’-LS6d -p /var/run/snmptrapd.pid’

going from -Lsd to -LS6d lowers the debug level sent to syslog. Refer to
Logging Options section in snmpcmd manpage for more information.

Read More