Collecting data
Clint Byrum
clint at ubuntu.com
Sat Dec 25 15:54:19 UTC 2010
On Fri, 2010-12-24 at 12:28 -0600, C de-Avillez wrote:
> On 12/24/2010 09:29 AM, derleader __ wrote:
> > Hi,
> > I'm developing C plugin for Ubuntu Server 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
>
> Isn't something similar already done by collectd [1]? Would it be
> better to improve collectd as needed instead of writing a kernel
> module (and starting from scratch)?
>
Indeed, collectd is really the way to go for this. Also sysstat, which
has been around a long long time, also does most of this.
More information about the ubuntu-server
mailing list