Daemon to monitor process and inform
Hi Unix/Linux Gurus,
I seek your help to create on scrip/daemon or small tool.
Scenario: I have one BPM process which running 24 hours. I need to make script(preferably Daemon) which will be running and monitoring the process activities like memory/cpu consumption. BPM process have memory allocated to created nodes under it. So is there any way like shell/Python/Perl scrip ideas to somehow monitor the process(nodes) details (most importantly memory) and as soon as it has consumed a thresh hold of memory or using zero memory then i can inform via mail or some kinda alert or I can run some other process to deploy a package.
My amatuar thoughts to customize top, htop or to get with in groud with monit(though never used it).
Please need ideas to make this work. and Hope I was able to make my question understandable.
Looking for all kind of inputs!
Thank You,
Singh
|