monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can I combine these


From: Callum Macdonald
Subject: Re: can I combine these
Date: Thu, 24 Jan 2013 17:53:17 +0700

I believe the alert is redundant, you'll get an alert on the exec action
anyway, unless you've explicitly suppressed it somewhere. In which case,
you could reactivate it with a local alert statement. - C

On Thu, 2013-01-24 at 10:43 +0000, Nick Upson wrote:
> 
> check device opt with path /opt
> if space usage > 99% then
>   exec "/bin/bash -c '/usr/bin/monit stop database'"
> if space usage > 99% then
> 
>   alert
> 
> 
> It would be cleaner to write
> 
> check device opt with path /opt
> if space usage > 99% then
>   exec "/bin/bash -c '/usr/bin/monit stop database'"
>   alert
> 
> 
> but that is rejected     Error: syntax error 'if'
> 
> -- 
> Nick Upson, Telensa Ltd
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general





reply via email to

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