存档

文章标签 ‘agentaddress’

snmpd不能启动的问题

2009年6月4日 哈哈 没有评论

有台机器启动snmpd一会儿就当
log里看是系统提示:

Error opening specified endpoint: “10.0.0.11″

man 8 snmpd看了一下

Note that not all the transport domains listed above will always be available; for instance, hosts with no IPv6 support will not be able to use udp6 transport addresses, and attempts to do so will result in the error “Error opening specified endpoint”. Likewise, since AAL5 PVC support is only currently available on Linux, it will fail with the same error on other platforms.

貌似是某些资源得不到满足的时候会报”Error opening specified endpoint”的错
看来问题的关键在于这个ip地址”10.0.0.11″
grep -r “10.0.0.11″ /etc/*了一下
运气比较好
马上返回:
/etc/snmp/snmpd.local.conf中有这个ip
进去一看
发现

agentaddress 127.0.0.1,10.0.0.11

将10.0.0.11这个ip换成这台机器的私网地址
再重起snmpd就好了

原因看来是snmpd要监听10.0.0.11这个ip的某个端口
结果这个ip又没有绑定在本地的某个网络设备上
所以失败

赫赫
看来这台机器原来的ip是10.0.0.11