I have a hard time trying to figure out why you would want to write a kernel module for all >of this. There are userland tools that can do just about everything you describe.
I know that there are many tools. This C program is developed with special task. Can you help me?
Regards Peter
I think Hugo's point is that there are much easier ways to extract the information you require without bloating the your kernel. It sounds like a shell script either in Bash or Perl calling the userland functions is the best way to go. "vmstat", "uptime", "top" and "who" could be invoked and then parsed to provide an easy way to return much of the information you indicate is required. I have to echo the thoughts of Alan that posting to General is a better forum for these sorts of questions. -Paul
________________________________ From: derleader __ derleader@abv.bg To: The CentOS developers mailing list. centos-devel@centos.org Sent: Fri, December 24, 2010 10:05:01 AM Subject: Re: [CentOS-devel] Collecting data
I have a hard time trying to figure out why you would want to write a kernel module for all >of this. There are userland tools that can do just about everything you describe.
I know that there are many tools. This C program is developed with special task. Can you help me?
Regards Peter
On Fri, 24 Dec 2010, Paul Daggett wrote:
I think Hugo's point is that there are much easier ways to extract the information you require without bloating the your kernel. It sounds like a shell script either in Bash or Perl calling the userland functions is the best way to go.
collectd probably already does an excellent efficient job. But this is all still off-topic for this list.