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.

Menu