monit-general
[Top][All Lists]
Advanced

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

Re: Shell script output in monit alert


From: Bernd Petrovitsch
Subject: Re: Shell script output in monit alert
Date: Mon, 30 May 2011 13:07:32 +0200

Hi!

On Mon, 2011-05-30 at 12:03 +0100, Rowan Wookey wrote:
[....]
> Does anyone know if it's possible to have the output of a shell script
> appear in a monit alert. I've tried adding this 
> 
> set alert address@hidden with mail-format {
>      message: Monit $ACTION $SERVICE at $DATE on $HOST: $DESCRIPTION.
>             Yours sincerely,
>             monit
>               `free -m`
>  }
> 
> 
> But that doesn't execute the `free -m`

monit.conf is not a shell script, so why do you except backquotes
to work like in a shell?

Bernd
-- 
Bernd Petrovitsch                  Email : address@hidden
                     LUGA : http://www.luga.at




reply via email to

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