Is there any software in linux that detects process anomalies and then sends emails or restarts?

in case nginx shuts down abnormally, it will not be known in time.
if there is no software to write a sh script to check whether ping is connected, you can also send email

.
Jun.22,2022

is it something like this? https://blog.csdn.net/qq_3335...


if nginx is a systemd service, you can add ExecStopPost= to set the running program when the service is terminated.
otherwise, you can use a service monitoring tool, such as nagios.

reference

The purpose of

is to prevent the nginx process from automatically down dropping. You can consider using supervised.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c1b24f-3b60c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c1b24f-3b60c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?