###############################################################################
## Monit configuration for swss container
## process list:
## orchagent
## portsyncd
## neighsyncd
## fdbsyncd
## vrfmgrd
## vlanmgrd
## intfmgrd
## portmgrd
## buffermgrd
## nbrmgrd
## vxlanmgrd
## coppmgrd
## tunnelmgrd
##############################################################################
check program swss|orchagent with path "/usr/bin/process_checker swss /usr/bin/orchagent -d /var/log/swss"
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles
check program swss|portsyncd with path "/usr/bin/process_checker swss /usr/bin/portsyncd"
check program swss|neighsyncd with path "/usr/bin/process_checker swss /usr/bin/neighsyncd"
check program swss|fdbsyncd with path "/usr/bin/process_checker swss /usr/bin/fdbsyncd"
check program swss|vrfmgrd with path "/usr/bin/process_checker swss /usr/bin/vrfmgrd"
check program swss|vlanmgrd with path "/usr/bin/process_checker swss /usr/bin/vlanmgrd"
check program swss|intfmgrd with path "/usr/bin/process_checker swss /usr/bin/intfmgrd"
check program swss|portmgrd with path "/usr/bin/process_checker swss /usr/bin/portmgrd"
check program swss|buffermgrd with path "/usr/bin/process_checker swss /usr/bin/buffermgrd -l"
check program swss|nbrmgrd with path "/usr/bin/process_checker swss /usr/bin/nbrmgrd"
check program swss|vxlanmgrd with path "/usr/bin/process_checker swss /usr/bin/vxlanmgrd"
check program swss|coppmgrd with path "/usr/bin/process_checker swss /usr/bin/coppmgrd"
check program swss|tunnelmgrd with path "/usr/bin/process_checker swss /usr/bin/tunnelmgrd"