# Inside main monitrc # Check that services are running and also define start and stop commands for them. # You will need one of these for each container # as well as working out a restarting and/or red eploying workflow. check process with pidfile /var/run/monit/.pid start = "/path/to/pid/script start ''" stop = "/path/to/pid/script stop " if does not exist then alert if cpu equal 0% and memory equal 0kB for 5 cycles then alert