Exemplos de Uso
$
yum install monit -y
$
set daemon 60 # Verificar a cada 60 segundos
set httpd port 2812
allow localhost
$
check process nginx with pidfile /var/run/nginx.pid
start program = "/bin/systemctl start nginx"
stop program = "/bin/systemctl stop nginx"
if failed host localhost port 80 then restart
$
systemctl start monit
$
monit status