set mailserver localhost               # primary mailserver
set mail-format { from: [email protected] }
set alert [email protected]          # receive all alerts

set daemon  120
set logfile syslog facility log_daemon
set httpd port 2812 and
use address localhost  # only accept connection from localhost
allow localhost        # allow localhost to connect to the server and
allow admin:monit      # require user 'admin' with password 'monit'

# IP nico
check host ip_nico[lagoon] with address 202.22.143.149
 if failed url http://202.22.143.149 then alert

Add a code snippet to your website: www.paste.org