Hi,

with following monitrc, I receive an email when monit is started or
restarted, but when the host being monitored goes offline, I can not
receive any alert email, am I missing something? Thanks,

set daemon 30 # with start delay 2 min

set mailserver smtp.gmail.com port 587
        username "[email protected]" password "sample"
        using tlsv1
        with timeout 60 seconds

set alert [email protected]

set logfile /var/log/monit.log

set eventqueue
      basedir /var/monit

check host test with address sample_id
    if failed port 3010 protocol HTTP then
        alert
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to