-
Notifications
You must be signed in to change notification settings - Fork 3
/
frogg_nfs_check.xml
92 lines (92 loc) · 3.42 KB
/
frogg_nfs_check.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?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>