[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
exec-action
From: |
Christian Kowarzik |
Subject: |
exec-action |
Date: |
Sun, 22 Jan 2006 14:20:50 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) |
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
ckowarzik.vcf
Description: Vcard
- exec-action,
Christian Kowarzik <=