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 |
|
Quote:
But thats already commercialized tools. I am more keen to right small daemon for my own. so that I can customize and use it as per my requirements. Any inputs to start with? |
1. collectl is free, so not 'commercialized'
2. its written in Perl so if you really wanted to you could read the src if you want to re-invent the wheel. 3. The vast majority of Linux stuff is open src, so you can download & read it if you want to. (PS: you mean 'write', not 'right') |
All times are GMT -5. The time now is 04:19 AM. |