[Top][All Lists]

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

Re: newbie: getting monit to watch for a pattern in logfile

From: Anthony Griffiths
Subject: Re: newbie: getting monit to watch for a pattern in logfile
Date: Sat, 5 Apr 2014 22:58:45 +0100

thanks for that but I'm stuck when it comes to getting monit to run a script. I get nothing but syntax errors. Examples found on google stateĀ stop program = "/path/to/".
Ive triedĀ start program = "/root/" but monit doesn't like it. I get:
Error: syntax error 'start program = "'
I also saw EXEC but I can't find an example of how to correctly syntax that.

On Sat, Apr 5, 2014 at 9:17 PM, Martin Pala <address@hidden> wrote:
Default control file for Monit is "monitrc" and that is what the official documentation refers to. Some 3rd party distributions customize the file name and/or location, which is perfectly fine, but we don't held any responsibility for such changes => just use the configuration file which your Monit package provides, or use the official source code/binary, for which the manual is written.

You can find description of the content test here:


On 05 Apr 2014, at 21:44, Anthony Griffiths <address@hidden> wrote:

> as a newbie to monit I'm having difficulty understanding how I get monit to watch for a particular text string (pattern?) in a logfile and then run a script when it finds it.
> The manual page seems out of date and doesn't really correspond with the monit I've got.
> I'm running a centos 6.5 server 64 bit and I installed monit via yum and ended up with monit-5.5-1.el6.rf.x86_64, there is no monitrc file however there is a monit.conf file which appears to be the control file.
> I did check the examples and FAQ's and such in the wiki but I couldn't find how to do what I wanted. Thanks for any help.
> --
> To unsubscribe:

To unsubscribe:

reply via email to

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