sonic-buildimage/rules
yozhao101 528543bc6a
[201911][Monit] Monitor critical processes in radv and dhcp_relay containers. (#7340)
Signed-off-by: Yong Zhao yozhao@microsoft.com

Why I did it
This PR aims to monitor critical processes in router advertiser and dhcp_relay containers by Monit.

How I did it
Router advertiser container only ran on T0 device and the T0 device should have at least one VLAN interface
which was configured an IPv6 address. At the same time, router advertiser container will not run on devices of which
the deployment type is 8.

As such, I created a service which will dynamically generate Monit configuration file of router advertiser from a
template.

Similarly Monit configuration file of dhcp_relay was also generated from a template since the number of dhcrelay process in dhcp_relay container is depended on number of VLANs.

How to verify it
I verified this implementation on a DuT.
2021-04-16 08:40:06 -07:00
..
asyncsnmp-py3.mk Move platform-specific hardware plugin base packages to sonic-platform-common submodule (#1301) 2018-01-17 17:11:31 -08:00
bash.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
config [build]: combine feature and container feature table (#5081) 2020-08-09 11:55:40 -07:00
dbsyncd-py2.mk [swsssdk]: Update nomenclature: 'sswsdk' -> 'swsssdk' (#445) 2017-03-30 11:51:05 -07:00
dhcpmon.mk [dhcp-relay]: Add DHCP Relay Monitor (#3886) 2020-01-21 10:41:30 -08:00
docker-base-stretch.mk [fast-reboot]: Save fast-reboot state into the db (#3741) 2020-01-06 10:30:36 -08:00
docker-base.mk [docker-base]: Install gdbserver if INSTALL_DEBUG_TOOLS=y (#2448) 2019-01-15 15:29:52 -08:00
docker-config-engine-stretch.mk [201911] Introduce sonic-py-common package (#5063) 2020-08-03 11:50:06 -07:00
docker-config-engine.mk [201911] Introduce sonic-py-common package (#5063) 2020-08-03 11:50:06 -07:00
docker-database.mk [sonic-buildimage] Changes to make network specific sysctl common for both host and docker namespace (#4838) 2020-07-05 15:32:30 -07:00
docker-dhcp-relay.mk [201911][Monit] Monitor critical processes in radv and dhcp_relay containers. (#7340) 2021-04-16 08:40:06 -07:00
docker-fpm-frr.mk [docker-fpm-frr]: TSA/B/C changes for multi-asic (#6510) 2021-02-18 18:04:24 -08:00
docker-fpm-gobgp.mk [Services] Restart BGP service upon unexpected critical process exit. (#4207) 2020-03-03 19:19:44 -08:00
docker-fpm-quagga.mk [Services] Restart BGP service upon unexpected critical process exit. (#4207) 2020-03-03 19:19:44 -08:00
docker-fpm.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-lldp-sv2.mk [baseimage]: support building multi-asic component (#3856) 2020-02-03 15:32:21 -08:00
docker-nat.mk [build]: combine feature and container feature table (#5081) 2020-08-09 11:55:40 -07:00
docker-orchagent.mk [swss] Enhance ARP Update to Call Sonic Cfggen Once (#5398) 2020-12-22 09:51:54 -08:00
docker-platform-monitor.mk [Arista] Update driver submodules. (#5408) 2020-09-18 21:40:49 -07:00
docker-ptf.mk [docker-ptf]: move docker-ptf to stretch (#2954) 2019-05-29 18:26:52 -07:00
docker-restapi.mk Disable port 8090 (#6764) 2021-02-18 17:46:44 -08:00
docker-router-advertiser.mk [201911][Monit] Monitor critical processes in radv and dhcp_relay containers. (#7340) 2021-04-16 08:40:06 -07:00
docker-sflow.mk [build]: combine feature and container feature table (#5081) 2020-08-09 11:55:40 -07:00
docker-snmp-sv2.mk [201911][Arista] Update arista drivers submodules (#5290) 2020-09-01 20:19:13 -07:00
docker-sonic-mgmt-framework.mk [build]: combine feature and container feature table (#5081) 2020-08-09 11:55:40 -07:00
docker-sonic-mgmt.mk [docker-sonic-mgmt] install ptf framework in mgmt container and upgrade ptf (#3239) 2019-07-30 10:19:48 -07:00
docker-teamd.mk [201911][Monit] Unmonitor processes in disabled containers (#5462) 2020-09-25 00:30:41 -07:00
docker-telemetry.mk [Telemetry] remove unused mount from telemetry docker make file (#5536) 2020-10-04 19:40:36 +00:00
frr.mk [FRR]: Update frr to latest 7.2.1-s3 (#4294) 2020-05-20 07:48:23 -07:00
functions [build]: fix dpkg uninstall bug 2021-01-27 14:08:36 -08:00
gobgp.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
hiredis.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
ifupdown2.mk [baseimage]: Upgrade ifupdown2 to version 1.2.8 (#3180) 2019-07-19 23:09:14 -07:00
initramfs-tools.mk [baseimage]: update make file for initramfs-tools (#1967) 2018-08-22 13:04:58 -07:00
iproute2.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
iptables.mk Changes in sonic-buildimage to support the NAT feature (#3494) 2020-02-03 15:30:39 -08:00
isc-dhcp.mk [Makefile] multi arch variable fix (#3263) 2019-08-01 16:25:09 -07:00
ixgbe.mk [vs]: build sonic vs kvm image (#2269) 2018-11-20 22:32:40 -08:00
kdump-tools.mk [baseimage]: kdump support (#3722) 2019-11-08 23:08:42 -08:00
libnl3.mk [libnl]: Debian Packaging libnl version 3.5.0 (#3967) 2020-02-03 15:46:17 -08:00
libteam.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
libyang.mk libyang 1.0.73 (#3710) 2019-11-07 13:45:38 -08:00
linux-kernel.mk [sonic-linux-kernel]: kernel security update to 4.9.246 (#6545) 2021-01-28 08:46:07 -08:00
lldpd.mk [Makefile] multi arch variable fix (#3263) 2019-08-01 16:25:09 -07:00
lm-sensors.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
monit.mk [monit] Build from source and patch to use MemAvailable value if available on system (#3875) 2020-01-06 11:41:20 -08:00
mpdecimal.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
ptf.mk Integrate ptf into buildimage (#111) 2016-12-08 09:24:48 -08:00
python3.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
python-click.mk [build]: put stretch debian packages under target/debs/stretch/ (#2519) 2019-02-04 22:06:37 -08:00
quagga.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
radvd.mk [Makefile] multi arch variable fix (#3263) 2019-08-01 16:25:09 -07:00
redis-dump-load-py2.mk Build patched redis-dump-load (#2277) 2018-11-20 19:27:56 -08:00
redis.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
restapi.mk Changes to build restapi docker (#3993) 2020-01-21 10:46:10 -08:00
sairedis.mk [docker-orchagent]: make build depends only on sairedis package (#6467) 2021-01-27 13:51:24 -08:00
scripts.mk [swss] Enhance ARP Update to Call Sonic Cfggen Once (#5398) 2020-12-22 09:51:54 -08:00
sflow.mk [sFlow]: Upgrade hsflowd to 2.0.26-1 (#3812) 2019-11-24 15:21:43 -08:00
smartmontools.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
snmpd.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
socat.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
sonic_bgpcfgd.dep [bgpcfgd]: make a package for bgpcfgd (#4813) 2020-07-05 15:51:05 -07:00
sonic_bgpcfgd.mk [bgp] Add 'allow list' manager feature (#5513) 2020-10-06 11:15:19 -07:00
sonic-config.mk [201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132) 2020-08-13 16:35:53 -07:00
sonic-device-data.mk [build]: put stretch debian packages under target/debs/stretch/ (#2519) 2019-02-04 22:06:37 -08:00
sonic-ledd.mk [201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132) 2020-08-13 16:35:53 -07:00
sonic-mgmt-framework.mk [build]: combine feature and container feature table (#5081) 2020-08-09 11:55:40 -07:00
sonic-platform-common.mk Fix compilation error after below submodule update 2020-09-06 15:34:13 +00:00
sonic-psud.mk [201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132) 2020-08-13 16:35:53 -07:00
sonic-py-common.mk [201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132) 2020-08-13 16:35:53 -07:00
sonic-syseepromd.mk [201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132) 2020-08-13 16:35:53 -07:00
sonic-thermalctld.mk [201911] Remove sonic-daemon-base package (#5181) 2020-08-22 17:55:27 -07:00
sonic-utilities.mk [201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132) 2020-08-13 16:35:53 -07:00
sonic-xcvrd.mk [201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132) 2020-08-13 16:35:53 -07:00
sonic-ztp.mk [sonic-ztp]: Build sonic-ztp package (#3299) 2020-02-24 14:27:24 -08:00
supervisor.mk [docker-base]: Upgrade supervisord to 3.3.3 and fix supervisord.conf (#1390) 2018-02-14 09:40:26 +08:00
swig.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
swss-common.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
swss.mk [build]: wait for conflicts package to be uninstalled (#5039) 2021-01-27 14:07:30 -08:00
swsssdk-py2.mk [swsssdk]: Update nomenclature: 'sswsdk' -> 'swsssdk' (#445) 2017-03-30 11:51:05 -07:00
swsssdk-py3.mk [swsssdk]: Update nomenclature: 'sswsdk' -> 'swsssdk' (#445) 2017-03-30 11:51:05 -07:00
syncd.mk [docker-orchagent]: make build depends only on sairedis package (#6467) 2021-01-27 13:51:24 -08:00
systemd-sonic-generator.mk [build]: Move Systemd service start to systemd generator (#3172) 2019-07-29 15:52:15 -07:00
tacacs.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
telemetry.mk Add missing mgmt-framework dep to telemetry build (#6910) 2021-02-27 17:37:42 -08:00
thrift.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00