call action from other related checks

Issue #91 on hold
Former user created an issue

I am missing a kind of 'FORWARD' action that would allow cross-service interaction

For example if file check sees memory error in Tomcat log it could call generic restart of the service related to this log ... THEN FORWARD RESTART for service USER1_TOMCAT

We can then reuse actions existing in other services rather then defining it again in 'check file'

Comments (1)

  1. Tildeslash repo owner

    This will be added as well as the option to perform several actions:

    if failed X then restart apache, restart mysql, exec "something" and alert 
    

    In the meantime, a workaround using exec can be used, where you call Monit itself with the service. Something like

    if X then exec "/usr/local/bin/monit restart apache"

  2. Log in to comment