[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: local alert statement not working
From: |
Callum Macdonald |
Subject: |
Re: local alert statement not working |
Date: |
Mon, 09 Jul 2012 20:29:32 +0200 |
On Mon, 2012-07-09 at 12:37 -0400, Adam Wolfe wrote:
> check filesystem order-error with path /path/to/error/dir/
> if space usage > 0 B then alert address@hidden
> if space usage > 0 B then exec "my-rsync-statement"
> as uid foo and gid bar
The alert is part of the whole check, not part of the individual test,
so I think you want something like (untested, off the top of my head):
check filesystem order-error with path /path/to/error/dir/
alert address@hidden
if space usage > 0 B then exec "my-rsync-statement"
as uid foo and gid bar
Cheers - Callum.