Hello,

the service recovery alert is send by default  ... it is possible that there is 
some problem with the alert sending - please check monit logs, you can also run 
monit in verbose mode (using -v option) and see the test progress and actions.

Regards,
Martin


On Apr 13, 2013, at 4:43 PM, Stephen Brown <[email protected]> wrote:

> Running Monit on Debian 6, version 5.1 and I'm using it to do simple ping 
> tests from a remote host to my internet connection for monitoring. It works 
> as expected, but one thing I am having trouble with is how to configure it to 
> send me alerts when my services are restored? Is it possible?
> 
> Here is my current config for reference (sensitive IP's/hosts etc sanitized):
> 
> include /etc/monit/conf.d/*
> 
> set logfile syslog facility log_daemon
> 
> set mailserver smtp.gmail.com port 587
>    username "[email protected]" password "xxxxxxxxxxxxxxx"
>    using tlsv1
>    with timeout 30 seconds
> 
> set mail-format { from: [email protected] }
> 
> check host host-1 with address x.x.x.x
>    if failed icmp type echo count 3 with timeout 3 seconds then alert
> 
> check host host-2 with address x.x.x.x
>    if failed icmp type echo count 3 with timeout 3 seconds then alert
> 
> check host host-3 with address x.x.x.x
>    if failed icmp type echo count 3 with timeout 3 seconds then alert
> 
> check host host-4 with address x.x.x.x
>    if failed icmp type echo count 3 with timeout 3 seconds then alert
> 
> check host host-5 with address x.x.x.x
>    if failed icmp type echo count 3 with timeout 3 seconds then alert
> 
> check host host-6 with address x.x.x.x
>    if failed icmp type echo count 3 with timeout 3 seconds then alert
> 
> set alert [email protected]
> set alert [email protected]
> 
> I'd like for monit to send me an alert if any of these IP's I am monitoring 
> restores, my internet connection likes to bounce at random times :(
> 
> 
> 
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to