check process nginx with pidfile /var/run/nginx.pid start program = "/bin/systemctl start nginx" stop program = "/bin/systemctl stop nginx" if not exist for 1 cycles then restart if not exist for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: Nginx" else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: Nginx'"