#!/bin/bash
if [ -z "$1" ]; then delay=10;
else
  delay=$1
  shift
fi

watch -d -n $delay "df -hP $*"'; echo;
             cat /proc/mdstat; echo;
             vserver-stat | cat -n;
             echo; echo =============================================================================================================================================;
             vps aux --sort=-rsz | head -20 |cut -c-180;
             echo; echo =================================================================================================================================== ;
             vps aux --sort=-%cpu | cut -c-180| head -24;
             echo; echo ===================================================================================================================================;
             vtop -b -c -n 1 | cut -c-180| head -20
             echo; echo ===================================================================================================================================;
             echo "`date "+%Y%m%d %H%M%S"` rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util"
             tail -20 /var/log/iostats.log'

