目前我正在使用M/Monit
一次监控大量实例。但我还想知道是否有人试图用monit监视磁盘I / O?我对磁盘没有任何了解,所以如果有人能指出我正确的方向或分享一些shell脚本会很棒!
答案 0 :(得分:3)
你应该寻找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
答案 1 :(得分:2)
我想知道这是不是你要找的东西:
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