sonic-buildimage/platform/mellanox
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
..
docker-saiserver-mlnx [docker-saiserver]: upgrade docker saiserver to stretch for brcm/mlnx (#2983) 2019-06-08 16:27:19 -07:00
docker-syncd-mlnx [Monit] Use the string "/usr/bin/syncd\s" to monitor the syncd process (#4706) 2020-06-28 07:29:59 -07:00
docker-syncd-mlnx-rpc [Mellanox]Take advantage of sdk variable to customize the location where sdk_socket exists. (#4223) 2020-03-14 18:02:43 -07:00
hw-management [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
issu-version [mellanox|ffb] ISSU version check (#2437) 2019-01-17 14:41:32 -08:00
mft Update Mellanox MFT packedge. (#2825) 2019-04-25 18:22:33 +03:00
mlnx-platform-api [Mellanox] Change port index in port_config.ini to 1-based (#4781) 2020-06-28 07:24:10 -07:00
mlnx-sai [Mellanox] Update SAI, SDK 4.4.0928 and FW xx.2007.1208 (#4704) 2020-06-04 13:28:12 -07:00
sdk-src [Mellanox] Update SDK to 4.4.0952, FW to *.2007.1280 (#4842) 2020-06-28 07:19:25 -07:00
.gitignore [mellanox] build SDK driver from open source (#3580) 2019-10-08 07:57:12 -07:00
docker-ptf-mlnx.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
docker-ptf-mlnx.mk [docker-saiserver]: build docker-saiserver (#2244) 2018-11-14 01:15:31 -08:00
docker-saiserver-mlnx.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
docker-saiserver-mlnx.mk [docker-saiserver]: upgrade docker saiserver to stretch for brcm/mlnx (#2983) 2019-06-08 16:27:19 -07:00
docker-syncd-mlnx-rpc.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
docker-syncd-mlnx-rpc.mk [syncd-rpc.mk] install ptf dependancy (#4279) 2020-03-19 22:18:49 -07:00
docker-syncd-mlnx.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
docker-syncd-mlnx.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
fw.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
fw.mk [Mellanox] Update SDK to 4.4.0952, FW to *.2007.1280 (#4842) 2020-06-28 07:19:25 -07:00
hw-management.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
hw-management.mk [201911][Mellanox] Update hw-mgmt package to V.7.0010.1000 (#4688) 2020-06-02 14:53:09 -07:00
issu-version.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
issu-version.mk [mellanox]: Add SSD FW update tool (#4351) 2020-04-15 13:02:36 -07:00
libsaithrift-dev.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07: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
mft.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
mft.mk [Mellanox] Update MFT to v4.14.5-2. (#4784) 2020-06-17 10:18:01 -07:00
mlnx-ffb.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
mlnx-ffb.mk [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
mlnx-ffb.sh [mellanox] Fix in mlnx-ffb.sh (#2676) 2019-03-18 08:53:35 -07:00
mlnx-fw-upgrade.j2 [Mellanox] Add sdk 4.4.0542 (#4227) 2020-03-14 19:07:23 -07:00
mlnx-onie-fw-update.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
mlnx-onie-fw-update.mk [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
mlnx-onie-fw-update.sh [Mellanox] Add ONIE and SSD platform components. (#4764) 2020-06-15 13:04:44 +03:00
mlnx-platform-api.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
mlnx-platform-api.mk [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
mlnx-sai.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
mlnx-sai.mk [mellanox]: Update SAI to 1.16.4, SDK to 4.4.0918, FW to *.2007.1140 (#4571) 2020-05-12 22:46:21 -07:00
mlnx-ssd-fw-update.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
mlnx-ssd-fw-update.mk [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
mlnx-ssd-fw-update.sh [Mellanox] Add ONIE and SSD platform components. (#4764) 2020-06-15 13:04:44 +03:00
one-image.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
one-image.mk [mellanox]: Add SSD FW update tool (#4351) 2020-04-15 13:02:36 -07:00
platform.conf one image implementation (#215) 2017-01-29 11:33:33 -08:00
rules.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
rules.mk [mellanox]: Add SSD FW update tool (#4351) 2020-04-15 13:02:36 -07:00
sdk.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-27 08:50:23 -07:00
sdk.mk [Mellanox] Update SDK to 4.4.0952, FW to *.2007.1280 (#4842) 2020-06-28 07:19:25 -07:00