From f469c4f8de361eb11183dd2b186f9e84668ec426 Mon Sep 17 00:00:00 2001 From: Dennis Kanbier Date: Fri, 31 Jan 2014 16:15:36 +0100 Subject: [PATCH] Modified readme --- README.md | 3 ++- UserParameters/userparameter_linux_disks.conf | 25 +++++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 706c9b2..75c7f2e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,8 @@ Please check out the README pages in the specific directories for more informati Directory structure ------------------- -zabbix-linux/lld: Used for low-level discovery scripts +zabbix-linux/LLD: Used for low-level discovery scripts +zabbix-linux/UserParameters: Used for custom Zabbix keys More information ---------------- diff --git a/UserParameters/userparameter_linux_disks.conf b/UserParameters/userparameter_linux_disks.conf index 53bc8cd..96cdf5d 100644 --- a/UserParameters/userparameter_linux_disks.conf +++ b/UserParameters/userparameter_linux_disks.conf @@ -1,9 +1,18 @@ # See https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats -UserParameter=custom.vfs.dev.read.ops[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$4}' # reads completed successfully -UserParameter=custom.vfs.dev.read.sectors[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$6}' # sectors read -UserParameter=custom.vfs.dev.read.ms[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$7}' # time spent reading (ms) -UserParameter=custom.vfs.dev.write.ops[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$8}' # writes completed -UserParameter=custom.vfs.dev.write.sectors[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$10}' # sectors written -UserParameter=custom.vfs.dev.write.ms[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$11}' # time spent writing (ms) -UserParameter=custom.vfs.dev.io.active[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$12}' # I/Os currently in progress -UserParameter=custom.vfs.dev.io.ms[*],cat /proc/diskstats | egrep $1 | head -1 y| awk '{print $$13}' # time spent doing I/Os (ms) +# +# reads completed successfully +UserParameter=custom.vfs.dev.read.ops[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$4}' +# sectors read +UserParameter=custom.vfs.dev.read.sectors[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$6}' +# time spent reading (ms) +UserParameter=custom.vfs.dev.read.ms[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$7}' +# writes completed +UserParameter=custom.vfs.dev.write.ops[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$8}' +# sectors written +UserParameter=custom.vfs.dev.write.sectors[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$10}' +# time spent writing (ms) +UserParameter=custom.vfs.dev.write.ms[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$11}' +# I/Os currently in progress +UserParameter=custom.vfs.dev.io.active[*],cat /proc/diskstats | egrep $1 | head -1 | awk '{print $$12}' +# time spent doing I/Os (ms) +UserParameter=custom.vfs.dev.io.ms[*],cat /proc/diskstats | egrep $1 | head -1 y| awk '{print $$13}'