Sindbad~EG File Manager
check process openresty with pidfile /var/run/openresty.pid
start program = "/usr/bin/systemctl start openresty" with timeout 30 seconds
stop program = "/usr/bin/systemctl stop openresty" with timeout 30 seconds
if cpu > 90% for 4 cycles then alert
if failed host 127.0.0.1 port 80 for 3 cycles then restart
if failed host 127.0.0.1 port 443 for 3 cycles then restart
if 5 restarts within 15 cycles then timeout
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists