parent
2cad50372a
commit
96affcc0df
5
dockers/docker-snmp/base_image_files/monit_snmp
Normal file
5
dockers/docker-snmp/base_image_files/monit_snmp
Normal file
@ -0,0 +1,5 @@
|
||||
###############################################################################
|
||||
## Monit configuration for snmp container
|
||||
###############################################################################
|
||||
check program container_memory_snmp with path "/usr/bin/memory_checker snmp 4294967296"
|
||||
if status == 3 for 10 times within 20 cycles then exec "/usr/bin/docker exec snmp supervisorctl restart snmp-subagent"
|
@ -31,6 +31,7 @@ $(DOCKER_SNMP)_RUN_OPT += --privileged -t
|
||||
$(DOCKER_SNMP)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||
$(DOCKER_SNMP)_RUN_OPT += -v /usr/share/sonic/scripts:/usr/share/sonic/scripts:ro
|
||||
$(DOCKER_SNMP)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|
||||
$(DOCKER_SNMP)_BASE_IMAGE_FILES += monit_snmp:/etc/monit/conf.d
|
||||
|
||||
SONIC_BULLSEYE_DOCKERS += $(DOCKER_SNMP)
|
||||
SONIC_BULLSEYE_DBG_DOCKERS += $(DOCKER_SNMP_DBG)
|
||||
|
Reference in New Issue
Block a user