zabbix監控linux磁碟io的模板
zabbix監控linux磁碟io的模板
最近,我發現zabbix沒有監控linux的磁碟io,於是藉助百度,我做了一個zabbix模板,用來監控磁碟io。
1、新增自動尋找磁碟指令碼:
cat /home/monitor/disk_scan.sh
######################################
#!/bin/bash
#written by lenwood
#mail:ccyhaoran@live.cn
diskarray=(`cat /proc/diskstats |grep -E "\bsd[abcdefg]\b|\bxvd[abcdefg]\b"|grep -i "\b$1\b"|awk '{print $3}'|sort|uniq 2>/dev/null`)
length=${#diskarray[@]}
printf "{\n"
printf '\t'"\"data\":["
for ((i=0;i<$length;i++))
do
printf '\n\t\t{'
printf "\"{#DISK_NAME}\":\"${diskarray[$i]}\"}"
if [ $i -lt $[$length-1] ];then
printf ','
fi
done
printf "\n\t]\n"
printf "}\n"
###########################
註釋:grep -E 裡面的\b表示匹配空字串的意思。
The Backslash Character and Special Expressions
The symbols \< and \> respectively match the empty string at the
beginning and end of a word. The symbol \b matches the empty string at
the edge of a word, and \B matches the empty string provided it’s not
at the edge of a word. The symbol \w is a synonym for [[:alnum:]] and
\W is a synonym for [^[:alnum:]].
2、後臺執行iostat命令
nohup iostat -m -x -d 30 > /home/script/log/iostat_output &
-c 僅顯示CPU統計資訊.與-d選項互斥.
-d 僅顯示磁碟統計資訊.與-c選項互斥.
-k 以K為單位顯示每秒的磁碟請求數,預設單位塊.
-p device | ALL
與-x選項互斥,用於顯示塊裝置及系統分割槽的統計資訊.也可以在-p後指定一個裝置名,如:
# iostat -p hda
或顯示所有裝置
# iostat -p ALL
-t 在輸出資料時,列印蒐集資料的時間.
-V 列印版本號和幫助資訊.
-x 輸出擴充套件資訊.
-m 以兆為單位
3、為了下次開啟也生效,把上述的nohup iostat命令加入/etc/rc.local裡面
4、在zabbix_agentd.conf中加入如下UserParameters:
############################
#透過iostat -m -x -d 30 獲得的磁碟io資訊
UserParameter=io.scandisk[*],/home/script/disk_scan.sh $1
UserParameter=io.rps[*],/usr/bin/tail /home/script/log/iostat_output |grep "\b$1\b"|tail -1|awk '{print $$4}'
UserParameter=io.wps[*],/usr/bin/tail /home/script/log/iostat_output |grep "\b$1\b" |tail -1|awk '{print $$5}'
UserParameter=io.rMBps[*],/usr/bin/tail /home/script/log/iostat_output |grep "\b$1\b" |tail -1|awk '{print $$6}'
UserParameter=io.wMBps[*],/usr/bin/tail /home/script/log/iostat_output |grep "\b$1\b" |tail -1|awk '{print $$7}'
UserParameter=io.avgrq-sz[*],/usr/bin/tail /home/script/log/iostat_output |grep "\b$1\b" |tail -1|awk '{print $$8}'
UserParameter=io.avgqu-sz[*],/usr/bin/tail /home/script/log/iostat_output |grep "\b$1\b" |tail -1|awk '{print $$9}'
UserParameter=io.await[*],/usr/bin/tail /home/script/log/iostat_output |grep "\b$1\b" |tail -1|awk '{print $$10}'
UserParameter=io.svctm[*],/usr/bin/tail /home/script/log/iostat_output |grep "\b$1\b" |tail -1|awk '{print $$11}'
UserParameter=io.util[*],/usr/bin/tail /home/script/log/iostat_output |grep "\b$1\b" |tail -1|awk '{print $$12}'
#透過cat /proc/diskstats獲得的磁碟io資訊
UserParameter=custom.vfs.dev.read.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$4}'
UserParameter=custom.vfs.dev.read.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$7}'
UserParameter=custom.vfs.dev.write.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$8}'
UserParameter=custom.vfs.dev.write.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$11}'
UserParameter=custom.vfs.dev.io.active[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$12}'
UserParameter=custom.vfs.dev.io.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$13}'
UserParameter=custom.vfs.dev.read.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$6}'
UserParameter=custom.vfs.dev.write.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$10}'
##################
5、重啟zabbix agent
/etc/init.d/zabbix_agentd restart
6、確認zabbix agent是否啟動
[ ps -elf |grep zabbix
7、匯入我弄的模板:linux磁碟io模板-czxin
8、關聯你要監控的主機
####################
參考資料:
http://blog.chinaunix.net/uid-26446098-id-4964263.html
附件列表
zabbix監控磁碟io的模板
zbx_export_templates.xml
點選(此處)摺疊或開啟
-
<?xml version="1.0" encoding="UTF-8"?>
-
<zabbix_export>
-
<version>2.0</version>
-
<date>2015-11-28T15:38:34Z</date>
-
<groups>
-
<group>
-
<name>378-軟體構型管理系統V1.0</name>
-
</group>
-
</groups>
-
<templates>
-
<template>
-
<template>disk_io_template</template>
-
<name>linux磁碟io模板-czxin</name>
-
<description/>
-
<groups>
-
<group>
-
<name>378-軟體構型管理系統V1.0</name>
-
</group>
-
</groups>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
<application>
-
<name>disk_io_proc(透過cat /proc/diskstats擷取的數值)</name>
-
</application>
-
</applications>
-
<items>
-
<item>
-
<name>Disk:$1:Read:Bytes/sec(每秒讀磁碟的位元組數))</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>1</multiplier>
-
<snmp_oid/>
-
<key>custom.vfs.dev.read.sectors[sda]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>3</value_type>
-
<allowed_hosts/>
-
<units>B/sec</units>
-
<delta>1</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>512</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_proc(透過cat /proc/diskstats擷取的數值)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item>
-
<item>
-
<name>Disk:$1:Read:ms(每次讀磁碟花費的毫秒數)</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>custom.vfs.dev.read.ms[sda]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>ms</units>
-
<delta>1</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_proc(透過cat /proc/diskstats擷取的數值)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item>
-
<item>
-
<name>Disk:$1:Read:ops per second(每秒磁碟讀的次數)</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>1</multiplier>
-
<snmp_oid/>
-
<key>custom.vfs.dev.read.ops[sda]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>ops/second</units>
-
<delta>1</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>512</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_proc(透過cat /proc/diskstats擷取的數值)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item>
-
<item>
-
<name>Disk:$1:Write:Bytes/sec(每秒磁碟寫的位元組數)</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>1</multiplier>
-
<snmp_oid/>
-
<key>custom.vfs.dev.write.sectors[sda]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>3</value_type>
-
<allowed_hosts/>
-
<units>B/sec</units>
-
<delta>1</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>512</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_proc(透過cat /proc/diskstats擷取的數值)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item>
-
<item>
-
<name>Disk:$1:Write:ms(每次寫磁碟花費的毫秒數)</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>custom.vfs.dev.write.ms[sda]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>3</value_type>
-
<allowed_hosts/>
-
<units>ms</units>
-
<delta>1</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_proc(透過cat /proc/diskstats擷取的數值)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item>
-
<item>
-
<name>Disk:$1:Write:ops per second(每秒寫磁碟的次數)</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>custom.vfs.dev.write.ops[sda]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>3</value_type>
-
<allowed_hosts/>
-
<units>ops/second</units>
-
<delta>1</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_proc(透過cat /proc/diskstats擷取的數值)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item>
-
</items>
-
<discovery_rules>
-
<discovery_rule>
-
<name>io_status_discovery</name>
-
<type>0</type>
-
<snmp_community/>
-
<snmp_oid/>
-
<key>io.scandisk</key>
-
<delay>30</delay>
-
<status>0</status>
-
<allowed_hosts/>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<filter>
-
<evaltype>0</evaltype>
-
<formula/>
-
<conditions/>
-
</filter>
-
<lifetime>1</lifetime>
-
<description/>
-
<item_prototypes>
-
<item_prototype>
-
<name>IO_avgqu-sz(平均I/O佇列長度) on $1</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>io.avgqu-sz[{#DISK_NAME}]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>length</units>
-
<delta>0</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item_prototype>
-
<item_prototype>
-
<name>IO_avgrq-sz(平均每次裝置I/O操作的資料大小 (扇區)) ON $1</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>io.avgrq-sz[{#DISK_NAME}]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>扇區</units>
-
<delta>0</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item_prototype>
-
<item_prototype>
-
<name>IO_await(平均每次裝置I/O操作的等待時間 (毫秒)) on $1</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>io.await[{#DISK_NAME}]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>ms</units>
-
<delta>0</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item_prototype>
-
<item_prototype>
-
<name>IO_rMBps(每秒讀兆位元組數) on $1</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>io.rMBps[{#DISK_NAME}]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>rMBps</units>
-
<delta>0</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item_prototype>
-
<item_prototype>
-
<name>IO_rps(每秒完成的讀 I/O 裝置次數) on $1</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>io.rps[{#DISK_NAME}]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>rps</units>
-
<delta>0</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item_prototype>
-
<item_prototype>
-
<name>IO_svctm( 平均每次裝置I/O操作的服務時間 (毫秒)) on $1</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>io.svctm[{#DISK_NAME}]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>ms</units>
-
<delta>0</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item_prototype>
-
<item_prototype>
-
<name>IO_util(磁碟在一秒中有百分之多少的時間用於 I/O 操作) on $1</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>io.util[{#DISK_NAME}]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>%</units>
-
<delta>0</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item_prototype>
-
<item_prototype>
-
<name>IO_wMBps(每秒寫M位元組數) on $1</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>io.wMBps[{#DISK_NAME}]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>wMBps</units>
-
<delta>0</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item_prototype>
-
<item_prototype>
-
<name>IO_wps(每秒完成的寫 I/O 裝置次數) on $1</name>
-
<type>0</type>
-
<snmp_community/>
-
<multiplier>0</multiplier>
-
<snmp_oid/>
-
<key>io.wps[{#DISK_NAME}]</key>
-
<delay>30</delay>
-
<history>90</history>
-
<trends>365</trends>
-
<status>0</status>
-
<value_type>0</value_type>
-
<allowed_hosts/>
-
<units>wps</units>
-
<delta>0</delta>
-
<snmpv3_contextname/>
-
<snmpv3_securityname/>
-
<snmpv3_securitylevel>0</snmpv3_securitylevel>
-
<snmpv3_authprotocol>0</snmpv3_authprotocol>
-
<snmpv3_authpassphrase/>
-
<snmpv3_privprotocol>0</snmpv3_privprotocol>
-
<snmpv3_privpassphrase/>
-
<formula>1</formula>
-
<delay_flex/>
-
<params/>
-
<ipmi_sensor/>
-
<data_type>0</data_type>
-
<authtype>0</authtype>
-
<username/>
-
<password/>
-
<publickey/>
-
<privatekey/>
-
<port/>
-
<description/>
-
<inventory_link>0</inventory_link>
-
<applications>
-
<application>
-
<name>disk_io_iostat(透過iostat -m -x -d 30擷取的引數)</name>
-
</application>
-
</applications>
-
<valuemap/>
-
<logtimefmt/>
-
</item_prototype>
-
</item_prototypes>
-
<trigger_prototypes/>
-
<graph_prototypes/>
-
<host_prototypes/>
-
</discovery_rule>
-
</discovery_rules>
-
<macros/>
-
<templates/>
-
<screens/>
-
</template>
-
</templates>
-
<graphs>
-
<graph>
-
<name>linux_disk_io_stat</name>
-
<width>900</width>
-
<height>200</height>
-
<yaxismin>0.0000</yaxismin>
-
<yaxismax>100.0000</yaxismax>
-
<show_work_period>1</show_work_period>
-
<show_triggers>1</show_triggers>
-
<type>0</type>
-
<show_legend>1</show_legend>
-
<show_3d>0</show_3d>
-
<percent_left>0.0000</percent_left>
-
<percent_right>0.0000</percent_right>
-
<ymin_type_1>0</ymin_type_1>
-
<ymax_type_1>0</ymax_type_1>
-
<ymin_item_1>0</ymin_item_1>
-
<ymax_item_1>0</ymax_item_1>
-
<graph_items>
-
<graph_item>
-
<sortorder>0</sortorder>
-
<drawtype>0</drawtype>
-
<color>00C800</color>
-
<yaxisside>0</yaxisside>
-
<calc_fnc>2</calc_fnc>
-
<type>0</type>
-
<item>
-
<host>disk_io_template</host>
-
<key>custom.vfs.dev.read.sectors[sda]</key>
-
</item>
-
</graph_item>
-
<graph_item>
-
<sortorder>1</sortorder>
-
<drawtype>0</drawtype>
-
<color>C80000</color>
-
<yaxisside>0</yaxisside>
-
<calc_fnc>2</calc_fnc>
-
<type>0</type>
-
<item>
-
<host>disk_io_template</host>
-
<key>custom.vfs.dev.read.ms[sda]</key>
-
</item>
-
</graph_item>
-
<graph_item>
-
<sortorder>2</sortorder>
-
<drawtype>0</drawtype>
-
<color>0000C8</color>
-
<yaxisside>0</yaxisside>
-
<calc_fnc>2</calc_fnc>
-
<type>0</type>
-
<item>
-
<host>disk_io_template</host>
-
<key>custom.vfs.dev.read.ops[sda]</key>
-
</item>
-
</graph_item>
-
<graph_item>
-
<sortorder>3</sortorder>
-
<drawtype>0</drawtype>
-
<color>C800C8</color>
-
<yaxisside>0</yaxisside>
-
<calc_fnc>2</calc_fnc>
-
<type>0</type>
-
<item>
-
<host>disk_io_template</host>
-
<key>custom.vfs.dev.write.sectors[sda]</key>
-
</item>
-
</graph_item>
-
<graph_item>
-
<sortorder>4</sortorder>
-
<drawtype>0</drawtype>
-
<color>00C8C8</color>
-
<yaxisside>0</yaxisside>
-
<calc_fnc>2</calc_fnc>
-
<type>0</type>
-
<item>
-
<host>disk_io_template</host>
-
<key>custom.vfs.dev.write.ms[sda]</key>
-
</item>
-
</graph_item>
-
<graph_item>
-
<sortorder>5</sortorder>
-
<drawtype>0</drawtype>
-
<color>C8C800</color>
-
<yaxisside>0</yaxisside>
-
<calc_fnc>2</calc_fnc>
-
<type>0</type>
-
<item>
-
<host>disk_io_template</host>
-
<key>custom.vfs.dev.write.ops[sda]</key>
-
</item>
-
</graph_item>
-
</graph_items>
-
</graph>
-
</graphs>
- </zabbix_export>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28916011/viewspace-1848833/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- nagios監控linux磁碟io的bugiOSLinux
- 磁碟IO效能監控(Linux 和 Windows)LinuxWindows
- Cacti安裝磁碟IO監控
- ZABBIX安裝以及監控磁碟、mysql、oracle配置MySqlOracle
- 【Zabbix】使用zabbix 3.4自帶Mysql模板,監控Redhat 7.0上的MysqlMySqlRedhat
- Zabbix3.4用自帶模板監控mysqlMySql
- zabbix監控
- 分散式監控系統Zabbix-3.0.3-完整安裝記錄(3)-監控nginx,php,memcache,Low-level discovery磁碟IO分散式NginxPHP
- 使用zabbix自帶模板監控MySQL資料庫MySql資料庫
- Zabbix監控ActiveMQMQ
- MySQL監控--zabbixMySql
- zabbix的主動模式監控和zabbix-proxy分散式監控模式分散式
- Zabbix監控之遷移Zabbix
- PostgreSQL的監控三(zabbix)SQL
- 【監控】Zabbix安裝
- zabbix監控平臺
- zabbix新增php監控PHP
- zabbix和mysql performance monitor模板實現mysql資料庫的監控MySqlORM資料庫
- linux 下監控磁碟空間Linux
- Zabbix監控平臺的搭建
- zabbix修改LINUX的CPU負載監控問題Linux負載
- 分散式監控系統之Zabbix巨集、模板和自定義item分散式
- 【Zabbix】如何使用Zabbix進行IPMI監控?
- 基於 Zabbix 系統監控 Windows、Linux、VMwareWindowsLinux
- Zabbix監控安裝部署
- Zabbix監控使用進階
- Zabbix實戰--監控NginxNginx
- zabbix監控windows DHCP serverWindowsServer
- Zabbix新增主機監控-zabbix+grafana從零設計自己的監控平臺Grafana
- Linux的IO效能監控工具iostat詳解LinuxiOS
- Linux系統安裝zabbix 4.4監控軟體Linux
- Linux監控平臺介紹 zabbix監控介紹 安裝zabbix 忘記Admin密碼如何做Linux密碼
- Linux發郵件磁碟空間監控Linux
- [linux]磁碟監控程式並且發EMailLinuxAI
- Zabbix透過Orabbix監控OracleOracle
- zabbix系統監控部署(上)
- zabbix使用perconaplugin監控mysqlPluginMySql
- Zabbix監控各類軟體