Yes, it is possible to execute script, just replace 'alert' action with 'exec' and specify the script:
if failed ... then exec "/usr/local/bin/myscript" Regarding mail: you can specify multiple mail servers in monit configuration so if one fails, monit will try next. Also M/Monit allows to send emails in centralized environment - Monit agents are reporting to M/Monit and it then sends alerts. Regards, M/Monit support On Mon, Apr 12, 2010 at 06:19:49PM +0200, David Touzeau wrote: > The main problem is when the SMTP server is down you cannot receive > notification in time. > Is there a way to specify monit executing a script instead send an email ? > > Best regards > > > -- > To unsubscribe: > http://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
