zabbixapi 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +1 -1
- data/lib/zabbixapi/basic/basic_init.rb +0 -4
- data/lib/zabbixapi/basic/basic_logic.rb +3 -3
- data/lib/zabbixapi/classes/graphs.rb +0 -4
- data/lib/zabbixapi/classes/hostgroups.rb +0 -4
- data/lib/zabbixapi/classes/hosts.rb +0 -4
- data/lib/zabbixapi/classes/items.rb +0 -4
- data/lib/zabbixapi/classes/mediatypes.rb +0 -4
- data/lib/zabbixapi/classes/proxies.rb +0 -4
- data/lib/zabbixapi/classes/screens.rb +2 -2
- data/lib/zabbixapi/classes/templates.rb +0 -4
- data/lib/zabbixapi/classes/triggers.rb +0 -4
- data/lib/zabbixapi/classes/usergroups.rb +0 -4
- data/lib/zabbixapi/classes/usermacros.rb +0 -4
- data/lib/zabbixapi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2734200ca0b6c573e6830ef2123d7ab8efb07095
|
4
|
+
data.tar.gz: 55c0ba98d8d8465c97006ac5718246f25293c3ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b95307bb8ebee4a7625f4085fbc6c8db28dc7d84080ff0ab7d3448219c5914fd87e99ca413fe692fd7b272c22f6c81d63ec29b1f2dd580485a49e5f5703793c
|
7
|
+
data.tar.gz: 213f659237904eec7adff7c01f6b55e6cd5a88f1ad7937606789ebaf967b800941bd3b926d241223837d455cba659686c19e486b590fe918ce95068a493027d2
|
data/.travis.yml
CHANGED
@@ -3,7 +3,7 @@ language:
|
|
3
3
|
rvm:
|
4
4
|
- 1.9.3
|
5
5
|
- 2.0.0
|
6
|
-
- 2.1
|
6
|
+
- 2.1
|
7
7
|
before_script:
|
8
8
|
- wget -qO - http://obs.express42.com/project_root:/zabbix2.4/precise/Release.key | sudo apt-key add -
|
9
9
|
- echo "deb http://obs.express42.com/project_root:/zabbix2.4/precise/ ./" | sudo tee /etc/apt/sources.list.d/zabbix.list
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ class ZabbixApi
|
|
5
5
|
log "[DEBUG] Call create with parametrs: #{data.inspect}"
|
6
6
|
|
7
7
|
data_with_default = default_options.empty? ? data : merge_params(default_options, data)
|
8
|
-
data_create =
|
8
|
+
data_create = [data_with_default]
|
9
9
|
result = @client.api_request(:method => "#{method_name}.create", :params => data_create)
|
10
10
|
parse_keys result
|
11
11
|
end
|
@@ -13,7 +13,7 @@ class ZabbixApi
|
|
13
13
|
def delete(data)
|
14
14
|
log "[DEBUG] Call delete with parametrs: #{data.inspect}"
|
15
15
|
|
16
|
-
data_delete =
|
16
|
+
data_delete = [data]
|
17
17
|
result = @client.api_request(:method => "#{method_name}.delete", :params => data_delete)
|
18
18
|
parse_keys result
|
19
19
|
end
|
@@ -38,7 +38,7 @@ class ZabbixApi
|
|
38
38
|
log "[DEBUG] Equal keys #{dump} and #{data}, skip update"
|
39
39
|
item_id
|
40
40
|
else
|
41
|
-
data_update =
|
41
|
+
data_update = [data]
|
42
42
|
result = @client.api_request(:method => "#{method_name}.update", :params => data_update)
|
43
43
|
parse_keys result
|
44
44
|
end
|
@@ -40,8 +40,8 @@ class ZabbixApi
|
|
40
40
|
hsize = data[:hsize] || 3
|
41
41
|
valign = data[:valign] || 2
|
42
42
|
halign = data[:halign] || 2
|
43
|
-
rowspan = data[:rowspan] ||
|
44
|
-
colspan = data[:colspan] ||
|
43
|
+
rowspan = data[:rowspan] || 1
|
44
|
+
colspan = data[:colspan] || 1
|
45
45
|
height = data[:height] || 320 # default 320
|
46
46
|
width = data[:width] || 200 # default 200
|
47
47
|
vsize = data[:vsize] || [1, (graphids.size/hsize).to_i].max
|
data/lib/zabbixapi/version.rb
CHANGED