Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-08-2015, 12:37 PM   #1
LQ Newbie
Registered: Dec 2007
Posts: 14

Rep: Reputation: 0
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,
Old 10-08-2015, 12:45 PM   #2
LQ Veteran
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Welcome to LQ!

Have a look at
Old 10-09-2015, 02:07 AM   #3
LQ Newbie
Registered: Dec 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Originally Posted by Habitual View Post
Welcome to LQ!

Have a look at
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?
Old 10-11-2015, 08:54 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,697

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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')


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find which process started a daemon process in autostart? indiajoe Linux - Desktop 4 10-25-2011 03:19 AM
How can i do gdb for daemon process ? jujose Linux - General 1 11-03-2008 07:05 AM
daemon process mallikk_in Linux - Networking 4 05-09-2007 09:49 AM
something is killing my daemon process KM3 Linux - General 1 10-23-2006 11:43 AM
BASH script inform user and kill process mounters Programming 3 02-11-2002 05:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration