LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-09-2014, 08:44 AM   #1
davidlee
LQ Newbie
 
Registered: Sep 2012
Posts: 5

Rep: Reputation: Disabled
top-like program for monitoring non-processes?


"top", "htop", "nmon", etc. are great for monitoring processes on machines.

Top-down, imagine them as frameworks for displaying, and adjusting the display of, structured data whose input reads data associated with UNIX processes.

Now, we have an application whose monitoring could greatly benefit from this sort of structure, except that the input isn't processes but other changing data.

As far as I know, none of those three programs have the ability to monitor data from other sources. (Correct me if I'm wrong on that!)

Is there a similar monitoring program with (for instance) the capability for the end-user to provide a local plugin (or similar) for their local data?
 
Old 05-09-2014, 08:58 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Only a process can create "changing data". Data cannot change on its own (barring cosmic rays or other device failures).

Now for monitoring FILES that may be altered you can look into the inotify tools.

https://github.com/rvoicilas/inotify-tools/wiki


I know of no tools like top for user data. Top monitors only the kernel process data tree, and only the kernel updates that data. For any other "data monitoring" you would require an interface into each of the applications that modify data... And I don't think that is what you are thinking abut.
 
Old 05-09-2014, 09:09 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by davidlee View Post
the input isn't processes but other changing data.
Well, let's sidestep the interface for now. What "other changing data" do you mean? Care to give some specific examples?
 
Old 05-09-2014, 09:10 AM   #4
davidlee
LQ Newbie
 
Registered: Sep 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. Appreciated! I should probably have added that our changing data is in shared memory (and there is also some from processes).

So I'm thinking of a top-like program. But rather than directly reading (or periodically sampling) process information, it could instead read from a user-supplied plugin that gathers data from shared memory or other sources, including processes. (So a top-like program with a level of decoupling between the user-oriented display/control, and a data-gathering plugin. The default plugin would (on a Linux) system look in "/proc"; a user could supply their own alternative plugin.)
 
Old 05-09-2014, 09:15 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
For some reason the phrase "specific examples" doesn't seem to be parsed here as "give me exact details I can work with" so that excludes me from contributing further.

Good luck!
 
Old 05-09-2014, 09:16 AM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Nxlog, rsyslog, custom bash scripts,.. send data to graylog or elasticsearch. IIUC this is a fairly normal procedure. Nxlog will read a file, parse its contents and spit it into elasticsearch. Rsyslog can do the same thing. Nxlog and Rsyslog are log gatherers/data gatherers, and elasticsearch is the repository where that data is stored.
 
  


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
LXer: iotop – A top-Like I/O Monitoring Utility For Processes And Threads LXer Syndicated Linux News 0 10-30-2013 06:30 AM
[SOLVED] monitoring child processes caverdave Programming 5 12-10-2009 04:22 PM
Finding the top CPU-using processes? "top" command does not help... catalytical Linux - Server 1 04-06-2009 04:50 PM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 01:58 AM
Monitoring Processes Bee Linux - General 4 11-19-2001 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:25 PM.

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