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
@@ -0,0 +1,312 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <zabbix_export>
3
+ <version>2.0</version>
4
+ <date>2014-07-30T17:39:40Z</date>
5
+ <groups>
6
+ <group>
7
+ <name>3. Service VPN</name>
8
+ </group>
9
+ </groups>
10
+ <templates>
11
+ <template>
12
+ <template>Ovpn</template>
13
+ <name>Ovpn (zrc)</name>
14
+ <groups>
15
+ <group>
16
+ <name>3. Service VPN</name>
17
+ </group>
18
+ </groups>
19
+ <applications>
20
+ <application>
21
+ <name>Openvpn</name>
22
+ </application>
23
+ </applications>
24
+ <items>
25
+ <item>
26
+ <name>Ovpn count</name>
27
+ <type>2</type>
28
+ <snmp_community/>
29
+ <multiplier>0</multiplier>
30
+ <snmp_oid/>
31
+ <key>ovpn[count]</key>
32
+ <delay>0</delay>
33
+ <history>7</history>
34
+ <trends>730</trends>
35
+ <status>0</status>
36
+ <value_type>3</value_type>
37
+ <allowed_hosts/>
38
+ <units/>
39
+ <delta>0</delta>
40
+ <snmpv3_contextname/>
41
+ <snmpv3_securityname/>
42
+ <snmpv3_securitylevel>0</snmpv3_securitylevel>
43
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
44
+ <snmpv3_authpassphrase/>
45
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
46
+ <snmpv3_privpassphrase/>
47
+ <formula>1</formula>
48
+ <delay_flex/>
49
+ <params/>
50
+ <ipmi_sensor/>
51
+ <data_type>0</data_type>
52
+ <authtype>0</authtype>
53
+ <username/>
54
+ <password/>
55
+ <publickey/>
56
+ <privatekey/>
57
+ <port/>
58
+ <description/>
59
+ <inventory_link>0</inventory_link>
60
+ <applications>
61
+ <application>
62
+ <name>Openvpn</name>
63
+ </application>
64
+ </applications>
65
+ <valuemap/>
66
+ </item>
67
+ <item>
68
+ <name>Ovpn Received</name>
69
+ <type>2</type>
70
+ <snmp_community/>
71
+ <multiplier>1</multiplier>
72
+ <snmp_oid/>
73
+ <key>ovpn[received]</key>
74
+ <delay>0</delay>
75
+ <history>7</history>
76
+ <trends>730</trends>
77
+ <status>0</status>
78
+ <value_type>0</value_type>
79
+ <allowed_hosts/>
80
+ <units>Bps</units>
81
+ <delta>1</delta>
82
+ <snmpv3_contextname/>
83
+ <snmpv3_securityname/>
84
+ <snmpv3_securitylevel>0</snmpv3_securitylevel>
85
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
86
+ <snmpv3_authpassphrase/>
87
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
88
+ <snmpv3_privpassphrase/>
89
+ <formula>-1</formula>
90
+ <delay_flex/>
91
+ <params/>
92
+ <ipmi_sensor/>
93
+ <data_type>0</data_type>
94
+ <authtype>0</authtype>
95
+ <username/>
96
+ <password/>
97
+ <publickey/>
98
+ <privatekey/>
99
+ <port/>
100
+ <description/>
101
+ <inventory_link>0</inventory_link>
102
+ <applications>
103
+ <application>
104
+ <name>Openvpn</name>
105
+ </application>
106
+ </applications>
107
+ <valuemap/>
108
+ </item>
109
+ <item>
110
+ <name>Ovpn sent</name>
111
+ <type>2</type>
112
+ <snmp_community/>
113
+ <multiplier>0</multiplier>
114
+ <snmp_oid/>
115
+ <key>ovpn[sent]</key>
116
+ <delay>0</delay>
117
+ <history>7</history>
118
+ <trends>730</trends>
119
+ <status>0</status>
120
+ <value_type>3</value_type>
121
+ <allowed_hosts/>
122
+ <units>Bps</units>
123
+ <delta>1</delta>
124
+ <snmpv3_contextname/>
125
+ <snmpv3_securityname/>
126
+ <snmpv3_securitylevel>0</snmpv3_securitylevel>
127
+ <snmpv3_authprotocol>0</snmpv3_authprotocol>
128
+ <snmpv3_authpassphrase/>
129
+ <snmpv3_privprotocol>0</snmpv3_privprotocol>
130
+ <snmpv3_privpassphrase/>
131
+ <formula>1</formula>
132
+ <delay_flex/>
133
+ <params/>
134
+ <ipmi_sensor/>
135
+ <data_type>0</data_type>
136
+ <authtype>0</authtype>
137
+ <username/>
138
+ <password/>
139
+ <publickey/>
140
+ <privatekey/>
141
+ <port/>
142
+ <description/>
143
+ <inventory_link>0</inventory_link>
144
+ <applications>
145
+ <application>
146
+ <name>Openvpn</name>
147
+ </application>
148
+ </applications>
149
+ <valuemap/>
150
+ </item>
151
+ </items>
152
+ <discovery_rules/>
153
+ <macros/>
154
+ <templates/>
155
+ <screens/>
156
+ </template>
157
+ </templates>
158
+ <graphs>
159
+ <graph>
160
+ <name>s. VPN count</name>
161
+ <width>900</width>
162
+ <height>200</height>
163
+ <yaxismin>0.0000</yaxismin>
164
+ <yaxismax>100.0000</yaxismax>
165
+ <show_work_period>1</show_work_period>
166
+ <show_triggers>1</show_triggers>
167
+ <type>0</type>
168
+ <show_legend>0</show_legend>
169
+ <show_3d>0</show_3d>
170
+ <percent_left>0.0000</percent_left>
171
+ <percent_right>0.0000</percent_right>
172
+ <ymin_type_1>1</ymin_type_1>
173
+ <ymax_type_1>0</ymax_type_1>
174
+ <ymin_item_1>0</ymin_item_1>
175
+ <ymax_item_1>0</ymax_item_1>
176
+ <graph_items>
177
+ <graph_item>
178
+ <sortorder>0</sortorder>
179
+ <drawtype>2</drawtype>
180
+ <color>6666FF</color>
181
+ <yaxisside>0</yaxisside>
182
+ <calc_fnc>7</calc_fnc>
183
+ <type>0</type>
184
+ <item>
185
+ <host>Ovpn</host>
186
+ <key>ovpn[count]</key>
187
+ </item>
188
+ </graph_item>
189
+ </graph_items>
190
+ </graph>
191
+ <graph>
192
+ <name>s. VPN traffic</name>
193
+ <width>900</width>
194
+ <height>200</height>
195
+ <yaxismin>0.0000</yaxismin>
196
+ <yaxismax>100.0000</yaxismax>
197
+ <show_work_period>1</show_work_period>
198
+ <show_triggers>1</show_triggers>
199
+ <type>0</type>
200
+ <show_legend>0</show_legend>
201
+ <show_3d>0</show_3d>
202
+ <percent_left>0.0000</percent_left>
203
+ <percent_right>0.0000</percent_right>
204
+ <ymin_type_1>0</ymin_type_1>
205
+ <ymax_type_1>0</ymax_type_1>
206
+ <ymin_item_1>0</ymin_item_1>
207
+ <ymax_item_1>0</ymax_item_1>
208
+ <graph_items>
209
+ <graph_item>
210
+ <sortorder>0</sortorder>
211
+ <drawtype>0</drawtype>
212
+ <color>6666FF</color>
213
+ <yaxisside>0</yaxisside>
214
+ <calc_fnc>2</calc_fnc>
215
+ <type>0</type>
216
+ <item>
217
+ <host>Ovpn</host>
218
+ <key>ovpn[received]</key>
219
+ </item>
220
+ </graph_item>
221
+ <graph_item>
222
+ <sortorder>1</sortorder>
223
+ <drawtype>0</drawtype>
224
+ <color>009900</color>
225
+ <yaxisside>0</yaxisside>
226
+ <calc_fnc>2</calc_fnc>
227
+ <type>0</type>
228
+ <item>
229
+ <host>Ovpn</host>
230
+ <key>ovpn[sent]</key>
231
+ </item>
232
+ </graph_item>
233
+ </graph_items>
234
+ </graph>
235
+ <graph>
236
+ <name>VPN count</name>
237
+ <width>900</width>
238
+ <height>200</height>
239
+ <yaxismin>0.0000</yaxismin>
240
+ <yaxismax>100.0000</yaxismax>
241
+ <show_work_period>1</show_work_period>
242
+ <show_triggers>1</show_triggers>
243
+ <type>0</type>
244
+ <show_legend>1</show_legend>
245
+ <show_3d>0</show_3d>
246
+ <percent_left>0.0000</percent_left>
247
+ <percent_right>0.0000</percent_right>
248
+ <ymin_type_1>1</ymin_type_1>
249
+ <ymax_type_1>0</ymax_type_1>
250
+ <ymin_item_1>0</ymin_item_1>
251
+ <ymax_item_1>0</ymax_item_1>
252
+ <graph_items>
253
+ <graph_item>
254
+ <sortorder>0</sortorder>
255
+ <drawtype>2</drawtype>
256
+ <color>6666FF</color>
257
+ <yaxisside>0</yaxisside>
258
+ <calc_fnc>7</calc_fnc>
259
+ <type>0</type>
260
+ <item>
261
+ <host>Ovpn</host>
262
+ <key>ovpn[count]</key>
263
+ </item>
264
+ </graph_item>
265
+ </graph_items>
266
+ </graph>
267
+ <graph>
268
+ <name>VPN traffic</name>
269
+ <width>900</width>
270
+ <height>200</height>
271
+ <yaxismin>0.0000</yaxismin>
272
+ <yaxismax>100.0000</yaxismax>
273
+ <show_work_period>1</show_work_period>
274
+ <show_triggers>1</show_triggers>
275
+ <type>0</type>
276
+ <show_legend>1</show_legend>
277
+ <show_3d>0</show_3d>
278
+ <percent_left>0.0000</percent_left>
279
+ <percent_right>0.0000</percent_right>
280
+ <ymin_type_1>0</ymin_type_1>
281
+ <ymax_type_1>0</ymax_type_1>
282
+ <ymin_item_1>0</ymin_item_1>
283
+ <ymax_item_1>0</ymax_item_1>
284
+ <graph_items>
285
+ <graph_item>
286
+ <sortorder>0</sortorder>
287
+ <drawtype>0</drawtype>
288
+ <color>6666FF</color>
289
+ <yaxisside>0</yaxisside>
290
+ <calc_fnc>2</calc_fnc>
291
+ <type>0</type>
292
+ <item>
293
+ <host>Ovpn</host>
294
+ <key>ovpn[received]</key>
295
+ </item>
296
+ </graph_item>
297
+ <graph_item>
298
+ <sortorder>1</sortorder>
299
+ <drawtype>0</drawtype>
300
+ <color>009900</color>
301
+ <yaxisside>0</yaxisside>
302
+ <calc_fnc>2</calc_fnc>
303
+ <type>0</type>
304
+ <item>
305
+ <host>Ovpn</host>
306
+ <key>ovpn[sent]</key>
307
+ </item>
308
+ </graph_item>
309
+ </graph_items>
310
+ </graph>
311
+ </graphs>
312
+ </zabbix_export>