|
From: | Nick Upson |
Subject: | Re: [monit] monitor multiple processes |
Date: | Mon, 1 Sep 2008 10:40:47 +0100 |
Hi,
if they have common parent process, you can watch it and use the totalmem and totalcpu (since monit-5.0) for monitoring the total resource usage. If you want to watch the resource usage of each particular process, you'll need separate pidfiles (note that we plan to add support for process monitoring without the pidfile in the future).
Martin
On Aug 27, 2008, at 5:15 PM, Nick Upson wrote:--I have a system running firebird, which means a seperate process called fb_inet_server for each database connection, so typically there are 5 or 6 copies running.
I don't need to stop or start them, that happens via xinet, I just want to monitor them for excessive memory or cpu usage, something like the code below.
I don't know if this is even possible as there cannot be a pid file for each running process
check process fb_inet_server
if totalmem > 1 Mb then
exec "/bin/bash -c '/bin/echo FBMEMORY: memory alert >> /tmp/monit;"
if cpu usage > 95% for 3 cycles then
exec "/bin/bash -c '/bin/echo FBCPU: cpu usage alert >> /tmp/monit;"
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |