Debian – How to disable snmpd ia_addr insert messages?
You have Debian and Ubuntu servers which runs snmpd service and are getting following message every 30 seconds within /var/log/syslog
1 |
error on subcontainer 'ia_addr' insert (-1) |
This problem is related with the log level start options of snmpd service
1 |
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid' |
With the above configuration, snmpd service sends all the logs including LOG_DEBUG to syslog. You need to change minimum loglevel parameter as LOG_INFO to fix this problem.
1 |
sudo sed -i "s|-Lsd|-LS6d|" /etc/default/snmpd |
If you want to change loglevel as LOG_ERROR and above, you can use -LS3d
After systemd
migration starting from Debian 9 Stretch, you need to change /lib/systemd/system/snmpd.service
file, not /etc/default/snmpd
file:
1 2 3 |
sudo sed -i "s|-Lsd|-LS6d|" /lib/systemd/system/snmpd.service sudo systemctl daemon-reload sudo service snmpd restart<code> |