Checking CPU Utilization - Take2 -Doh
Mark Reis
mcr2z at cs.virginia.edu
Tue Jan 20 16:55:27 CET 2004
Okay, I just was informed about iowait -c 1 2, where the second number is
the interval for which you want it to run... doh...
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Mark Reis
Sent: Tuesday, January 20, 2004 10:41 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Checking CPU Utilization - Take2
I've been experimenting with iostat and I just realized that it has one
major drawback. When you run iostat once under solaris and linux, it only
reports the cpu % average for the entire time the system has been powered
up. The same goes for vmstat.
Any other suggestions of a utility that will run once then return the cpu
status and quit?
-Mark
Here is an example of how load is not helpful for my problem. The dnetc
client is using all of the cpu cycles and as you can see the load is very
low.
last pid: 684; load averages: 1.09, 1.03, 0.89 10:37:48
39 processes: 37 sleeping, 1 running, 1 on cpu
CPU states: 0.0% idle, 99.2% user, 0.8% kernel, 0.0% iowait, 0.0% swap
Memory: 512M real, 271M free, 66M swap in use, 2345M swap free
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
472 root 2 0 19 2416K 1880K run 27:53 97.18% dnetc
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list