Hi group,
I'm writing a perl script to monitor hardware parameters on a R.H 7.1 Linux machine like load avg, memory load, cpu load, etc. given certain network loads. (http, smtp, ssh traffic, popd, etc.)
I'm planning to write the script to parse most of these piecies of data from the /proc directory -- like from /proc/meminfo and /proc/loadavg and /proc/stat
If I do this:
cat /proc/stat | grep cpu
I get the following lines:
cpu 97910 1030 43523 51827382
cpu0 97910 1030 43523 51827382
My question is if anybody can tell me which column specifies which aspect of CPU usage? Where could I find more information??
thank you!
Bryan Capitano
I'm writing a perl script to monitor hardware parameters on a R.H 7.1 Linux machine like load avg, memory load, cpu load, etc. given certain network loads. (http, smtp, ssh traffic, popd, etc.)
I'm planning to write the script to parse most of these piecies of data from the /proc directory -- like from /proc/meminfo and /proc/loadavg and /proc/stat
If I do this:
cat /proc/stat | grep cpu
I get the following lines:
cpu 97910 1030 43523 51827382
cpu0 97910 1030 43523 51827382
My question is if anybody can tell me which column specifies which aspect of CPU usage? Where could I find more information??
thank you!
Bryan Capitano