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.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -1
  3. data/.ruby-version +1 -0
  4. data/CHANGELOG.md +10 -1
  5. data/README.md +7 -2
  6. data/lib/zabbix-ruby-client/plugin_base.rb +28 -0
  7. data/lib/zabbix-ruby-client/plugins/ovpn.rb +55 -0
  8. data/lib/zabbix-ruby-client/plugins/postgres.rb +45 -0
  9. data/lib/zabbix-ruby-client/runner.rb +11 -1
  10. data/lib/zabbix-ruby-client/version.rb +1 -1
  11. data/spec/files/system/net_dev +1 -1
  12. data/spec/lib/cli_spec.rb +7 -7
  13. data/spec/lib/data_spec.rb +5 -5
  14. data/spec/lib/plugin_base_spec.rb +6 -6
  15. data/spec/lib/plugins/apache_spec.rb +1 -1
  16. data/spec/lib/plugins/apt_spec.rb +5 -5
  17. data/spec/lib/plugins/cpu_spec.rb +3 -3
  18. data/spec/lib/plugins/disk_spec.rb +40 -40
  19. data/spec/lib/plugins/load_spec.rb +5 -5
  20. data/spec/lib/plugins/memory_spec.rb +52 -52
  21. data/spec/lib/plugins/network_spec.rb +28 -29
  22. data/spec/lib/runner_spec.rb +21 -8
  23. data/zabbix-templates/apache_tpl.xml +115 -46
  24. data/zabbix-templates/apt_tpl.xml +13 -4
  25. data/zabbix-templates/cisco_tpl.xml +2089 -0
  26. data/zabbix-templates/cpu_tpl.xml +116 -53
  27. data/zabbix-templates/disk_tpl.xml +75 -29
  28. data/zabbix-templates/load_tpl.xml +21 -9
  29. data/zabbix-templates/memory_tpl.xml +52 -28
  30. data/zabbix-templates/mysql_tpl.xml +70 -28
  31. data/zabbix-templates/network_tpl.xml +40 -96
  32. data/zabbix-templates/nginx_tpl.xml +37 -16
  33. data/zabbix-templates/openvpn_tpl.xml +312 -0
  34. data/zabbix-templates/postgres_tpl.xml +891 -8
  35. data/zabbix-templates/redis_tpl.xml +46 -19
  36. data/zabbix-templates/sysinfo_tpl.xml +21 -3
  37. data/zabbix-templates/system_tpl.xml +339 -3
  38. 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>2013-10-19T08:26:07Z</date>
4
+ <date>2014-01-02T03:32:05Z</date>
5
5
  <groups>
6
6
  <group>
7
7
  <name>3. Service Ubuntu</name>
@@ -32,9 +32,12 @@
32
32
  <delay>0</delay>
33
33
  <status>0</status>
34
34
  <allowed_hosts/>
35
+ <snmpv3_contextname/>
35
36
  <snmpv3_securityname/>
36
37
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
38
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
37
39
  <snmpv3_authpassphrase/>
40
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
38
41
  <snmpv3_privpassphrase/>
39
42
  <delay_flex/>
40
43
  <params/>
@@ -57,16 +60,19 @@
57
60
  <snmp_oid/>
