92 lines
3.4 KiB
XML
92 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<zabbix_export>
|
|
<version>5.2</version>
|
|
<date>2021-03-14T13:31:06Z</date>
|
|
<groups>
|
|
<group>
|
|
<name>Templates</name>
|
|
</group>
|
|
<group>
|
|
<name>Templates/Modules</name>
|
|
</group>
|
|
</groups>
|
|
<templates>
|
|
<template>
|
|
<template>NFS Share</template>
|
|
<name>Template Module NFS Share</name>
|
|
<description>This template check NFS version and shares</description>
|
|
<groups>
|
|
<group>
|
|
<name>Templates</name>
|
|
</group>
|
|
<group>
|
|
<name>Templates/Modules</name>
|
|
</group>
|
|
</groups>
|
|
<applications>
|
|
<application>
|
|
<name>NFS</name>
|
|
</application>
|
|
</applications>
|
|
<items>
|
|
<item>
|
|
<name>NFS share</name>
|
|
<key>nfsshare.share[{HOST.CONN},{$NFSSHARES}]</key>
|
|
<delay>2m</delay>
|
|
<history>7d</history>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<applications>
|
|
<application>
|
|
<name>NFS</name>
|
|
</application>
|
|
</applications>
|
|
<triggers>
|
|
<trigger>
|
|
<expression>{strlen()}>0</expression>
|
|
<name>NFS share {ITEM.VALUE} unavailable on {HOST.NAME}</name>
|
|
<priority>AVERAGE</priority>
|
|
</trigger>
|
|
</triggers>
|
|
</item>
|
|
<item>
|
|
<name>Check NFS version</name>
|
|
<key>nfsshare.version[{HOST.CONN}]</key>
|
|
<delay>30m</delay>
|
|
<history>7d</history>
|
|
<trends>0</trends>
|
|
<value_type>FLOAT</value_type>
|
|
<applications>
|
|
<application>
|
|
<name>NFS</name>
|
|
</application>
|
|
</applications>
|
|
<triggers>
|
|
<trigger>
|
|
<expression>{last()}=0</expression>
|
|
<name>NFS service is down on {HOST.NAME}</name>
|
|
<priority>AVERAGE</priority>
|
|
</trigger>
|
|
<trigger>
|
|
<expression>{last()}<>{$NFSVERSION}</expression>
|
|
<name>NFS version is {ITEM.VALUE} instead of {$NFSVERSION} on {HOST.NAME}</name>
|
|
<priority>WARNING</priority>
|
|
</trigger>
|
|
</triggers>
|
|
</item>
|
|
</items>
|
|
<macros>
|
|
<macro>
|
|
<macro>{$NFSSHARES}</macro>
|
|
<value>/nfsshare1,/nfsshare2</value>
|
|
<description>List of shares separated by ,</description>
|
|
</macro>
|
|
<macro>
|
|
<macro>{$NFSVERSION}</macro>
|
|
<value>4</value>
|
|
<description>NFS version expected</description>
|
|
</macro>
|
|
</macros>
|
|
</template>
|
|
</templates>
|
|
</zabbix_export> |