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 23:21:02 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Hello Alan,
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"
alerts.

With regards,
Lutz

p.s.
See
https://mmonit.com/monit/documentation/monit.html#SYSTEM-REBOOT-AND-SERVICE-STARTUP




reply via email to

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