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

Lutz Mader <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
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


-- 
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.