Today's Ubuntu system for SNMPD configuration, after completion can not be started, after viewing the syslog log, the following error:
Mar 3 15:11:45 hk-en-prod-web02 snmpd[10060]: Error on subcontainer ' ia_addr ' Insert (-1)
Mar 3 15:11:45 hk-en-prod-web02 snmpd[10060]:/etc/snmp/snmpd.conf:line 146:warning:unknown token:defaultmonitors.
Mar 3 15:11:45 hk-en-prod-web02 snmpd[10060]:/etc/snmp/snmpd.conf:line 148:warning:unknown token:linkupdownnotificat Ions.
Mar 3 15:11:45 hk-en-prod-web02 snmpd[10060]: Turning on Agentx master support.
Mar 3 15:11:45 hk-en-prod-web02 snmpd[10060]: Error opening specified endpoint "udp6:[::1]:161"
Mar 3 15:11:45 hk-en-prod-web02 snmpd[10060]: Server Exiting with code 1
This review found that IPv6 is not started, the information is as follows:
Eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU Qdisc pfifo_fast State up group default Qlen 1000
Link/ether 00:0c:29:a7:5c:96 BRD FF:FF:FF:FF:FF:FF
inet 172.16.1.25/24 BRD 172.16.1.255 Scope Global eth0
Valid_lft Forever Preferred_lft Forever
Workaround:
1, settings are not monitored on the IPv6:
#agentAddress udp:161,udp6:[::1]:161
Agentaddress udp:161
2. Start IPv6:
Net.ipv6.conf.all.disable_ipv6 = 0net.ipv6.conf.default.disable_ipv6 = 0net.ipv6.conf.lo.disable_ipv6 = 0
This article is from the "Autumn Fairy tale" blog, please be sure to keep this source http://wushank.blog.51cto.com/3489095/1903014
Ubuntu due to IPV6 not booting, causing SNMPD to fail to start