monit-general
[Top][All Lists]
Advanced

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

[monit] monitor multiple processes


From: Nick Upson
Subject: [monit] monitor multiple processes
Date: Wed, 27 Aug 2008 16:15:13 +0100

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;"

reply via email to

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