Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
178 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<zabbix_export> | ||
<version>2.0</version> | ||
<date>2015-11-28T06:11:54Z</date> | ||
<groups> | ||
<group> | ||
<name>Templates</name> | ||
</group> | ||
</groups> | ||
<templates> | ||
<template> | ||
<template>Template mdraid</template> | ||
<name>Template mdraid</name> | ||
<description/> | ||
<groups> | ||
<group> | ||
<name>Templates</name> | ||
</group> | ||
</groups> | ||
<applications/> | ||
<items> | ||
<item> | ||
<name>mdraid devices down</name> | ||
<type>0</type> | ||
<snmp_community/> | ||
<multiplier>0</multiplier> | ||
<snmp_oid/> | ||
<key>system.run["grep -Pc \"\[(_|U)*_(_|U)*\]$\" /proc/mdstat"]</key> | ||
<delay>120</delay> | ||
<history>30</history> | ||
<trends>365</trends> | ||
<status>0</status> | ||
<value_type>3</value_type> | ||
<allowed_hosts/> | ||
<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/> | ||
<valuemap/> | ||
<logtimefmt/> | ||
</item> | ||
<item> | ||
<name>mdraid devices mismatch count</name> | ||
<type>0</type> | ||
<snmp_community/> | ||
<multiplier>0</multiplier> | ||
<snmp_oid/> | ||
<key>system.run["paste -d\"+\" /sys/block/*/md/mismatch_cnt|bc"]</key> | ||
<delay>120</delay> | ||
<history>30</history> | ||
<trends>365</trends> | ||
<status>0</status> | ||
<value_type>3</value_type> | ||
<allowed_hosts/> | ||
<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/> | ||
<valuemap/> | ||
<logtimefmt/> | ||
</item> | ||
<item> | ||
<name>mdraid devices under recovery</name> | ||
<type>0</type> | ||
<snmp_community/> | ||
<multiplier>0</multiplier> | ||
<snmp_oid/> | ||
<key>system.run["grep -Pc \"\ recovery\ \" /proc/mdstat"]</key> | ||
<delay>120</delay> | ||
<history>30</history> | ||
<trends>365</trends> | ||
<status>0</status> | ||
<value_type>3</value_type> | ||
<allowed_hosts/> | ||
<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/> | ||
<valuemap/> | ||
<logtimefmt/> | ||
</item> | ||
</items> | ||
<discovery_rules/> | ||
<macros/> | ||
<templates/> | ||
<screens/> | ||
</template> | ||
</templates> | ||
<triggers> | ||
<trigger> | ||
<expression>{Template mdraid:system.run["grep -Pc \"\[(_|U)*_(_|U)*\]$\" /proc/mdstat"].last()}<>0</expression> | ||
<name>mdraid device down</name> | ||
<url/> | ||
<status>0</status> | ||
<priority>4</priority> | ||
<description/> | ||
<type>0</type> | ||
<dependencies/> | ||
</trigger> | ||
<trigger> | ||
<expression>{Template mdraid:system.run["paste -d\"+\" /sys/block/*/md/mismatch_cnt|bc"].last()}>0</expression> | ||
<name>mdraid device mismatch count higher than zero</name> | ||
<url/> | ||
<status>0</status> | ||
<priority>3</priority> | ||
<description/> | ||
<type>0</type> | ||
<dependencies/> | ||
</trigger> | ||
<trigger> | ||
<expression>{Template mdraid:system.run["grep -Pc \"\ recovery\ \" /proc/mdstat"].last()}<>0</expression> | ||
<name>mdraid device under recovery</name> | ||
<url/> | ||
<status>0</status> | ||
<priority>4</priority> | ||
<description/> | ||
<type>0</type> | ||
<dependencies/> | ||
</trigger> | ||
</triggers> | ||
</zabbix_export> |