sonic-buildimage/platform/barefoot
yozhao101 bbcd4c6235 [Monit] Use the string "/usr/bin/syncd\s" to monitor the syncd process (#4706)
**- Why I did it**
After discussed with Joe, we use the string "/usr/bin/syncd\s" in Monit configuration file to monitor 
syncd process on Broadcom and Mellanox. Due to my careless, I did not find this bug during the 
previous testing. If we use the string "/usr/bin/syncd" in Monit configuration file to monitor the 
syncd process, Monit will not detect whether syncd process is running or not. 

If we ran the command  `sudo monit procmactch “/usr/bin/syncd”` on Broadcom, there will be three 
processes in syncd container which matched this "/usr/bin/syncd": `/bin/bash /usr/bin/syncd.sh
wait`, `/usr/bin/dsserve /usr/bin/syncd –diag -u -p /etc/sai.d/sai.profile` and `/usr/bin/syncd –diag -
u -p /etc/sai.d/said.profile`. Monit will select the processes with the highest uptime (at there 
`/bin/bash /usr/bin/syncd.sh wait`) to match and did not select `/usr/bin/syncd –diag -u -p
/etc/sai.d/said.profile` to match. 

Similarly, On Mellanox Monit will also select the process with the highest uptime (at there 
`/bin/bash /usr/bin/syncd.sh wait`) to match and did not select `/usr/bin/syncd –diag -u -p
/etc/sai.d/said.profile` to match.

That is why Monit is unable to detect whether syncd process is running or not if we use the string “/usr/bin/syncd” in Monit configuration file. If we use the string "/usr/bin/syncd\s" in Monit configuration file, Monit can filter out the process `/bin/bash /usr/bin/syncd.sh wait` and thus can correctly monitor the syncd process.

**- How I did it**

**- How to verify it**

Signed-off-by: Yong Zhao <yozhao@microsoft.com>
2020-06-28 07:29:59 -07:00
..
bfn-modules Update Barefoot kdrv (#4355) 2020-04-15 13:09:40 -07:00
docker-saiserver-bfn [docker-saiserver]: build docker-saiserver (#2244) 2018-11-14 01:15:31 -08:00
docker-syncd-bfn [Monit] Use the string "/usr/bin/syncd\s" to monitor the syncd process (#4706) 2020-06-28 07:29:59 -07:00
docker-syncd-bfn-rpc [buildsystem] Install debug packages in syncd when INSTALL_DEBUG_TOOLS=y (#2702) 2019-04-18 02:25:51 -07:00
sonic-platform-modules-arista@a501629916 Update arista drivers submodules (#4532) 2020-05-04 20:10:50 -07:00
sonic-platform-modules-bfn [kernel]: security kernel update to 4.9.189 (#3913) 2020-03-15 08:52:29 -07:00
sonic-platform-modules-bfn-montara [kernel]: security kernel update to 4.9.189 (#3913) 2020-03-15 08:52:29 -07:00
sonic-platform-modules-bfn-newport [kernel]: security kernel update to 4.9.189 (#3913) 2020-03-15 08:52:29 -07:00
sonic-platform-modules-ingrasys [MultiDB] (except ./src and ./dockers dirs): replace redis-cli with sonic-db-cli and use new DBConnector (#4035) 2020-02-03 15:36:55 -08:00
sonic-platform-modules-wnc-osw1800 [barefoot]: Move bfn asic drivers out of platform package (#30) (#2183) 2018-10-24 06:27:04 -07:00
bfn-modules.mk [barefoot]: Move bfn asic drivers out of platform package (#30) (#2183) 2018-10-24 06:27:04 -07:00
bfn-platform-ingrasys.mk [platform] update Ingrassy platform to support stretch (#2322) 2018-11-30 20:46:36 -08:00
bfn-platform-wnc.mk [barefoot]: Support for platforms based on Barefoot Networks' device (#1796) 2018-07-24 10:23:12 -07:00
bfn-platform.mk [BFN] Updated Barefoot SDK to 2020-05-07 (#4566) 2020-05-20 07:55:54 -07:00
bfn-sai.mk [BFN] Updated Barefoot SDK to 2020-05-07 (#4566) 2020-05-20 07:55:54 -07:00
docker-ptf-bfn.mk [barefoot]: Support for platforms based on Barefoot Networks' device (#1796) 2018-07-24 10:23:12 -07:00
docker-syncd-bfn-rpc.mk [syncd-rpc.mk] install ptf dependancy (#4279) 2020-03-19 22:18:49 -07:00
docker-syncd-bfn.mk [Services] Allow monit system tool to monitor the critical processes status running in various SONiC containers. (#3940) 2020-01-21 10:42:47 -08:00
libsaithrift-dev.mk [sai and sairedis] advance sairedis sub-module and upgrade to matching Broadcom SAI build (#2488) 2019-02-16 10:14:18 -08:00
one-aboot.mk [build]: Move Systemd service start to systemd generator (#3172) 2019-07-29 15:52:15 -07:00
one-image.mk [barefoot] Added Newport platform support (#3709) 2019-11-06 18:54:05 -08:00
platform-modules-arista.mk [arista] Update platform drivers submodules (#4200) 2020-03-22 23:02:54 -07:00
platform-modules-bfn-montara.mk [barefoot]: Move bfn asic drivers out of platform package (#30) (#2183) 2018-10-24 06:27:04 -07:00
platform-modules-bfn-newport.mk [barefoot] Added Newport platform support (#3709) 2019-11-06 18:54:05 -08:00
platform-modules-bfn.mk [barefoot]: Move bfn asic drivers out of platform package (#30) (#2183) 2018-10-24 06:27:04 -07:00
platform-modules-ingrasys.mk [devices]: enable ingress and ariata devices on barefoot platform 2018-08-11 09:09:03 +00:00
platform-modules-wnc-osw1800.mk [barefoot]: build platform modules for bfn, bfn-montara, wnc-osw1800 2018-08-13 04:29:26 +00:00
platform.conf [barefoot]: Support for platforms based on Barefoot Networks' device (#1796) 2018-07-24 10:23:12 -07:00
rules.mk [barefoot] Added Newport platform support (#3709) 2019-11-06 18:54:05 -08:00