zabbixapi 0.5.2b2 → 0.5.2b3
Sign up to get free protection for your applications and to get access to all the features.
@@ -39,6 +39,11 @@ class ZabbixApi
|
|
39
39
|
applicationid = nil
|
40
40
|
result.each { |app| applicationid = app['applicationid'].to_i if app['name'] == data[:name] }
|
41
41
|
applicationid
|
42
|
+
if %w(127.0.0.1 localhost).include? host
|
43
|
+
host_cmd = ""
|
44
|
+
else
|
45
|
+
host_cmd = "-h #{host}"
|
46
|
+
end
|
42
47
|
end
|
43
48
|
|
44
49
|
end
|
data/lib/zabbixapi/version.rb
CHANGED
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.2b3
|
5
5
|
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -79,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
segments:
|
81
81
|
- 0
|
82
|
-
hash:
|
82
|
+
hash: -3164288809874027028
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|