58
61
  <key>disk.io[{#DISK_DEVICE},io_weighted]</key>
59
62
  <delay>0</delay>
60
- <history>90</history>
61
- <trends>365</trends>
63
+ <history>7</history>
64
+ <trends>730</trends>
62
65
  <status>0</status>
63
66
  <value_type>0</value_type>
64
67
  <allowed_hosts/>
65
68
  <units/>
66
69
  <delta>1</delta>
70
+ <snmpv3_contextname/>
67
71
  <snmpv3_securityname/>
68
72
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
73
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
69
74
  <snmpv3_authpassphrase/>
75
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
70
76
  <snmpv3_privpassphrase/>
71
77
  <formula>1</formula>
72
78
  <delay_flex/>
@@ -96,16 +102,19 @@
96
102
  <snmp_oid/>
97
103
  <key>disk.io[{#DISK_DEVICE},io_time]</key>
98
104
  <delay>0</delay>
99
- <history>90</history>
100
- <trends>365</trends>
105
+ <history>7</history>
106
+ <trends>730</trends>
101
107
  <status>0</status>
102
108
  <value_type>0</value_type>
103
109
  <allowed_hosts/>
104
110
  <units>%</units>
105
111
  <delta>1</delta>
112
+ <snmpv3_contextname/>
106
113
  <snmpv3_securityname/>
107
114
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
115
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
108
116
  <snmpv3_authpassphrase/>
117
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
109
118
  <snmpv3_privpassphrase/>
110
119
  <formula>0.001</formula>
111
120
  <delay_flex/>
@@ -135,16 +144,19 @@
135
144
  <snmp_oid/>
136
145
  <key>disk.space[{#DISK_DEVICE},percent_used]</key>
137
146
  <delay>0</delay>
138
- <history>90</history>
139
- <trends>365</trends>
147
+ <history>7</history>
148
+ <trends>730</trends>
140
149
  <status>0</status>
141
150
  <value_type>3</value_type>
142
151
  <allowed_hosts/>
143
152
  <units>%</units>
144
153
  <delta>0</delta>
154
+ <snmpv3_contextname/>
145
155
  <snmpv3_securityname/>
146
156
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
157
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
147
158
  <snmpv3_authpassphrase/>
159
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
148
160
  <snmpv3_privpassphrase/>
149
161
  <formula>1</formula>
150
162
  <delay_flex/>
@@ -174,16 +186,19 @@
174
186
  <snmp_oid/>
175
187
  <key>disk.io[{#DISK_DEVICE},read_sector]</key>
176
188
  <delay>0</delay>
177
- <history>90</history>
178
- <trends>365</trends>
189
+ <history>7</history>
190
+ <trends>730</trends>
179
191
  <status>0</status>
180
192
  <value_type>0</value_type>
181
193
  <allowed_hosts/>
182
194
  <units>Bps</units>
183
195
  <delta>1</delta>
196
+ <snmpv3_contextname/>
184
197
  <snmpv3_securityname/>
185
198
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
199
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
186
200
  <snmpv3_authpassphrase/>
201
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
187
202
  <snmpv3_privpassphrase/>
188
203
  <formula>512</formula>
189
204
  <delay_flex/>
@@ -213,16 +228,19 @@
213
228
  <snmp_oid/>
214
229
  <key>disk.io[{#DISK_DEVICE},read_merged]</key>
215
230
  <delay>0</delay>
216
- <history>90</history>
217
- <trends>365</trends>
231
+ <history>7</history>
232
+ <trends>730</trends>
218
233
  <status>0</status>
219
234
  <value_type>0</value_type>
220
235
  <allowed_hosts/>
221
236
  <units/>
222
237
  <delta>1</delta>
238
+ <snmpv3_contextname/>
223
239
  <snmpv3_securityname/>
224
240
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
241
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
225
242
  <snmpv3_authpassphrase/>
243
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
226
244
  <snmpv3_privpassphrase/>
227
245
  <formula>1</formula>
228
246
  <delay_flex/>
@@ -252,16 +270,19 @@
252
270
  <snmp_oid/>
253
271
  <key>disk.io[{#DISK_DEVICE},read_ok]</key>
254
272
  <delay>0</delay>
255
- <history>90</history>
256
- <trends>365</trends>
273
+ <history>7</history>
274
+ <trends>730</trends>
257
275
  <status>0</status>
258
276
  <value_type>0</value_type>
259
277
  <allowed_hosts/>
260
278
  <units/>
261
279
  <delta>1</delta>
280
+ <snmpv3_contextname/>
262
281
  <snmpv3_securityname/>
263
282
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
283
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
264
284
  <snmpv3_authpassphrase/>
285
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
265
286
  <snmpv3_privpassphrase/>
266
287
  <formula>1</formula>
267
288
  <delay_flex/>
@@ -291,16 +312,19 @@
291
312
  <snmp_oid/>
292
313
  <key>disk.io[{#DISK_DEVICE},read_time]</key>
293
314
  <delay>0</delay>
294
- <history>90</history>
295
- <trends>365</trends>
315
+ <history>7</history>
316
+ <trends>730</trends>
296
317
  <status>0</status>
297
318
  <value_type>0</value_type>
298
319
  <allowed_hosts/>
299
320
  <units>%</units>
300
321
  <delta>1</delta>
322
+ <snmpv3_contextname/>
301
323
  <snmpv3_securityname/>
302
324
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
325
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
303
326
  <snmpv3_authpassphrase/>
327
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
304
328
  <snmpv3_privpassphrase/>
305
329
  <formula>0.001</formula>
306
330
  <delay_flex/>
@@ -330,16 +354,19 @@
330
354
  <snmp_oid/>
331
355
  <key>disk.space[{#DISK_DEVICE},available]</key>
332
356
  <delay>0</delay>
333
- <history>90</history>
334
- <trends>365</trends>
357
+ <history>7</history>
358
+ <trends>730</trends>
335
359
  <status>0</status>
336
360
  <value_type>3</value_type>
337
361
  <allowed_hosts/>
338
362
  <units>B</units>
339
363
  <delta>0</delta>
364
+ <snmpv3_contextname/>
340
365
  <snmpv3_securityname/>
341
366
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
367
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
342
368
  <snmpv3_authpassphrase/>
369
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
343
370
  <snmpv3_privpassphrase/>
344
371
  <formula>1</formula>
345
372
  <delay_flex/>
@@ -369,16 +396,19 @@
369
396
  <snmp_oid/>
370
397
  <key>disk.space[{#DISK_DEVICE},size]</key>
371
398
  <delay>0</delay>
372
- <history>90</history>
373
- <trends>365</trends>
399
+ <history>7</history>
400
+ <trends>730</trends>
374
401
  <status>0</status>
375
402
  <value_type>3</value_type>
376
403
  <allowed_hosts/>
377
404
  <units>B</units>
378
405
  <delta>0</delta>
406
+ <snmpv3_contextname/>
379
407
  <snmpv3_securityname/>
380
408
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
409
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
381
410
  <snmpv3_authpassphrase/>
411
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
382
412
  <snmpv3_privpassphrase/>
383
413
  <formula>1</formula>
384
414
  <delay_flex/>
@@ -408,16 +438,19 @@
408
438
  <snmp_oid/>
409
439
  <key>disk.space[{#DISK_DEVICE},used]</key>
410
440
  <delay>0</delay>
411
- <history>90</history>
412
- <trends>365</trends>
441
+ <history>7</history>
442
+ <trends>730</trends>
413
443
  <status>0</status>
414
444
  <value_type>3</value_type>
415
445
  <allowed_hosts/>
416
446
  <units>B</units>
417
447
  <delta>0</delta>
448
+ <snmpv3_contextname/>
418
449
  <snmpv3_securityname/>
419
450
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
451
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
420
452
  <snmpv3_authpassphrase/>
453
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
421
454
  <snmpv3_privpassphrase/>
422
455
  <formula>1</formula>
423
456
  <delay_flex/>
@@ -447,16 +480,19 @@
447
480
  <snmp_oid/>
448
481
  <key>disk.io[{#DISK_DEVICE},write_sector]</key>
449
482
  <delay>0</delay>
450
- <history>90</history>
451
- <trends>365</trends>
483
+ <history>7</history>
484
+ <trends>730</trends>
452
485
  <status>0</status>
453
486
  <value_type>0</value_type>
454
487
  <allowed_hosts/>
455
488
  <units>Bps</units>
456
489
  <delta>1</delta>
490
+ <snmpv3_contextname/>
457
491
  <snmpv3_securityname/>
458
492
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
493
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
459
494
  <snmpv3_authpassphrase/>
495
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
460
496
  <snmpv3_privpassphrase/>
461
497
  <formula>512</formula>
462
498
  <delay_flex/>
@@ -486,16 +522,19 @@
486
522
  <snmp_oid/>
487
523
  <key>disk.io[{#DISK_DEVICE},write_merged]</key>
488
524
  <delay>0</delay>
489
- <history>90</history>
490
- <trends>365</trends>
525
+ <history>7</history>
526
+ <trends>730</trends>
491
527
  <status>0</status>
492
528
  <value_type>0</value_type>
493
529
  <allowed_hosts/>
494
530
  <units/>
495
531
  <delta>1</delta>
532
+ <snmpv3_contextname/>
496
533
  <snmpv3_securityname/>
497
534
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
535
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
498
536
  <snmpv3_authpassphrase/>
537
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
499
538
  <snmpv3_privpassphrase/>
500
539
  <formula>1</formula>
501
540
  <delay_flex/>
@@ -525,16 +564,19 @@
525
564
  <snmp_oid/>
526
565
  <key>disk.io[{#DISK_DEVICE},write_ok]</key>
527
566
  <delay>0</delay>
528
- <history>90</history>
529
- <trends>365</trends>
567
+ <history>7</history>
568
+ <trends>730</trends>
530
569
  <status>0</status>
531
570
  <value_type>0</value_type>
532
571
  <allowed_hosts/>
533
572
  <units/>
534
573
  <delta>1</delta>
574
+ <snmpv3_contextname/>
535
575
  <snmpv3_securityname/>
536
576
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
577
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
537
578
  <snmpv3_authpassphrase/>
579
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
538
580
  <snmpv3_privpassphrase/>
539
581
  <formula>1</formula>
540
582
  <delay_flex/>
@@ -564,16 +606,19 @@
564
606
  <snmp_oid/>
565
607
  <key>disk.io[{#DISK_DEVICE},write_time]</key>
566
608
  <delay>0</delay>
567
- <history>90</history>
568
- <trends>365</trends>
609
+ <history>7</history>
610
+ <trends>730</trends>
569
611
  <status>0</status>
570
612
  <value_type>0</value_type>
571
613
  <allowed_hosts/>
572
614
  <units>%</units>
573
615
  <delta>1</delta>
616
+ <snmpv3_contextname/>
574
617
  <snmpv3_securityname/>
575
618
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
619
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
576
620
  <snmpv3_authpassphrase/>
621
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
577
622
  <snmpv3_privpassphrase/>
578
623
  <formula>0.001</formula>
579
624
  <delay_flex/>
@@ -947,6 +992,7 @@
947
992
  </graph_items>
948
993
  </graph_prototype>
949
994
  </graph_prototypes>
995
+ <host_prototypes/>
950
996
  </discovery_rule>
951
997
  </discovery_rules>
952
998
  <macros/>
@@ -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>2013-10-01T06:30:21Z</date>
4
+ <date>2014-01-02T03:32:17Z</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>load[one]</key>
32
32
  <delay>0</delay>
33
- <history>90</history>
34
- <trends>365</trends>
33
+ <history>7</history>
34
+ <trends>730</trends>
35
35
  <status>0</status>
36
36
  <value_type>0</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>load[five]</key>
71
74
  <delay>0</delay>
72
- <history>90</history>
73
- <trends>365</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>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/>
@@ -108,16 +114,19 @@
108
114
  <snmp_oid/>
109
115
  <key>load[fifteen]</key>
110
116
  <delay>0</delay>
111
- <history>90</history>
112
- <trends>365</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>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/>
@@ -147,16 +156,19 @@
147
156
  <snmp_oid/>
148
157
  <key>load[procs]</key>
149
158
  <delay>0</delay>
150
- <history>90</history>
151
- <trends>365</trends>
159
+ <history>7</history>
160
+ <trends>730</trends>
152
161
  <status>0</status>
153
162
  <value_type>3</value_type>
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/>