|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<zabbix_export>
|
|
|
|
<version>5.0</version>
|
|
|
|
<date>2021-06-19T12:07:47Z</date>
|
|
|
|
<groups>
|
|
|
|
<group>
|
|
|
|
<name>Templates</name>
|
|
|
|
</group>
|
|
|
|
</groups>
|
|
|
|
<templates>
|
|
|
|
<template>
|
|
|
|
<template>Template_App_DRBD</template>
|
|
|
|
<name>Template_App_DRBD</name>
|
|
|
|
<groups>
|
|
|
|
<group>
|
|
|
|
<name>Templates</name>
|
|
|
|
</group>
|
|
|
|
</groups>
|
|
|
|
<applications>
|
|
|
|
<application>
|
|
|
|
<name>DRBD</name>
|
|
|
|
</application>
|
|
|
|
<application>
|
|
|
|
<name>Storage</name>
|
|
|
|
</application>
|
|
|
|
</applications>
|
|
|
|
<discovery_rules>
|
|
|
|
<discovery_rule>
|
|
|
|
<name>DRBD resources</name>
|
|
|
|
<key>drbd.resource.discovery[]</key>
|
|
|
|
<delay>30m</delay>
|
|
|
|
<lifetime>2d</lifetime>
|
|
|
|
<item_prototypes>
|
|
|
|
<item_prototype>
|
|
|
|
<name>DRBD: {#DRBD_RES_NAME} connexion status</name>
|
|
|
|
<key>drbd.resource.status[{#DRBD_RES_NAME},cstate]</key>
|
|
|
|
<delay>5m</delay>
|
|
|
|
<history>180d</history>
|
|
|
|
<trends>0</trends>
|
|
|
|
<value_type>CHAR</value_type>
|
|
|
|
<applications>
|
|
|
|
<application>
|
|
|
|
<name>DRBD</name>
|
|
|
|
</application>
|
|
|
|
<application>
|
|
|
|
<name>Storage</name>
|
|
|
|
</application>
|
|
|
|
</applications>
|
|
|
|
<request_method>POST</request_method>
|
|
|
|
<trigger_prototypes>
|
|
|
|
<trigger_prototype>
|
|
|
|
<expression>{str(Connected)}=0 and {str(SyncSource)}=0 and
|
|
|
|
{str(SyncTarget)}=0</expression>
|
|
|
|
<name>DRBD: ({#DRBD_RES_NAME}): connexion is not established</name>
|
|
|
|
<priority>AVERAGE</priority>
|
|
|
|
</trigger_prototype>
|
|
|
|
</trigger_prototypes>
|
|
|
|
</item_prototype>
|
|
|
|
<item_prototype>
|
|
|
|
<name>DRBD: {#DRBD_RES_NAME} data status</name>
|
|
|
|
<key>drbd.resource.status[{#DRBD_RES_NAME},dstate]</key>
|
|
|
|
<delay>5m</delay>
|
|
|
|
<history>180d</history>
|
|
|
|
<trends>0</trends>
|
|
|
|
<value_type>CHAR</value_type>
|
|
|
|
<applications>
|
|
|
|
<application>
|
|
|
|
<name>DRBD</name>
|
|
|
|
</application>
|
|
|
|
<application>
|
|
|
|
<name>Storage</name>
|
|
|
|
</application>
|
|
|
|
</applications>
|
|
|
|
<request_method>POST</request_method>
|
|
|
|
<trigger_prototypes>
|
|
|
|
<trigger_prototype>
|
|
|
|
<expression>{str(UpToDate)}=0</expression>
|
|
|
|
<name>DRBD ({#DRBD_RES_NAME}): data is not up to date</name>
|
|
|
|
<priority>AVERAGE</priority>
|
|
|
|
</trigger_prototype>
|
|
|
|
</trigger_prototypes>
|
|
|
|
</item_prototype>
|
|
|
|
<item_prototype>
|
|
|
|
<name>DRBD: {#DRBD_RES_NAME} role</name>
|
|
|
|
<key>drbd.resource.status[{#DRBD_RES_NAME},role]</key>
|
|
|
|
<delay>5m</delay>
|
|
|
|
<history>180d</history>
|
|
|
|
<trends>0</trends>
|
|
|
|
<value_type>CHAR</value_type>
|
|
|
|
<applications>
|
|
|
|
<application>
|
|
|
|
<name>DRBD</name>
|
|
|
|
</application>
|
|
|
|
<application>
|
|
|
|
<name>Storage</name>
|
|
|
|
</application>
|
|
|
|
</applications>
|
|
|
|
<request_method>POST</request_method>
|
|
|
|
<trigger_prototypes>
|
|
|
|
<trigger_prototype>
|
|
|
|
<expression>{diff()}=1</expression>
|
|
|
|
<name>DRBD ({#DRBD_RES_NAME}) node role has changed</name>
|
|
|
|
<priority>AVERAGE</priority>
|
|
|
|
</trigger_prototype>
|
|
|
|
</trigger_prototypes>
|
|
|
|
</item_prototype>
|
|
|
|
</item_prototypes>
|
|
|
|
<request_method>POST</request_method>
|
|
|
|
</discovery_rule>
|
|
|
|
</discovery_rules>
|
|
|
|
</template>
|
|
|
|
</templates>
|
|
|
|
</zabbix_export>
|