目前我使用M/Monit
来一次监视很多实例。 但我也想知道是否有人试图监视磁盘I / O与监视? 我对磁盘没有什么了不起的了解,所以如果有人能指点我的方向,或者分享一些shell脚本就太好了!
我不知道这是你在找什么:
check filesystem datafs with path /dev/sdb1 group server start program = "/bin/mount /data" stop program = "/bin/umount /data" if failed permission 660 then unmonitor if failed uid root then unmonitor if failed gid disk then unmonitor if space usage > 80 % then alert if space usage > 94 % then stop if inode usage > 80 % then alert if inode usage > 94 % then stop alert root@localhost
取自: http : //mmonit.com/monit/documentation/monit.html#examples
您应该寻找CPU等待,因为这将是您的I / O等待问题的最大指标:
check system $HOST if loadavg (15min) > 6 then alert if memory usage > 90% then alert if swap usage > 5% then alert if cpu usage (user) > 70% then alert if cpu usage (system) > 30% then alert if cpu usage (wait) > 30% then alert group system_resources