LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to get Information from kernel (https://www.linuxquestions.org/questions/programming-9/how-to-get-information-from-kernel-692157/)

kbarani 12-22-2008 12:04 AM

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

paulsm4 12-22-2008 12:21 AM

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

kbarani 12-23-2008 05:53 AM

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

Thanks
Barani

crabboy 12-29-2008 12:48 PM

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


All times are GMT -5. The time now is 02:23 PM.