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