Re: Re: Collecting data

derleader __ <[email protected]> Fri, 24 Dec 2010 17:08:08 +0200 (EET)
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
--===============1911107991120855505==
Content-Type: multipart/alternative; 
	boundary="----=_Part_205112_1282952312.1293203288084"

------=_Part_205112_1282952312.1293203288084
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mx4-phx2.redhat.com id oBOF8JHe012216

  =20
 >>=20
Hi,
 >>=20



 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 =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 pa=
rtitions, 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. Wh=
at 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
 >
 >--=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, CANAD=
A
 >                        http://crashcourse.ca
 >
 >Twitter:                                       http://twitter.com/rpjda=
y
 >LinkedIn:                               http://ca.linkedin.com/in/rpjda=
y
 >=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
 >=20

The C kernel module have other special purposes than monitoring. Can you =
tell me where I can collect the data?=20
 =20
------=_Part_205112_1282952312.1293203288084
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<HTML><BODY>
 <[email protected]><[email protected]><br> &gt;&gt; &nbsp;H=
i,<br> &gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; I'm developing C plugin for Red Ha=
t which will be installed as kernel<br> &gt;&gt; module. The problem is how=
 to collect the data about:<br> &gt;&gt;  *<br> &gt;&gt;<br> &gt;&gt;     C=
PU Check =E2=80=93 Utilization, Model, Number of Cores<br> &gt;&gt;<br> &gt=
;&gt;  *<br> &gt;&gt;<br> &gt;&gt;     RAM Check =E2=80=93 Total Memory, Fr=
ee Memory, Memory Load<br> &gt;&gt;<br> &gt;&gt;  *<br> &gt;&gt;<br> &gt;&g=
t;     HDD Check =E2=80=93 Number of physical HDDs, Number of logical parti=
tions, Total<br> &gt;&gt;     space, Free space<br> &gt;&gt;<br> &gt;&gt;  =
*<br> &gt;&gt;<br> &gt;&gt;     Running processes =E2=80=93 Total number of=
 processes<br> &gt;&gt;<br> &gt;&gt;  *<br> &gt;&gt;<br> &gt;&gt;     Logs =
=E2=80=93 system logs such as error logs<br> &gt;&gt;<br> &gt;&gt;  *<br> &=
gt;&gt;<br> &gt;&gt;     System uptime<br> &gt;&gt;<br> &gt;&gt;  *<br> &gt=
;&gt;<br> &gt;&gt;     Users logged in and last login =E2=80=93 total list =
of users<br> &gt;&gt;<br> &gt;&gt;  *<br> &gt;&gt;<br> &gt;&gt;     Total n=
etwork connections<br> &gt;&gt;<br> &gt;&gt;  *<br> &gt;&gt;<br> &gt;&gt;  =
   Check hardware parts model and number<br> &gt;&gt;<br> &gt;&gt; The kern=
el module will check the status of the OS every 5 minutes. What is the<br> =
&gt;&gt; most efficient way to collect these data?<br> &gt;<br> &gt;  why w=
ould you want to install this as a kernel module?  most of this<br> &gt;dat=
a is available in user space via the /proc filesystem.  i'm not<br> &gt;sur=
e i see the value of what you're trying to do here.<br> &gt;<br> &gt;rday<b=
r> &gt;<br> &gt;-- <br> &gt;<br> &gt;=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<br> &gt;Robert P. J. Day                    =
           Waterloo, Ontario, CANADA<br> &gt;                        http:/=
/crashcourse.ca<br> &gt;<br> &gt;Twitter:                                  =
     http://twitter.com/rpjday<br> &gt;LinkedIn:                           =
    http://ca.linkedin.com/in/rpjday<br> &gt;=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<br> &gt; <br><br>The C kernel module h=
ave other special purposes than monitoring. Can you tell me where I can col=
lect the data? <br></[email protected]></[email protected]><=
/BODY></HTML>

------=_Part_205112_1282952312.1293203288084--


--===============1911107991120855505==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

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