[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Check a process (specifically its memory consumption) only if it exi
Re: Check a process (specifically its memory consumption) only if it exists?
Thu, 08 Nov 2018 23:21:02 +0100
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
as long as you start/stop your process via monit you can use the following.
check process blob matching “blob-process”
start program "your command"
stop program "your command"
if memory usage > 8 MB then alert
mode passive (you can remove the line)
> Ideally, my problem would be solved if I could disable the "process is not
> running” alert.
And the monitrc should use
onreboot laststate (or nostart)
All the time you use "monit stop blob" the monitor will disable the
process monitoring for "blob". And you get no "process ist not running"