zabbixapi 0.5.1b5 → 0.5.1b6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zabbixapi/basic/basic_logic.rb +1 -1
- data/lib/zabbixapi/version.rb +1 -1
- data/spec/localhost.rb +2 -2
- metadata +2 -2
@@ -23,7 +23,7 @@ class ZabbixApi
|
|
23
23
|
|
24
24
|
dump = {}
|
25
25
|
item_id = data[key.to_sym].to_i
|
26
|
-
get_full_data(data).each do |item|
|
26
|
+
get_full_data(indentify.to_sym => data[indentify.to_sym]).each do |item|
|
27
27
|
dump = symbolize_keys(item) if item[key].to_i == data[key.to_sym].to_i
|
28
28
|
end
|
29
29
|
|
data/lib/zabbixapi/version.rb
CHANGED
data/spec/localhost.rb
CHANGED
@@ -11,7 +11,7 @@ zbx = ZabbixApi.connect(
|
|
11
11
|
:url => api_url,
|
12
12
|
:user => api_login,
|
13
13
|
:password => api_password,
|
14
|
-
:debug =>
|
14
|
+
:debug => true
|
15
15
|
)
|
16
16
|
|
17
17
|
hostgroup = "hostgroup______1"
|
@@ -139,7 +139,7 @@ describe ZabbixApi, "test_api" do
|
|
139
139
|
zbx.items.create_or_update(
|
140
140
|
:description => item,
|
141
141
|
:key_ => "proc.num[aaa]",
|
142
|
-
:
|
142
|
+
:status => 0,
|
143
143
|
:hostid => zbx.templates.get_id(:host => template),
|
144
144
|
:applications => [zbx.applications.get_id(:name => application)]
|
145
145
|
).should be_kind_of(Integer)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zabbixapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1b6
|
5
5
|
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
segments:
|
65
65
|
- 0
|
66
|
-
hash:
|
66
|
+
hash: 703548098159490039
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
none: false
|
69
69
|
requirements:
|