128def6969
* 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
28 lines
975 B
Plaintext
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
|