LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Daemon to monitor process and inform (https://www.linuxquestions.org/questions/linux-newbie-8/daemon-to-monitor-process-and-inform-4175555635/)

SuKHI 10-08-2015 11:37 AM

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

Habitual 10-08-2015 11:45 AM

Welcome to LQ!

Have a look at http://collectl.sourceforge.net/

SuKHI 10-09-2015 01:07 AM

Quote:

Originally Posted by Habitual (Post 5431793)
Welcome to LQ!

Have a look at http://collectl.sourceforge.net/

Thanks Habitual.
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?

chrism01 10-11-2015 07:54 PM

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.