Hi,
you can use "exec" action instead of "alert" to execute custom script which can
also send mail (using /usr/bin/mail for example). The script will get
information from monit via environment variables, more details here:
http://www.mmonit.com/monit/documentation/monit.html#environment
Regards,
Martin
On May 30, 2011, at 1:03 PM, Rowan Wookey wrote:
> Hi,
>
> 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 root@localhost 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`
>
> Regards
>
> Rowan
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general