freebsd: added iostat
author"Tomas Zeman <tzeman@volny.cz>"
Wed, 14 Jul 2010 08:34:31 +0200
changeset 3 86721b328bbb
parent 2 954185277fd8
child 4 2a58b068a13c
freebsd: added iostat
conf/freebsd.conf
--- a/conf/freebsd.conf	Wed Jul 14 08:27:49 2010 +0200
+++ b/conf/freebsd.conf	Wed Jul 14 08:34:31 2010 +0200
@@ -3,3 +3,18 @@
 # Number of port vulnerabilities (need to have portaudit(1) installed)
 UserParameter=portaudit.problems,portaudit |grep 'problem(s)'|cut -f1 -d" "
 
+# Disk statistics - iostat(8):
+#           The extended iostat device display, with the -x flag specified,
+#           shows the following statistics:
+#
+#           r/s     read operations per second
+#           w/s     write operations per second
+#           kr/s    kilobytes read per second
+#           kw/s    kilobytes write per second
+#           wait    transactions queue length
+#           svc_t   average duration of transactions, in milliseconds
+#           %b      % of time the device had one or more outstanding transac-
+#                   tions
+# E.g. iostat[ad10,4], parameter $2 starts from 2 (first is the disk identifier)
+UserParameter=iostat[*],iostat -x $1|tail -1|tr -s ' '|cut -d' ' -f $2
+