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/kill_process_x.sh". Ive tried start program = "/root/sendemail.sh" 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 <[email protected]> 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: > http://www.mmonit.com/monit/documentation/monit.html#file_content_testing > > Martin > > > > On 05 Apr 2014, at 21:44, Anthony Griffiths <[email protected]> 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: > > https://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general >
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
