[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: monit without start/stop
From: |
Martin Pala |
Subject: |
Re: monit without start/stop |
Date: |
Wed, 18 Aug 2010 15:48:38 +0200 |
On Aug 16, 2010, at 6:47 PM, Kimo Rosenbaum wrote:
>> Which monit version it is? By default Monit sends only one alert on first
>> error.
>>
>> Please can you run monit in verbose mode (-v option) and send monit log to
>> show
>
>> the problem?
>
> # monit -V
> This is monit version 5.1.1
> Copyright (C) 2000-2010 by Tildeslash Ltd. All Rights Reserved.
Thanks for data, i have reproduced the setup.
The alert settings is shared by all testing rules in given service. If you want
alert for one rule only, you can split the rules to two separate checks like
this:
--8<--
set alert address@hidden
check host localhost_udp with address 127.0.0.1
if failed host 127.0.0.1 port 53 type udp protocol dns then exec "..." else
if recovered then exec "..."
check host localhost_tcp with address 127.0.0.1
if failed host 127.0.0.1 port 53 type tcp protocol dns then exec "..." else
if recovered then exec "..."
noalert address@hidden
--8<--
=> the first check (localhost_udp) will generate alert, the second check
(localhost_tcp) will suppress it
Regards,
Martin