On Thu, 08 Nov 2007, Daniel Iliev wrote: > On Thu, 8 Nov 2007 00:23:51 +0200 > "Aleksey V. Kunitskiy" <[EMAIL PROTECTED]> wrote: > > > On Wednesday 07 November 2007, James wrote: > > > All, > > > > > > I'm writing a piece of code that requires I gather the following > > > statistics every second: > > > > > > - CPU Usage (as a percentage) > > > - NIC I/O > > > - Hard Drive I/O > > > > > > > - gkrellm > > - top/htop > > - iptraf > > > > Additionally (some small but great progs): sys-process/procps, > app-admin/procinfo, app-admin/sysstat, net-analyzer/iftop >
There's also sys-apps/dstat which does everything you wanted (though it does totals, not disks or NICs separately). It's python which may or may not be an advantage when it comes to code reading. Mikko -- Mikko Ruuska, R & D Solid Information Technology -- http://www.solidtech.com -- [EMAIL PROTECTED] mailing list