-
Notifications
You must be signed in to change notification settings - Fork 2
/
Template App OpenVPN Service.xml
178 lines (178 loc) · 7.58 KB
/
Template App OpenVPN Service.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2022-01-16T13:44:03Z</date>
<groups>
<group>
<name>Templates Users</name>
</group>
</groups>
<templates>
<template>
<template>Template App OpenVPN Service</template>
<name>Template App OpenVPN Service</name>
<groups>
<group>
<name>Templates Users</name>
</group>
</groups>
<applications>
<application>
<name>Openvpn</name>
</application>
</applications>
<items>
<item>
<name>Openvpn user number</name>
<key>openvpn.user.number</key>
<units>count</units>
<applications>
<application>
<name>Openvpn</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>Openvpn version</name>
<key>openvpn.version</key>
<delay>1h</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>Openvpn</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{diff()}=1</expression>
<name>Version of openvpn was changed on {HOST.NAME}</name>
<priority>INFO</priority>
</trigger>
</triggers>
</item>
<item>
<name>Openvpn service is running</name>
<key>proc.num[openvpn]</key>
<applications>
<application>
<name>Openvpn</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{last()}=0</expression>
<name>Openvpn service is down on {HOST.NAME}</name>
<priority>WARNING</priority>
</trigger>
</triggers>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>Openvpn users discovery</name>
<key>openvpn.discovery</key>
<delay>10m</delay>
<item_prototypes>
<item_prototype>
<name>Openvpn byte received {#VPN.USER}</name>
<key>openvpn.user.received[{#VPN.USER}]</key>
<units>b\s</units>
<applications>
<application>
<name>Openvpn</name>
</application>
</applications>
<preprocessing>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
</preprocessing>
<request_method>POST</request_method>
</item_prototype>
<item_prototype>
<name>Openvpn byte sent {#VPN.USER}</name>
<key>openvpn.user.sent[{#VPN.USER}]</key>
<units>b\s</units>
<applications>
<application>
<name>Openvpn</name>
</application>
</applications>
<preprocessing>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
</preprocessing>
<request_method>POST</request_method>
</item_prototype>
<item_prototype>
<name>Openvpn user status {#VPN.USER}</name>
<key>openvpn.user.status[{#VPN.USER}]</key>
<applications>
<application>
<name>Openvpn</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
</item_prototypes>
<graph_prototypes>
<graph_prototype>
<name>Openvpn byte sent/received {#VPN.USER}</name>
<graph_items>
<graph_item>
<sortorder>1</sortorder>
<color>1A7C11</color>
<item>
<host>Template App OpenVPN Service</host>
<key>openvpn.user.received[{#VPN.USER}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>2</sortorder>
<color>F63100</color>
<item>
<host>Template App OpenVPN Service</host>
<key>openvpn.user.sent[{#VPN.USER}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
<graph_prototype>
<name>Openvpn status {#VPN.USER}</name>
<graph_items>
<graph_item>
<sortorder>1</sortorder>
<color>1A7C11</color>
<item>
<host>Template App OpenVPN Service</host>
<key>openvpn.user.status[{#VPN.USER}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<request_method>POST</request_method>
</discovery_rule>
</discovery_rules>
</template>
</templates>
<graphs>
<graph>
<name>Openvpn status of all users</name>
<graph_items>
<graph_item>
<color>0040FF</color>
<item>
<host>Template App OpenVPN Service</host>
<key>openvpn.user.number</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
</zabbix_export>