Allow alternative form of alert (e.g. scripts)

Issue #181 closed
Jascha Sticher created an issue

We would like to use the various local monitoring functionalities of monit on our servers to detect cluster switch situations. By now the only way to alert is via email. Is it possible to expand the alert mechanism with an option to execute a command or script?

Comments (1)

  1. Tildeslash repo owner

    This is possible using exec instead of alert. If you have a global set alert statement, exec will both execute and alert. For instance

     if failed X then exec '/some/script'
    
  2. Log in to comment