RE: Check a process (specifically its memory consumption) only if it exists?

[email protected]
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.