my target is to check iowait value that not higher than 50 from top command
and if value is higher than 50 for more then one hour , then need to give alarm about this ( by script or other option )
what I do until now is that:
top-n|grepiowait
CPUstates:94.3%idle,0.5%user,5.2%kernel,0.0%iowait,0.0%swap
I can easily to capture the iowait as the following:
top-n|grepiowait|awk'{print$9}'|seds'/%//'
0.0
But how to verify iowait value that higher than 50 for at least one hour?