3

目前我正在使用M/Monit一次监控很多实例。但我也想知道是否有人尝试使用 monit 监控磁盘 I/O?我对磁盘没有任何好的知识,所以如果有人能指出我正确的方向或分享一些 shell 脚本会很棒!

4

2 回答 2

4

您应该寻找 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
于 2015-01-18T05:17:59.343 回答
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

于 2013-10-08T20:58:11.743 回答