[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File content testing
From: |
Callum Macdonald |
Subject: |
Re: File content testing |
Date: |
Wed, 06 Mar 2013 14:07:26 +0700 |
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