monit port


check host nginx with address 127.0.0.1
start program = "/bin/systemctl start nginx"
stop program = "/bin/systemctl stop nginx"
if failed port 80 then restart
if 5 restarts within 5 cycles then timeout

Leave a Reply

Your email address will not be published. Required fields are marked *