-
Notifications
You must be signed in to change notification settings - Fork 0
/
frogg_smb_templates.xml
89 lines (89 loc) · 3.36 KB
/
frogg_smb_templates.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
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.2</version>
<date>2021-07-31T19:55:30Z</date>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<templates>
<template>
<template>SMB Share</template>
<name>Template Module SMB Share</name>
<description>Check SMB share availability and rights</description>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<applications>
<application>
<name>SMB</name>
</application>
</applications>
<items>
<item>
<name>Check SMB right</name>
<type>EXTERNAL</type>
<key>frogg_smb_check.sh[right,{HOST.CONN},{$SMBRIGHTS}]</key>
<delay>30m</delay>
<history>7d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<applications>
<application>
<name>SMB</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{strlen()}>0</expression>
<name>SMB right incorrect {ITEM.VALUE} on {HOST.NAME}</name>
<priority>WARNING</priority>
</trigger>
</triggers>
</item>
<item>
<name>Check SMB share</name>
<type>EXTERNAL</type>
<key>frogg_smb_check.sh[share,{HOST.CONN},{$SMBSHARES}]</key>
<delay>2m</delay>
<history>7d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<applications>
<application>
<name>SMB</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{strlen()}>0</expression>
<name>SMB share {ITEM.VALUE} unavailable on {HOST.NAME}</name>
<priority>AVERAGE</priority>
</trigger>
</triggers>
</item>
</items>
<macros>
<macro>
<macro>{$SMBSHARES}</macro>
<value>smbshare1,smbshare2</value>
<description>List of shares separated by ,</description>
</macro>
<macro>
<macro>{$SMBRIGHTS}</macro>
<value>share1$+r,share2+w,share3|user:pass+r</value>
<description>List of shares with rights separated by , Syntax is SHARE/SUBFOLDER/SUBFOLDER/EVENMORE|USER:PASS{RIGHTS_CODE}</description>
</macro>
</macros>
</template>
</templates>
</zabbix_export>