[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,
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.
>
- RE: Monit and SQL query, (continued)
- Re: Monit and SQL query, Nestor Urquiza, 2012/09/11
- RE: Monit and SQL query, Charles Pino, 2012/09/16
- RE: Monit and SQL query, Charles Pino, 2012/09/16
- Re: Monit and SQL query, Jan-Henrik Haukeland, 2012/09/16
- RE: Monit and SQL query, Charles Pino, 2012/09/16
- Re: Monit and SQL query, Nestor Urquiza, 2012/09/17
- Re: Monit and SQL query, Callum Macdonald, 2012/09/17
- RE: Monit and SQL query, Charles Pino, 2012/09/17
- Re: Monit and SQL query,
Jan-Henrik Haukeland <=
- RE: Monit and SQL query, Charles Pino, 2012/09/18