7580c846ad
We want to let Monit to unmonitor the processes in containers which are disabled in `FEATURE` table such that Monit will not generate false alerting messages into the syslog. - Backport of https://github.com/Azure/sonic-buildimage/pull/5153 to the 201911 branch Signed-off-by: Yong Zhao <yozhao@microsoft.com>
12 lines
550 B
Plaintext
12 lines
550 B
Plaintext
###############################################################################
|
|
## Monit configuration for snmp container
|
|
## process list:
|
|
## snmpd
|
|
## snmpd_subagent
|
|
###############################################################################
|
|
check program snmp|snmpd with path "/usr/bin/process_checker snmp /usr/sbin/snmpd"
|
|
if status != 0 for 5 times within 5 cycles then alert
|
|
|
|
check program snmp|snmp_subagent with path "/usr/bin/process_checker snmp python3.6 -m sonic_ax_impl"
|
|
if status != 0 for 5 times within 5 cycles then alert
|