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