On Dec 29, 2009, at 4:29 PM, Jack wrote: > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf > Of Jan-Henrik Haukeland > Sent: Monday, December 28, 2009 11:22 AM > To: This is the general mailing list for monit > Subject: Re: [monit] Sample Configs > > > On 28. des. 2009, at 15.05, Jack wrote: > >> I was wondering if some of you could post some sample configurations for >> different processes, I currently have gone through the docs, but need more >> real world examples to get a better grip on how to control things. > > Have you checked out, http://mmonit.com/wiki/Monit/ConfigurationExamples ? > > Hi Jan-Henrik, > > Yes, I did use that for the initial configs, but I need that next level of > control. > As an example I want to monitor lets say postfix, I need it to be down more > than 10 seconds before it starts to retry etc. So I know I can increase the > cycles ( of time) but lets say I restart postfix after updating a > configuration because the PID changed it sends me messages. I don't care if > the pid changes only if the process is running or not, allowing it to be > down for lets say 1 minute before notifies or attempts to restart the > process. > > Thanks! >
Hi, you can set start program timeout like this (requires Monit >= 5.0): start program = "/bin/foo start" with timeout 60 seconds Regards, Martin
-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
