sonic-buildimage/platform/marvell-armhf
yozhao101 b8ad0ed4e4
[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-25 17:03:14 -07:00
..
docker-syncd-mrvl [Monit] Use the string "/usr/bin/syncd\s" to monitor the syncd process (#4706) 2020-06-25 17:03:14 -07:00
docker-syncd-mrvl-rpc [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
linux [build]: build ARM kernel support from sonic-linux-kernel (#3556) 2019-10-10 15:11:26 -07:00
sai [Platform] Update Marvell-switching github URL (#3293) 2019-08-06 10:19:14 -07:00
sonic-platform-et6448m [initramfs] Updated required tools for initramfs (#3734) 2020-01-15 08:25:01 -08:00
docker-ptf-mrvl.mk [build]: add docker-ptf-* as stretch docker targets (#4516) 2020-05-01 11:20:33 -07:00
docker-saiserver-mrvl.mk [build]: add docker-saiserver-* as stretch docker targets 2020-05-06 10:23:38 +00:00
docker-syncd-mrvl-rpc.mk [syncd-rpc.mk] install ptf dependancy (#4279) 2020-03-18 11:59:39 -07:00
docker-syncd-mrvl.mk [docker-syncd-vs]: Convert syncd-vs docker to buster (#4726) 2020-06-09 09:07:25 -07:00
libsaithrift-dev.mk [build]: SONiC buildimage ARM arch support (#2980) 2019-07-25 22:06:41 -07:00
linux-kernel-armhf.mk [build]: add buster docker as the last step of the build proces 2020-04-16 10:26:18 +00:00
one-image.mk [initramfs] Updated required tools for initramfs (#3734) 2020-01-15 08:25:01 -08:00
platform-et6448m.mk [build]: add buster docker as the last step of the build proces 2020-04-16 10:26:18 +00:00
platform.conf [initramfs] Updated required tools for initramfs (#3734) 2020-01-15 08:25:01 -08:00
rules.mk [Platform] ARM64 support for Marvell ARM platform (#4043) 2020-01-23 16:50:17 -08:00
sai.mk [Platform] Marvell Makefile updates/cleanup (#4168) 2020-02-25 09:44:45 -08:00