On more than 50 servers I have centos 6.5 (x86_64) and same problem with snmp:<br />
after any time of work snmpd not accept requests. Logs are empty.<br />
Process not dead:<br />
<br />
# ps aux | grep snmpd<br />
root 27066 0.0 0.1 197804 5308 ? S Jun18 0:14 /usr/sbin/snmpd -LS0-6d -Lf /dev/null -p /var/run/snmpd.pid<br />
<br />
If I straced proc - it all time wait:<br />
# strace -p 27066<br />
Process 27066 attached - interrupt to quit<br />
wait4(25585,<br />
<br />
netstat show that new packets in kernel buffers, snmpd just not select new packets from socket<br />
# netstat -lpn | grep snmp<br />
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 27066/snmpd<br />
udp 229632 0 0.0.0.0:161 0.0.0.0:* 27066/snmpd<br />
<br />
lsof doesnt knew resource with id 25585:<br />
# lsof -p 27066 | grep 25585<br />
#<br />
<br />
And this situation observed on many servers after one or two days of work. It helps only restart snmpd<br />
<br />
P.S. Configs are same on all servers:<br />
com2sec yyyy x.x.x.x/32 zzzz<br />
group stats v2c yyyy<br />
<br />
view systemview included .1.3.6.1.2.1.1<br />
view systemview included .1.3.6.1.2.1.25.1.1<br />
view all included .1<br />
<br />
access stats "" any noauth exact all none none<br />
<br />
syslocation Unknown (edit /etc/snmp/snmpd.conf)<br />
syscontact Root <<a href="mailto:root@localhost">root@localhost</a>> (configure /etc/snmp/snmp.local.conf)<br />
<br />
extend a.a.a.a.a.a.a bbb /c/c/c/c
↧