Re: Collecting data

"Robert P. J. Day" <[email protected]> Fri, 24 Dec 2010 09:49:48 -0500 (EST)
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---1463811071-1255888448-1293202193=:5895
Content-Type: TEXT/PLAIN; charset=UTF-8
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Fri, 24 Dec 2010, derleader __ wrote:

> =C2=A0Hi,
> =C2=A0=C2=A0=C2=A0=C2=A0 I'm developing C plugin for Red Hat which will b=
e installed as kernel
> module. The problem is how to collect the data about:
>  *
>
>     CPU Check =E2=80=93 Utilization, Model, Number of Cores
>
>  *
>
>     RAM Check =E2=80=93 Total Memory, Free Memory, Memory Load
>
>  *
>
>     HDD Check =E2=80=93 Number of physical HDDs, Number of logical partit=
ions, Total
>     space, Free space
>
>  *
>
>     Running processes =E2=80=93 Total number of processes
>
>  *
>
>     Logs =E2=80=93 system logs such as error logs
>
>  *
>
>     System uptime
>
>  *
>
>     Users logged in and last login =E2=80=93 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 i=
s 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

--=20

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Robert P. J. Day                               Waterloo, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
---1463811071-1255888448-1293202193=:5895
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Redhat-devel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-devel-list
---1463811071-1255888448-1293202193=:5895--