Use case: Deploying applications that need processes to stop before deploying means that monit will restart those processes before the deploy is finished, requiring a restart to those processes manually
Proposed enhancement: Allow disabling checks by checking for different conditions. In this case, something like (not the 3rd line):
check process background_worker_0 with pidfile /home/[snip]/pids/worker.0.pid if not file /home/[snip]/tmp/deploying start program = "[snip]" stop program = "[snip]" restart program = "[snip]" if totalmem > 600.0 MB for 5 cycles then restart group background_workers
In this case, I would simply "touch tmp/deploying" at the start of the deploy, stop the workers, run through the deploy, start the workers are part of the deploy, and then remove tmp/deploying at the end, then everything is back to normal.
I would think something like this would be easy to add, unfortunately I'm not proficient enough with C/C++ to assist in providing a pull request.