monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: lutz . mader
Subject: RE: Check a process (specifically its memory consumption) only if it exists?
Date: Thu, 08 Nov 2018 19:49:26 +0100
User-agent: freenetMail

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











reply via email to

[Prev in Thread] Current Thread [Next in Thread]