LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 12-22-2008, 12:04 AM   #1
kbarani
Member
 
Registered: Dec 2008
Posts: 41

Rep: Reputation: 15
How to get Information from kernel


Hi all ,
I am going to develop the linux agent , this linux agent will run on the target machine , periodically it will extract information from target machine (The information are memory availability, process running on the server , port information, etc..) and send to the NMS (Network Monitoring System). how to extract this information from linux kernel using (c/c++) and linux system calls.

Thanks,
Barani
 
Old 12-22-2008, 12:21 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Actually, you probably don't even need to make any special system calls, or use any particular language. Most of what you're looking for is available from the Linux "/proc" filesystem. You can read it any way you want (in any language you prefer), then send it to your NMS in whatever format is most convenient (open a socket, create an XML file - anything at all!)

Google for "linux proc filesystem" - you should find lots of info.

Good luck .. PSM
 
Old 12-23-2008, 05:53 AM   #3
kbarani
Member
 
Registered: Dec 2008
Posts: 41

Original Poster
Rep: Reputation: 15
Hi,
Using linux /proc file system how to get the system disk space usage like functionality of the df -h shell command.

Thanks
Barani
 
Old 12-29-2008, 12:48 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Discussion continues here:
http://www.linuxquestions.org/questi...g-proc-692457/
 
  


Closed Thread


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
Kernel Information metallica1973 Linux - Software 2 12-06-2006 05:15 PM
kernel information TranceDude Linux - Software 3 08-13-2005 06:42 AM
Compiling Kernel information borris9 Linux - Software 4 12-15-2004 09:41 AM
Kernel 2.6.2 Information DigitalVampire Linux - Newbie 4 02-10-2004 12:11 PM
kernel ip-cconfig not enough information changwoo Slackware 6 04-22-2003 03:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:08 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