sonic-buildimage/dockers/docker-fpm-frr/base_image_files/monit_bgp
gechiang 128def6969
Add bgpmon to be started as a new daemon under BGP docker (#5329)
* Add bgpmon under sonic-bgpcfgd to be started as a new daemon under BGP docker

* Added bgpmon to be monitored by Monit so that if it crashed, it gets alerted

* use console_scripts entry point to package bgpmon
2020-09-20 14:32:09 -07:00

28 lines
975 B
Plaintext

###############################################################################
## Monit configuration for BGP container
## process list:
## zebra
## fpmsyncd
## bgpd
## staticd
## bgpcfgd
## bgpmon
###############################################################################
check process zebra matching "/usr/lib/frr/zebra"
if does not exist for 5 times within 5 cycles then alert
check process fpmsyncd matching "fpmsyncd"
if does not exist for 5 times within 5 cycles then alert
check process bgpd matching "/usr/lib/frr/bgpd"
if does not exist for 5 times within 5 cycles then alert
check process staticd matching "/usr/lib/frr/staticd"
if does not exist for 5 times within 5 cycles then alert
check process bgpcfgd matching "python /usr/local/bin/bgpcfgd"
if does not exist for 5 times within 5 cycles then alert
check process bgpmon matching "python /usr/local/bin/bgpmon"
if does not exist for 5 times within 5 cycles then alert