Ability to "stop" a process, but, not unmonitor

Issue #397 new
jeremy mayes created an issue

I have many check program sections which have complex rules for when a process should be running. They utilize a check program which communicates back to monit via exit codes. I'd like to be able to just say:

check program my-process with path "/path/to/check_program --complex args"
    if status = 1 then kill
    if status = 2 then start
    start program = "/path/to/start_script.sh"
    stop program = "/path/to/stop_program.sh"

Today, I have to say "if status = 1 then exec "/path/to/stop_program.sh". Not a massive problem, but, it's confusing for some users and error prone.

Comments (1)

  1. Log in to comment