当前位置:网站首页>ZABBIX customized monitoring disk IO performance

ZABBIX customized monitoring disk IO performance

2022-07-05 12:19:00 Xiaobo

One 、conf File configuration

###disk io
#
#number of read
UserParameter=custom.vfs.dev.read.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$4}'

#number of milliseconds spent reading
UserParameter=custom.vfs.dev.read.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$7}'

#number of write
UserParameter=custom.vfs.dev.write.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$8}'

#number of milliseconds spent writing
UserParameter=custom.vfs.dev.write.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$11}'

#number of I/O currrently in progress
UserParameter=custom.vfs.dev.io.active[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$12}'

#number of milliseconds spent doing I/O
UserParameter=custom.vfs.dev.io.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$13}'

#number of sectors read
UserParameter=custom.vfs.dev.read.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$6}'

#number of sectors write
UserParameter=custom.vfs.dev.write.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$10}'

Two 、 Monitor item configuration

原网站

版权声明
本文为[Xiaobo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140530479196.html