oh wow :) thank you very much :)
> Subject: Re: Monit and SQL query > From: [email protected] > Date: Mon, 17 Sep 2012 18:40:36 +0200 > To: [email protected] > > I've changed the code in Monit so if your program writes anything to stdout > or stderr it will be all that is reported in $DESCRIPTION. > > You can download the latest release made available by Martin here, > http://www.mmonit.com/tmp/monit-5.6_svn20120917.tar.gz > > In this version, you only need to do two things to have the output from your > python script replace the content of the alert message you get from Monit. > > 1) You need to add this line in your check program block: > alert [email protected] mail-format { message: $DESCRIPTION } > > 2) Your program need to print the error message to stdout or stderr. > > That's it. > > > On Sep 17, 2012, at 5:33 AM, Charles Pino <[email protected]> wrote: > > > :) thank you. i think i would just stick with the defaults for now. looks > > pretty complicated for a noob like me. > > > > so, how would i make monit execute the script? as the script checks if the > > field has been written for the past 12hrs. > > > > im initially thinking i would just do all this in cron. > > > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
