SNMPD启动没有错误,但没有监听任何端口?

使用Net-SNMP 5.3.2.2-14运行CentOS6 5.7的HP ProLiant DL360 G7。

我在远程站点中有7个这样的服务器,它们都运行CentOS 5.7和RHEL 5.7的混合体系,并且安装了与RPM相同的Net-SNMP。 在一台服务器上,我的NMS不断地报告它没有连接到SNMP服务。 我忽略了它,因为它通常会在15分钟内消失,但是今天早上它每小时发生2-3次。

我修改了snmpd启动脚本来login到文件(默认是/ dev / null)。 启动时日志文件中没有错误:

could not open /proc/net/if_inet6 cannot open /proc/net/snmp6 ... cmaX: listening for subagents on port 25375 cmaX: sent ColdStarts on ports 25376 to 25393 cmaX: subMIB 1 handler has disconnected NET-SNMP version 5.3.2.2 cmaX: subMIB 2 handler has disconnected Connection from UDP: [127.0.0.1]:50654 cmaX: subMIB 3 handler has disconnected Received SNMP packet(s) from UDP: [127.0.0.1]:50654 cmaX: subMIB 5 handler has disconnected 

我认为if_inet6是我们不使用的IPv6。 snmpd.conf如下:

 # Following entries were added by HP Insight Management Agents at # Tue May 15 10:58:17 CLT 2012 dlmod cmaX /usr/lib64/libcmaX64.so rwcommunity public 127.0.0.1 rocommunity public 127.0.0.1 rwcommunity 3adRabRu 172.16.37.37 rocommunity 3adRabRu 172.16.37.37 trapcommunity traps trapsink 172.16.37.37 traps syscontact Lukasz syslocation Santiago, Chile # ---------------------- END -------------------- com2sec rwlocal default public com2sec rolocal default public com2sec subnet default 3adRabRu group rwv2c v2c rwlocal group rov2c v2c rolocal group rov2c v2c subnet view all included .1 access rwv2c "" any noauth exact all all none access rov2c "" any noauth exact all none none 

有什么build议么? IP表被closures。

查看snmpd.conf的手册页 –

  agentaddress [<transport-specifier>:]<transport-address>[,...] defines a list of listening addresses, on which to receive incoming SNMP requests. See the section LISTENING ADDRESSES in the snmpd(8) manual page for more information about the format of listening address 

所以尝试在snmpd.conf的顶部添加这样的内容:

监听所有接口上的连接(包括IPv4 IPv6)

agentAddress udp:161,udp6:[:: 1]:161