The snmpd service is crashing after some time on a Virtuozzo node:
~# /etc/init.d/snmpd status snmpd dead but pid file exists
The issue is caused by the bug PSBM-39087.
The bug is fixed in Virtuozzo 6 Update 11. Install pending updates to resolve the issue.
If updates installation is postponed, use
rmond as a workaround.
rmondmentions in snmpd configuration:
~# grep rmond /etc/snmp/* /etc/snmp/snmpd.local.conf:dlmod RmondMIB /usr/lib64/rmond/rmond.so
Comment out the line with
~# /etc/init.d/snmpd restart
Enable core dump generation for snmpd by executing
~# DAEMON_COREFILE_LIMIT=unlimited /etc/init.d/snmpd start
Change the path where the core dump is to be saved:
~# echo '/tmp/core_%e.%p' | tee /proc/sys/kernel/core_pattern
The obtained dump may be analyzed with the help of
~# gdb /usr/sbin/snmpd core_snmpd.XXXX ... Core was generated by `/usr/sbin/snmpd'. Program terminated with signal 11, Segmentation fault. #0 0x00007f71c40de15f in snmp_oid_compare () from /usr/lib64/libnetsnmp.so.20 ...
The presence of
snmp_oid_comparefunction in the dump indicates that the issue is related to the bug PSBM-39087.