i do icmp checks with monit.
during failure of the destination host monit will alert me once but execute the exec-action every cycle. how can i configure monit, so that it will execute the exec-action only once the destination host goes down like it does with the alert-mail?

thanks
Christian

the relevant part of my monit.conf:

check host Internet with address xxx.xxx.xxx.xxx
 if failed icmp type echo count 6 with timeout 1 second
   then exec "/bin/bash /usr/local/sbin/monit-action.sh offline"
 else if passed 2 cycles
   then exec "/bin/bash /usr/local/sbin/monit-action online"
 group local



begin:vcard
fn:Christian Kowarzik
n:Kowarzik;Christian
org:PROFESSIONAL IT-SERVICE
adr;quoted-printable;quoted-printable:;;Kaiserstra=C3=9Fe 28b;D=C3=BCsseldorf;NRW;40479;Deutschland
email;internet:[EMAIL PROTECTED]
tel;work:0211 - 545 11 37
tel;fax:0211 - 152 00 50
tel;cell:0179 - 226 28 90
x-mozilla-html:FALSE
version:2.1
end:vcard

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

Reply via email to