Gentoo Archives: gentoo-user

From: Mikko Ruuska <mikko.ruuska@×××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Getting system stats
Date: Fri, 09 Nov 2007 16:26:34
Message-Id: 20071109161643.GB18029@aikiage.rd-fi.solidtech.com
In Reply to: Re: [gentoo-user] Getting system stats by Daniel Iliev
1 On Thu, 08 Nov 2007, Daniel Iliev wrote:
2
3 > On Thu, 8 Nov 2007 00:23:51 +0200
4 > "Aleksey V. Kunitskiy" <alexey.kv@×××××.com> wrote:
5 >
6 > > On Wednesday 07 November 2007, James wrote:
7 > > > All,
8 > > >
9 > > > I'm writing a piece of code that requires I gather the following
10 > > > statistics every second:
11 > > >
12 > > > - CPU Usage (as a percentage)
13 > > > - NIC I/O
14 > > > - Hard Drive I/O
15 > > >
16 > >
17 > > - gkrellm
18 > > - top/htop
19 > > - iptraf
20 > >
21 >
22 > Additionally (some small but great progs): sys-process/procps,
23 > app-admin/procinfo, app-admin/sysstat, net-analyzer/iftop
24 >
25
26 There's also sys-apps/dstat which does everything you wanted (though
27 it does totals, not disks or NICs separately). It's python which may
28 or may not be an advantage when it comes to code reading.
29
30 Mikko
31
32 --
33 Mikko Ruuska, R & D
34 Solid Information Technology -- http://www.solidtech.com
35 --
36 gentoo-user@g.o mailing list