CPU Usage for Linux

David Ford david at blue-labs.org
Thu Jul 17 18:10:20 CEST 2008


on a tangent; you don't need [e]grep:

/usr/bin/vmstat 1 1 | awk '/[0-9]/ {print $15}'

-david

kyle.odonnell at gmail.com wrote:
> i wrote a very simple one using vmstat to check the idle percentage
>
> /usr/bin/vmstat 1 1 | egrep '[0-9]' |awk '{print $15}'
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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