monit-general
[Top][All Lists]
Advanced

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

RE: Monit and SQL query


From: Charles Pino
Subject: RE: Monit and SQL query
Date: Tue, 18 Sep 2012 20:27:40 +0800

oh wow :) thank you very much :)

> Subject: Re: Monit and SQL query
> From: address@hidden
> Date: Mon, 17 Sep 2012 18:40:36 +0200
> To: address@hidden
>
> 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 address@hidden 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 <address@hidden> 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

reply via email to

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