Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Template MD RAID.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
<template_groups>
<template_group>
<name>Templates</name>
<uuid>7d8dc04d4ecd40e59ac023c465dc057e</uuid>
</template_group>
</template_groups>
<templates>
<template>
<template>Template MD RAID</template>
<name>Template MD RAID</name>
<uuid>d1410953321c49a6a7d5a720058a9c0e</uuid>
<groups>
<group>
<name>Templates</name>
Expand All @@ -18,12 +20,14 @@
<discovery_rules>
<discovery_rule>
<name>MD RAID Discovery</name>
<uuid>a10aa951978a44719cc3dfd3b631c3c8</uuid>
<key>mdraid.discovery</key>
<delay>1h</delay>
<lifetime>7d</lifetime>
<item_prototypes>
<item_prototype>
<name>{#MD_DEVICE} Array device #$3</name>
<uuid>51d47b9ed4204df0812ad1fea0dff452</uuid>
<key>mdraid[{#MD_DEVICE},d,0]</key>
<delay>600</delay>
<history>1d</history>
Expand All @@ -38,6 +42,7 @@
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} Array device #$3</name>
<uuid>4d8890f009fb4294bb1b53616d27f1e5</uuid>
<key>mdraid[{#MD_DEVICE},d,1]</key>
<delay>600</delay>
<history>1d</history>
Expand All @@ -52,6 +57,7 @@
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} Number of Failed Devices</name>
<uuid>7cf0ac5296bc49f599ba93c8128b8306</uuid>
<key>mdraid[{#MD_DEVICE},e,&quot;Failed Devices&quot;]</key>
<delay>300</delay>
<history>1d</history>
Expand All @@ -66,13 +72,15 @@
<trigger_prototype>
<expression>last(/Template MD RAID/mdraid[{#MD_DEVICE},e,&quot;Failed Devices&quot;])&gt;0</expression>
<name>{#MD_DEVICE} Number of Failed Devices</name>
<uuid>84895e172ed14b6b86358c602c9f373e</uuid>
<priority>AVERAGE</priority>
<description>There is a failed disk for a RAID array on this host.</description>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} Number of Devices</name>
<uuid>09d2f793bbd24be594a25e2b4c23e9bf</uuid>
<key>mdraid[{#MD_DEVICE},e,&quot;Raid Devices&quot;]</key>
<delay>300</delay>
<history>1d</history>
Expand All @@ -86,6 +94,7 @@
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} RAID Level</name>
<uuid>8e450344030745428016e414f4a9340c</uuid>
<key>mdraid[{#MD_DEVICE},e,&quot;Raid Level&quot;]</key>
<delay>600</delay>
<history>1d</history>
Expand All @@ -100,6 +109,7 @@
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} State</name>
<uuid>27a48379f99a4b97bfc7010cb6b9bc77</uuid>
<key>mdraid[{#MD_DEVICE},e,&quot;State&quot;]</key>
<delay>300</delay>
<history>1d</history>
Expand All @@ -115,12 +125,14 @@
<trigger_prototype>
<expression>find(/Template MD RAID/mdraid[{#MD_DEVICE},e,&quot;State&quot;],,&quot;regexp&quot;,&quot;(degraded|resyncing|recovering|Not Started)&quot;)=1</expression>
<name>{#MD_DEVICE} RAID State</name>
<uuid>12b580c3f7664e8fbffe5ddcd00e1684</uuid>
<priority>AVERAGE</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} Array Size</name>
<uuid>7574b59eea1445f6b586075218898eef</uuid>
<key>mdraid[{#MD_DEVICE},s,&quot;Array Size&quot;]</key>
<delay>600</delay>
<history>1d</history>
Expand All @@ -143,6 +155,7 @@
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} read operation speed</name>
<uuid>d46f8acfa33a4d319f4627c08e97350f</uuid>
<key>vfs.dev.read[{#MD_DEVICE},operations]</key>
<delay>60</delay>
<value_type>FLOAT</value_type>
Expand All @@ -164,6 +177,7 @@
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} data read speed</name>
<uuid>0454b4730e784985ada5704deaeb6997</uuid>
<key>vfs.dev.read[{#MD_DEVICE},sectors]</key>
<delay>60</delay>
<value_type>FLOAT</value_type>
Expand All @@ -185,6 +199,7 @@
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} write operation speed</name>
<uuid>88977a9c1fe346d3bcd73564c06296e8</uuid>
<key>vfs.dev.write[{#MD_DEVICE},operations]</key>
<delay>60</delay>
<value_type>FLOAT</value_type>
Expand All @@ -206,6 +221,7 @@
</item_prototype>
<item_prototype>
<name>{#MD_DEVICE} data write speed</name>
<uuid>154fd3574120458fa18dd58c87e9d949</uuid>
<key>vfs.dev.write[{#MD_DEVICE},sectors]</key>
<delay>60</delay>
<value_type>FLOAT</value_type>
Expand All @@ -229,6 +245,7 @@
<graph_prototypes>
<graph_prototype>
<name>{#MD_DEVICE} Array IO Performance</name>
<uuid>690ef72d7113464db023a5d2b15700ee</uuid>
<width>400</width>
<ymin_type_1>FIXED</ymin_type_1>
<graph_items>
Expand Down