Hello Alan,
you can use something like this to enable memory monitoring only.
 
check process blob matching “blob-process”
  start program "your command"
  stop program "your command"
  if memory usage > 8 MB then alert
  mode passive
 
Monit does not start the application, the mode is passive, but monitor the 
matched process.
But  you should not stop the application via monit, because the service  became 
"Not monitored" and the memory check will disabled also.



A suggestion only,
with regards,
Lutz

p.s.
See https://mmonit.com/monit/documentation/monit.html#SERVICE-MONITORING-MODE
and https://mmonit.com/monit/documentation/monit.html#Process-resource-tests









-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to