Why would you check any of this in kernel. You have access to all the information to do this wthout.<br><br><div class="gmail_quote">On Fri, Dec 24, 2010 at 08:23, derleader __ <span dir="ltr"><<a href="mailto:derleader@abv.bg">derleader@abv.bg</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>
Hi,<br> I'm developing C plugin for Edubuntu which will be installed as kernel module. The problem is how to collect the data about:<br><ul><li><p style="margin-bottom:0in;font-weight:normal" align="LEFT"><font size="3">CPU
Check – Utilization, Model, Number of Cores</font></p>
</li><li><p style="margin-bottom:0in;font-weight:normal" align="LEFT"><font size="3">RAM
Check – Total Memory, Free Memory, Memory Load</font></p>
</li><li><p style="margin-bottom:0in;font-weight:normal" align="LEFT"><font size="3">HDD
Check – Number of physical HDDs, Number of logical partitions,
Total space, Free space</font></p>
</li><li><p style="margin-bottom:0in;font-weight:normal" align="LEFT"><font size="3">Running
processes – Total number of processes</font></p>
</li><li><p style="margin-bottom:0in;font-weight:normal" align="LEFT"><font size="3">Logs
– system logs such as error logs</font></p>
</li><li><p style="margin-bottom:0in;font-weight:normal" align="LEFT"><font size="3">System
uptime</font></p>
</li><li><p style="margin-bottom:0in;font-weight:normal" align="LEFT"><font size="3">Users
logged in and last login – total list of users</font></p>
</li><li><p style="margin-bottom:0in;font-weight:normal" align="LEFT"><font size="3">Total
network connections</font></p>
</li><li><p style="margin-bottom:0in;font-weight:normal" align="LEFT"><font size="3">Check
hardware parts model and number</font></p></li></ul>The kernel module will check the status of the OS every 5 minutes. What is the most efficient way to collect these data?<br><br>Regards<br>Peter <br><br><br><br></div>
<br>--<br>
edubuntu-devel mailing list<br>
<a href="mailto:edubuntu-devel@lists.ubuntu.com">edubuntu-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/edubuntu-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/edubuntu-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Stefan Nuxoll <<a href="mailto:stefan@nuxoll.eu.org">stefan@nuxoll.eu.org</a>><br>