On Fri, 24 Dec 2010, derleader __ wrote:
> ÂHi,
> ÂÂÂÂ I'm developing C plugin for Red Hat which will be installed as kernel
> module. The problem is how to collect the data about:
> *
>
> CPU Check â Utilization, Model, Number of Cores
>
> *
>
> RAM Check â Total Memory, Free Memory, Memory Load
>
> *
>
> HDD Check â Number of physical HDDs, Number of logical partitions, Total
> space, Free space
>
> *
>
> Running processes â Total number of processes
>
> *
>
> Logs â system logs such as error logs
>
> *
>
> System uptime
>
> *
>
> Users logged in and last login â total list of users
>
> *
>
> Total network connections
>
> *
>
> Check hardware parts model and number
>
> The kernel module will check the status of the OS every 5 minutes. What is the
> most efficient way to collect these data?
why would you want to install this as a kernel module? most of this
data is available in user space via the /proc filesystem. i'm not
sure i see the value of what you're trying to do here.
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-devel-list