SNMP 架設完成後,於 /var/log/syslog 每30秒就出現一次下述訊息:
snmpd[xxxxx]: error on subcontainer 'ia_addr' insert (-1)
要怎麼解決呢?
SNMP 遇到 error on subcontainer 'ia_addr' insert (-1) 修復
環境:Debian Linux / Ubuntu Linux
解決方法如步驟:
- vim /etc/default/snmpd
- 將 -Lsd 換成 -LS6d,範例如下:
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'
換成
SNMPDOPTS='-LS6d -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid' - sudo /etc/init.d/snmpd restart
- 註:上述設定檔若有下述,也建議可以一起更換:
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
換成
TRAPDOPTS='-LS6d -p /var/run/snmptrapd.pid'
-LS6d 是什麼意思,可以參考 man snmpcmd (1): options and behaviour common to most of the Net-SNMP command-line tools
For -LF and -LS the priority specification comes before the file or facility token. The priorities recognised are:
- 0 or ! for LOG_EMERG,
- 1 or a for LOG_ALERT,
- 2 or c for LOG_CRIT,
- 3 or e for LOG_ERR,
- 4 or w for LOG_WARNING,
- 5 or n for LOG_NOTICE,
- 6 or i for LOG_INFO, and
- 7 or d for LOG_DEBUG.
相關網頁
- How can I disable snmpd ia_addr insert messages?
- Support | snmpd gives "error on subcontainer" warnings
Save