[Top][All Lists]

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

Re: Monit and SQL query

From: Jan-Henrik Haukeland
Subject: Re: Monit and SQL query
Date: Mon, 17 Sep 2012 18:40:36 +0200

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,

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.

reply via email to

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