Joke Collection Website - Blessing messages - Linux uses a shell to monitor whether the master-slave synchronization status of mysql is abnormal. If it is not normal, should I send a text message or mail it to the administrator?

Linux uses a shell to monitor whether the master-slave synchronization status of mysql is abnormal. If it is not normal, should I send a text message or mail it to the administrator?

You are talking about Linux monitoring. There are monitoring tools, such as:1.iotop2.htop3.iptraf4.monit.

Of course, you can also use this working principle: based on /proc file system.

Example code sharing Python to achieve Linux monitoring, "Linux should learn this way" technology dry goods.