monit-general
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]