|Subject:||local alert statement not working|
|Date:||Mon, 09 Jul 2012 12:37:08 -0400|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1|
I'm having trouble setting up a local alert statement in monit and
was hoping someone could explain where I'm failing.|
I have monit set up to monitor a directory for any files, then sync them to another box when any our found. We also want to email our client when these files are found, so they can pick them up.
My statement goes like so:
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
All seems to be working well enough, except the if space usage > 0 B then alert address@hidden part. When I start monit it simply states "Error: syntax error 'address@hidden'".
I'm following the instructions here http://mmonit.com/monit/documentation/monit.html#setting_a_local_alert_statement but I'm not sure if something has changed and this how-to is outdated or if I'm simply over-looking something.
|[Prev in Thread]||Current Thread||[Next in Thread]|