Hello,
you can use the exec action:
--8<--
check file httpd.conf path /usr/local/apache/conf/httpd.conf
if changed checksum then exec "/usr/local/apache/bin/apachectl graceful"
--8<--
The alert is implicit (sent along then exec)
Regards,
Martin
On Dec 6, 2012, at 4:37 PM, Poffet Gaël <[email protected]> wrote:
> Hello,
> My monit installation works well. Now I would like to go a bit further.
> I need to have monit, in addition of sending email, to execute a local shell
> script. Is it possible to do that ?
> I didn’t found any exemple on the net…
> Thanks in advance
> Gael
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general