zabbix-ruby-client 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -1
- data/.ruby-version +1 -0
- data/CHANGELOG.md +10 -1
- data/README.md +7 -2
- data/lib/zabbix-ruby-client/plugin_base.rb +28 -0
- data/lib/zabbix-ruby-client/plugins/ovpn.rb +55 -0
- data/lib/zabbix-ruby-client/plugins/postgres.rb +45 -0
- data/lib/zabbix-ruby-client/runner.rb +11 -1
- data/lib/zabbix-ruby-client/version.rb +1 -1
- data/spec/files/system/net_dev +1 -1
- data/spec/lib/cli_spec.rb +7 -7
- data/spec/lib/data_spec.rb +5 -5
- data/spec/lib/plugin_base_spec.rb +6 -6
- data/spec/lib/plugins/apache_spec.rb +1 -1
- data/spec/lib/plugins/apt_spec.rb +5 -5
- data/spec/lib/plugins/cpu_spec.rb +3 -3
- data/spec/lib/plugins/disk_spec.rb +40 -40
- data/spec/lib/plugins/load_spec.rb +5 -5
- data/spec/lib/plugins/memory_spec.rb +52 -52
- data/spec/lib/plugins/network_spec.rb +28 -29
- data/spec/lib/runner_spec.rb +21 -8
- data/zabbix-templates/apache_tpl.xml +115 -46
- data/zabbix-templates/apt_tpl.xml +13 -4
- data/zabbix-templates/cisco_tpl.xml +2089 -0
- data/zabbix-templates/cpu_tpl.xml +116 -53
- data/zabbix-templates/disk_tpl.xml +75 -29
- data/zabbix-templates/load_tpl.xml +21 -9
- data/zabbix-templates/memory_tpl.xml +52 -28
- data/zabbix-templates/mysql_tpl.xml +70 -28
- data/zabbix-templates/network_tpl.xml +40 -96
- data/zabbix-templates/nginx_tpl.xml +37 -16
- data/zabbix-templates/openvpn_tpl.xml +312 -0
- data/zabbix-templates/postgres_tpl.xml +891 -8
- data/zabbix-templates/redis_tpl.xml +46 -19
- data/zabbix-templates/sysinfo_tpl.xml +21 -3
- data/zabbix-templates/system_tpl.xml +339 -3
- metadata +26 -42
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<zabbix_export>
|
3
3
|
<version>2.0</version>
|
4
|
-
<date>
|
4
|
+
<date>2014-01-02T03:33:28Z</date>
|
5
5
|
<groups>
|
6
6
|
<group>
|
7
7
|
<name>3. Service Ubuntu</name>
|
@@ -30,16 +30,19 @@
|
|
30
30
|
<snmp_oid/>
|
31
31
|
<key>redis[changes_since_last_save]</key>
|
32
32
|
<delay>0</delay>
|
33
|
-
<history>
|
34
|
-
<trends>
|
33
|
+
<history>7</history>
|
34
|
+
<trends>730</trends>
|
35
35
|
<status>0</status>
|
36
36
|
<value_type>3</value_type>
|
37
37
|
<allowed_hosts/>
|
38
38
|
<units/>
|
39
39
|
<delta>0</delta>
|
40
|
+
<snmpv3_contextname/>
|
40
41
|
<snmpv3_securityname/>
|
41
42
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
43
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
42
44
|
<snmpv3_authpassphrase/>
|
45
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
43
46
|
<snmpv3_privpassphrase/>
|
44
47
|
<formula>1</formula>
|
45
48
|
<delay_flex/>
|
@@ -69,16 +72,19 @@
|
|
69
72
|
<snmp_oid/>
|
70
73
|
<key>redis[commands]</key>
|
71
74
|
<delay>0</delay>
|
72
|
-
<history>
|
73
|
-
<trends>
|
75
|
+
<history>7</history>
|
76
|
+
<trends>730</trends>
|
74
77
|
<status>0</status>
|
75
78
|
<value_type>0</value_type>
|
76
79
|
<allowed_hosts/>
|
77
80
|
<units/>
|
78
81
|
<delta>2</delta>
|
82
|
+
<snmpv3_contextname/>
|
79
83
|
<snmpv3_securityname/>
|
80
84
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
85
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
81
86
|
<snmpv3_authpassphrase/>
|
87
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
82
88
|
<snmpv3_privpassphrase/>
|
83
89
|
<formula>1</formula>
|
84
90
|
<delay_flex/>
|
@@ -108,16 +114,19 @@
|
|
108
114
|
<snmp_oid/>
|
109
115
|
<key>redis[connections]</key>
|
110
116
|
<delay>0</delay>
|
111
|
-
<history>
|
112
|
-
<trends>
|
117
|
+
<history>7</history>
|
118
|
+
<trends>730</trends>
|
113
119
|
<status>0</status>
|
114
120
|
<value_type>0</value_type>
|
115
121
|
<allowed_hosts/>
|
116
122
|
<units/>
|
117
123
|
<delta>1</delta>
|
124
|
+
<snmpv3_contextname/>
|
118
125
|
<snmpv3_securityname/>
|
119
126
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
127
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
120
128
|
<snmpv3_authpassphrase/>
|
129
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
121
130
|
<snmpv3_privpassphrase/>
|
122
131
|
<formula>1</formula>
|
123
132
|
<delay_flex/>
|
@@ -147,16 +156,19 @@
|
|
147
156
|
<snmp_oid/>
|
148
157
|
<key>redis[hits]</key>
|
149
158
|
<delay>0</delay>
|
150
|
-
<history>
|
151
|
-
<trends>
|
159
|
+
<history>7</history>
|
160
|
+
<trends>730</trends>
|
152
161
|
<status>0</status>
|
153
162
|
<value_type>0</value_type>
|
154
163
|
<allowed_hosts/>
|
155
164
|
<units/>
|
156
165
|
<delta>1</delta>
|
166
|
+
<snmpv3_contextname/>
|
157
167
|
<snmpv3_securityname/>
|
158
168
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
169
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
159
170
|
<snmpv3_authpassphrase/>
|
171
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
160
172
|
<snmpv3_privpassphrase/>
|
161
173
|
<formula>1</formula>
|
162
174
|
<delay_flex/>
|
@@ -186,16 +198,19 @@
|
|
186
198
|
<snmp_oid/>
|
187
199
|
<key>redis[misses]</key>
|
188
200
|
<delay>0</delay>
|
189
|
-
<history>
|
190
|
-
<trends>
|
201
|
+
<history>7</history>
|
202
|
+
<trends>730</trends>
|
191
203
|
<status>0</status>
|
192
204
|
<value_type>0</value_type>
|
193
205
|
<allowed_hosts/>
|
194
206
|
<units/>
|
195
207
|
<delta>1</delta>
|
208
|
+
<snmpv3_contextname/>
|
196
209
|
<snmpv3_securityname/>
|
197
210
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
211
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
198
212
|
<snmpv3_authpassphrase/>
|
213
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
199
214
|
<snmpv3_privpassphrase/>
|
200
215
|
<formula>1</formula>
|
201
216
|
<delay_flex/>
|
@@ -225,16 +240,19 @@
|
|
225
240
|
<snmp_oid/>
|
226
241
|
<key>redis[role]</key>
|
227
242
|
<delay>0</delay>
|
228
|
-
<history>
|
229
|
-
<trends>
|
243
|
+
<history>7</history>
|
244
|
+
<trends>730</trends>
|
230
245
|
<status>0</status>
|
231
246
|
<value_type>4</value_type>
|
232
247
|
<allowed_hosts/>
|
233
248
|
<units/>
|
234
249
|
<delta>0</delta>
|
250
|
+
<snmpv3_contextname/>
|
235
251
|
<snmpv3_securityname/>
|
236
252
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
253
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
237
254
|
<snmpv3_authpassphrase/>
|
255
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
238
256
|
<snmpv3_privpassphrase/>
|
239
257
|
<formula>1</formula>
|
240
258
|
<delay_flex/>
|
@@ -264,16 +282,19 @@
|
|
264
282
|
<snmp_oid/>
|
265
283
|
<key>redis[total]</key>
|
266
284
|
<delay>0</delay>
|
267
|
-
<history>
|
268
|
-
<trends>
|
285
|
+
<history>7</history>
|
286
|
+
<trends>730</trends>
|
269
287
|
<status>0</status>
|
270
288
|
<value_type>0</value_type>
|
271
289
|
<allowed_hosts/>
|
272
290
|
<units/>
|
273
291
|
<delta>1</delta>
|
292
|
+
<snmpv3_contextname/>
|
274
293
|
<snmpv3_securityname/>
|
275
294
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
295
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
276
296
|
<snmpv3_authpassphrase/>
|
297
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
277
298
|
<snmpv3_privpassphrase/>
|
278
299
|
<formula>1</formula>
|
279
300
|
<delay_flex/>
|
@@ -303,16 +324,19 @@
|
|
303
324
|
<snmp_oid/>
|
304
325
|
<key>redis[used_memory]</key>
|
305
326
|
<delay>0</delay>
|
306
|
-
<history>
|
307
|
-
<trends>
|
327
|
+
<history>7</history>
|
328
|
+
<trends>730</trends>
|
308
329
|
<status>0</status>
|
309
330
|
<value_type>3</value_type>
|
310
331
|
<allowed_hosts/>
|
311
332
|
<units>B</units>
|
312
333
|
<delta>0</delta>
|
334
|
+
<snmpv3_contextname/>
|
313
335
|
<snmpv3_securityname/>
|
314
336
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
337
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
315
338
|
<snmpv3_authpassphrase/>
|
339
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
316
340
|
<snmpv3_privpassphrase/>
|
317
341
|
<formula>1</formula>
|
318
342
|
<delay_flex/>
|
@@ -342,16 +366,19 @@
|
|
342
366
|
<snmp_oid/>
|
343
367
|
<key>redis[version]</key>
|
344
368
|
<delay>0</delay>
|
345
|
-
<history>
|
346
|
-
<trends>
|
369
|
+
<history>7</history>
|
370
|
+
<trends>730</trends>
|
347
371
|
<status>0</status>
|
348
372
|
<value_type>4</value_type>
|
349
373
|
<allowed_hosts/>
|
350
374
|
<units/>
|
351
375
|
<delta>0</delta>
|
376
|
+
<snmpv3_contextname/>
|
352
377
|
<snmpv3_securityname/>
|
353
378
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
379
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
354
380
|
<snmpv3_authpassphrase/>
|
381
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
355
382
|
<snmpv3_privpassphrase/>
|
356
383
|
<formula>1</formula>
|
357
384
|
<delay_flex/>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<zabbix_export>
|
3
3
|
<version>2.0</version>
|
4
|
-
<date>
|
4
|
+
<date>2014-01-02T03:33:39Z</date>
|
5
5
|
<groups>
|
6
6
|
<group>
|
7
7
|
<name>3. Service Ubuntu</name>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<snmp_community/>
|
29
29
|
<multiplier>0</multiplier>
|
30
30
|
<snmp_oid/>
|
31
|
-
<key>sysinfo[
|
31
|
+
<key>sysinfo[kernel]</key>
|
32
32
|
<delay>0</delay>
|
33
33
|
<history>365</history>
|
34
34
|
<trends>365</trends>
|
@@ -37,9 +37,12 @@
|
|
37
37
|
<allowed_hosts/>
|
38
38
|
<units/>
|
39
39
|
<delta>0</delta>
|
40
|
+
<snmpv3_contextname/>
|
40
41
|
<snmpv3_securityname/>
|
41
42
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
43
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
42
44
|
<snmpv3_authpassphrase/>
|
45
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
43
46
|
<snmpv3_privpassphrase/>
|
44
47
|
<formula>1</formula>
|
45
48
|
<delay_flex/>
|
@@ -76,9 +79,12 @@
|
|
76
79
|
<allowed_hosts/>
|
77
80
|
<units/>
|
78
81
|
<delta>0</delta>
|
82
|
+
<snmpv3_contextname/>
|
79
83
|
<snmpv3_securityname/>
|
80
84
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
85
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
81
86
|
<snmpv3_authpassphrase/>
|
87
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
82
88
|
<snmpv3_privpassphrase/>
|
83
89
|
<formula>1</formula>
|
84
90
|
<delay_flex/>
|
@@ -106,7 +112,7 @@
|
|
106
112
|
<snmp_community/>
|
107
113
|
<multiplier>0</multiplier>
|
108
114
|
<snmp_oid/>
|
109
|
-
<key>sysinfo[
|
115
|
+
<key>sysinfo[kernell]</key>
|
110
116
|
<delay>0</delay>
|
111
117
|
<history>365</history>
|
112
118
|
<trends>365</trends>
|
@@ -115,9 +121,12 @@
|
|
115
121
|
<allowed_hosts/>
|
116
122
|
<units/>
|
117
123
|
<delta>0</delta>
|
124
|
+
<snmpv3_contextname/>
|
118
125
|
<snmpv3_securityname/>
|
119
126
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
127
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
120
128
|
<snmpv3_authpassphrase/>
|
129
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
121
130
|
<snmpv3_privpassphrase/>
|
122
131
|
<formula>1</formula>
|
123
132
|
<delay_flex/>
|
@@ -154,9 +163,12 @@
|
|
154
163
|
<allowed_hosts/>
|
155
164
|
<units/>
|
156
165
|
<delta>0</delta>
|
166
|
+
<snmpv3_contextname/>
|
157
167
|
<snmpv3_securityname/>
|
158
168
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
169
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
159
170
|
<snmpv3_authpassphrase/>
|
171
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
160
172
|
<snmpv3_privpassphrase/>
|
161
173
|
<formula>1</formula>
|
162
174
|
<delay_flex/>
|
@@ -193,9 +205,12 @@
|
|
193
205
|
<allowed_hosts/>
|
194
206
|
<units/>
|
195
207
|
<delta>0</delta>
|
208
|
+
<snmpv3_contextname/>
|
196
209
|
<snmpv3_securityname/>
|
197
210
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
211
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
198
212
|
<snmpv3_authpassphrase/>
|
213
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
199
214
|
<snmpv3_privpassphrase/>
|
200
215
|
<formula>1</formula>
|
201
216
|
<delay_flex/>
|
@@ -232,9 +247,12 @@
|
|
232
247
|
<allowed_hosts/>
|
233
248
|
<units/>
|
234
249
|
<delta>0</delta>
|
250
|
+
<snmpv3_contextname/>
|
235
251
|
<snmpv3_securityname/>
|
236
252
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
253
|
+
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
237
254
|
<snmpv3_authpassphrase/>
|
255
|
+
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
238
256
|
<snmpv3_privpassphrase/>
|
239
257
|
<formula>1</formula>
|
240
258
|
<delay_flex/>
|