[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customer Alert
From: |
Martin Pala |
Subject: |
Re: Customer Alert |
Date: |
Thu, 7 Oct 2010 19:41:28 +0200 |
Hi,
the variables which describe the event have MONIT_ prefix:
MONIT_SERVICE
MONIT_EVENT
MONIT_DESCRIPTION
The && operator is OK, but if your alert script will return error, it won't be
executed.
Regards,
Martin
On Oct 7, 2010, at 1:57 PM, Mark Olliver wrote:
> Hi,
>
> Is this valid,
>
> if does not exist then
> exec "/bin/bash -c '/usr/local/bin/alert $SERVICE $EVENT $DESCRIPTION &&
> /usr/local/bin/monit restart test_processor'"
>
> At the moment in the log i can see it says exec /bin/bash but then nothing
> appear to happen.I am guessing monit is having trouble running my scripts but
> i dont see any errors produced. Is there a way to debug this?
> Do the variables from monit get passed to the script?
>
>
> Regards
>
> Mark
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
- Re: Customer Alert, Martin Pala, 2010/10/01
- Re: Customer Alert, Mark Olliver, 2010/10/05
- Re: Customer Alert, Martin Pala, 2010/10/05
- Re: Customer Alert, Mark Olliver, 2010/10/06
- Re: Customer Alert, Martin Pala, 2010/10/06
- Re: Customer Alert, Mark Olliver, 2010/10/06
- Re: Customer Alert, Jan-Henrik Haukeland, 2010/10/06
- Re: Customer Alert, Mark Olliver, 2010/10/06
- Re: Customer Alert, Jan-Henrik Haukeland, 2010/10/06
- Re: Customer Alert, Mark Olliver, 2010/10/07
- Re: Customer Alert,
Martin Pala <=
- Re: Customer Alert, Mark Olliver, 2010/10/07
- Re: Customer Alert, Martin Pala, 2010/10/08
- Re: Customer Alert, Mark Olliver, 2010/10/11
- Re: Customer Alert, Eric Pailleau, 2010/10/11
- Re: Customer Alert, Eric Pailleau, 2010/10/11