Created attachment 220345 [details]
On some FreeBSD 12.1 hosts, daemon snmpd stop answering request.
I need to restart it with a specific method :
kill -3 $(cat /var/run/net_snmpd.pid)
service snmpd restart
Withtout that, the restart command get stuck.
No information in the /var/log/snmpd.log file.
pkg info | grep net-snmp
net-snmp-5.9,1 Extendable SNMP implementation
all my nodes with net-snmp have this issue.
I don't know where to search to debug this issue.
In attachment, the config file.
You can try running ktrace against it and then using kdump to display the results.
It would be interesting to see what it is doing whenever it seems like it has stopped responding.
Thanks for the tip, i comment my cron job and when the problem come back i will check with ktrace when a send a request
Created attachment 220658 [details]
ktrace snmp process
The problem came back this morning, so i used this command : ktrace -p 74695 -f ktrace-snmp.log
(the log file is in attachments).
I haven't run the command very long because i don't know if it usefull.
Thanks for the help