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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-09-2014, 08:44 AM
|
#1
|
LQ Newbie
Registered: Sep 2012
Posts: 5
Rep:
|
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?
|
|
|
05-09-2014, 08:58 AM
|
#2
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912
|
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.
|
|
|
05-09-2014, 09:09 AM
|
#3
|
Moderator
Registered: May 2001
Posts: 29,415
|
Quote:
Originally Posted by davidlee
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?
|
|
|
05-09-2014, 09:10 AM
|
#4
|
LQ Newbie
Registered: Sep 2012
Posts: 5
Original Poster
Rep:
|
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.)
|
|
|
05-09-2014, 09:15 AM
|
#5
|
Moderator
Registered: May 2001
Posts: 29,415
|
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!
|
|
|
05-09-2014, 09:16 AM
|
#6
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
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.
|
|
|
All times are GMT -5. The time now is 01:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|