I believe you want:

check file syslog with path /var/log/syslog
if match
        "blah" then exec "/path/to/blah"

There's no start / stop program on a file check.

Cheers - Callum.

On Tue, 2013-03-05 at 22:56 -0800, Keith wrote:
> I am trying to implement an action using:
> http://mmonit.com/monit/documentation/monit.html#file_content_testing
> 
> check file syslog with path /var/log/syslog
> if match
>      "blah" then
>       stop program  = "/usr/local/sbin/blah stop"
>       start program = "/usr/local/sbin/blah start"
> 
> 
> And the syntax is failing monit.
> 
> How do I do an action besides alert?
> 
> Thanks!
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general



--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to