sonic-buildimage/files
yozhao101 21f5e1280d
[Supervisord] Deduplicate the alerting messages of critical processes from Supervisord. (#6849)
Signed-off-by: Yong Zhao yozhao@microsoft.com

Why I did it
In the configuration of rsyslog, duplicate messages will be suppressed and reported in the format of message repeated n times.
Due to this behavior, if a critical process in a container exited unexpectedly, the alerting message will be written into syslog once
and not be written into syslog anymore until the second critical process exited. This PR aims to differentiate these alerting messages such that they will not be suppressed by rsyslogd and can appear in the syslog periodically.

How I did it
This PR adds a counter into the alerting message and shows how many minutes a critical process was not running.

How to verify it
I verified and test this implementation on a physical DUT.
2021-02-25 14:35:29 -08:00
..
Aboot [Arista] Driver and platform update (#6468) 2021-02-19 10:48:52 -08:00
apt Add mirrors for reproducible build (#6813) 2021-02-18 14:59:52 +08:00
build_scripts [Python] Align files in root dir, dockers/ and files/ with PEP8 standards (#6109) 2020-12-03 15:57:50 -08:00
build_templates [sonic_debian_exntesion] install docker_image_ctl.j2 template in the image templates (#5937) 2021-02-25 09:11:12 -08:00
dhcp
docker
image_config [services] introduce sonic.target (#5705) 2021-02-25 14:26:24 +02:00
initramfs-tools [kdump] Fix OOM events in crashkernel (#6447) 2021-02-02 01:55:09 -08:00
scripts [Supervisord] Deduplicate the alerting messages of critical processes from Supervisord. (#6849) 2021-02-25 14:35:29 -08:00
sshd