[Top][All Lists]

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

Re: [monit] monitor multiple processes

From: Nick Upson
Subject: Re: [monit] monitor multiple processes
Date: Mon, 1 Sep 2008 10:40:47 +0100

unfortunatly I cannot upgrade from 4.10, each process is started by xinetd and there is a variable number of them

2008/8/30 Martin Pala <address@hidden>

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


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:

To unsubscribe:

reply via email to

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