Checking CPU Utilization - Take2
Jason Martin
jhmartin at toger.us
Tue Jan 20 17:16:22 CET 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
What I did was 'iostat 4 2'| tail -1 in order to get a short-term
snapshot.
- -Jason Martin
On Tue, 20 Jan 2004, Mark Reis wrote:
> 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
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/
iD8DBQFADVSRl2ODWuqVSBMRArx8AJ4sc5Vkgn24Gq6XzVzkiwIyJYkFwgCfesBf
YfDiwxV6xavbcXNOxZ6dlNI=
=aB6k
-----END PGP SIGNATURE-----
-------------------------------------------------------
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