on a tangent; you don't need [e]grep:
/usr/bin/vmstat 1 1 | awk '/[0-9]/ {print $15}'
-david
[EMAIL PROTECTED] 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
[email protected]
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