LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-08-2015, 11:37 AM   #1
SuKHI
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,
Singh
 
Old 10-08-2015, 11:45 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Welcome to LQ!

Have a look at http://collectl.sourceforge.net/
 
Old 10-09-2015, 01:07 AM   #3
SuKHI
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Habitual View Post
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?
 
Old 10-11-2015, 07:54 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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


Reply



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 02:19 AM
How can i do gdb for daemon process ? jujose Linux - General 1 11-03-2008 06:05 AM
daemon process mallikk_in Linux - Networking 4 05-09-2007 08:49 AM
something is killing my daemon process KM3 Linux - General 1 10-23-2006 10:43 AM
BASH script inform user and kill process mounters Programming 3 02-11-2002 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:01 AM.

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