[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom Alerts
From: |
Jan-Henrik Haukeland |
Subject: |
Re: Custom Alerts |
Date: |
Tue, 04 Sep 2007 20:26:59 +0200 |
On 4. sep. 2007, at 16.46, Aleksander Kamenik wrote:
Although I think I'd prefer going through a script anyway, just cut
the
mail part out, like alert="/opt/mysmsscript.sh" and the message
would be
piped there.
Simply use the exec statement to do that. I.e. ".... then exec /opt/
mysmsscript.sh" The script can use MONIT_XXX[1] environment variable
to compose the message.
[1] http://www.tildeslash.com/monit/doc/manual.php#environment