[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about monitrc file.
From: |
via . lej |
Subject: |
Re: Question about monitrc file. |
Date: |
Mon, 27 Aug 2007 13:51:58 +0200 |
User-agent: |
Opera Mail/9.23 (Win32) |
I had an error with that command line:
if 2 restarts within 2 cycles then exec "/usr/sbin/monit heartbeat stop"
i get:
/etc/monit/monitrc:212: Error: syntax error 'exec "'
what is the problem ?
Thanks,
Vianney
Le Mon, 27 Aug 2007 11:21:18 +0200, Jovan Kostovski <address@hidden> a écrit:
> On 8/26/07, address@hidden <address@hidden> wrote:
>> Hello !
>>
>> Is it possible to usr "and" in monitrc conf file, i would like to do, on
>> service failure:
>>
>>
>> > if ... then alert and exec "/usr/script/failure/sh"
>>
>> i tried "and" but it doesnt works....how to do that ?
>
> if <condition> then alert
> if <condition> then "/usr/script/failure/sh"
>
> As far as I know there isn't and keyward, so
> adding two if.. then statements will do the job.
>
> BR, Jovan
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
- Question about monitrc file., via . lej, 2007/08/26
- Re: Question about monitrc file., Jovan Kostovski, 2007/08/27
- Re: Question about monitrc file.,
via . lej <=
- Re: Question about monitrc file., Jovan Kostovski, 2007/08/27
- Re: Question about monitrc file., via . lej, 2007/08/27
- Re: Question about monitrc file., Martin Pala, 2007/08/27
- Re: Question about monitrc file., via . lej, 2007/08/27
- Re: Question about monitrc file., Martin Pala, 2007/08/27
- Re: Question about monitrc file., Jovan Kostovski, 2007/08/28
Re: Question about monitrc file., Martin Pala, 2007/08/27