zabbix-ruby-client 0.0.23 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.travis.yml +2 -1
- data/CHANGELOG.md +64 -80
- data/Gemfile.lock +63 -0
- data/README.md +5 -4
- data/Rakefile +5 -6
- data/bin/zrc +0 -1
- data/lib/zabbix-ruby-client/cli.rb +17 -27
- data/lib/zabbix-ruby-client/plugins/disk.rb +9 -5
- data/lib/zabbix-ruby-client/plugins/rabbitmq.rb +29 -19
- data/lib/zabbix-ruby-client/version.rb +1 -1
- data/zabbix-ruby-client.gemspec +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a00e6c08a6c633012028308f6fb481d0bd140e82
|
|
4
|
+
data.tar.gz: 0305423334d9fd419226e89d3a9b0baebed4cf00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a69549770427fc33324aeb4ccfb52a61dff7df69609befde900b076cdcd3aac585fa8084c7a96893a2a1222ab6f9779dd6265e397003952d0f91c719e46f0cd3
|
|
7
|
+
data.tar.gz: aa84d40d45845214813d9b14de1b381b74b9b9b2ec1c4d564975efa58ad5d4d3471dc04023460f28c10ed5bdc2253126d3cf9bc313743dc46b733ad7f44321a3
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,122 +1,106 @@
|
|
|
1
1
|
Zabbbix Ruby Client Changelog
|
|
2
2
|
-----------------------------
|
|
3
3
|
|
|
4
|
-
### v0.0
|
|
4
|
+
### v0.1.0 - 2014-08-22
|
|
5
|
+
- remove bundler dependency
|
|
6
|
+
- minor code refactoring
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
### v0.0.23 - 2014-08-09
|
|
9
|
+
- oops, buggy mysqlcommand fixed
|
|
7
10
|
|
|
8
11
|
### v0.0.22 - 2014-08-09
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* added mysqlcommand plugin for graphing arbitrary mysql commands
|
|
12
|
+
- added RabbitMQ plugin
|
|
13
|
+
- added mysqlcommand plugin for graphing arbitrary mysql commands
|
|
12
14
|
|
|
13
15
|
### v0.0.21 - 2014-08-01
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* add cisco template
|
|
16
|
+
- fix zabbix_sender return code 256
|
|
17
|
+
- update all templates with shorter history
|
|
18
|
+
- added a simple openvpn plugin + template
|
|
19
|
+
- small fix on network template
|
|
20
|
+
- improved postgres template
|
|
21
|
+
- add cisco template
|
|
21
22
|
|
|
22
23
|
### v0.0.20 - 2013-12-25
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* more debugging info when loglevel: debug
|
|
24
|
+
- fix network plugin
|
|
25
|
+
- fix new return code handling from zabbix_sender 2.2.x
|
|
26
|
+
- more debugging info when loglevel: debug
|
|
27
27
|
|
|
28
28
|
### v0.0.19 - 2013-12-24
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* fix on the disk plugin handling of third argument
|
|
29
|
+
- fix on logger when zabbix-sender command fails
|
|
30
|
+
- fix on the disk plugin handling of third argument
|
|
32
31
|
|
|
33
32
|
### v0.0.18 - 2013-12-13
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
* more tests and coverage
|
|
33
|
+
- total fix on CPU usage plugin
|
|
34
|
+
- added a postgres plugin (per database)
|
|
35
|
+
- refactoring of plugins
|
|
36
|
+
- fixed typo on count of start processes in apache plugin
|
|
37
|
+
- made plugin collection optional, so you can have a plugin for only discovery
|
|
38
|
+
- more tests and coverage
|
|
41
39
|
|
|
42
40
|
### v0.0.17 - 2013-10-31
|
|
43
|
-
|
|
44
|
-
* bugfix on requires
|
|
41
|
+
- bugfix on requires
|
|
45
42
|
|
|
46
43
|
### v0.0.16 - 2013-10-31
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
* adding travis and coverall to stimulate testing, also added gemnasium
|
|
44
|
+
- _if you have custom plugins_ the class ZabbixRubyClient is now a module just for namespacing, update your code!
|
|
45
|
+
- fix the logger
|
|
46
|
+
- refactoring and more tests
|
|
47
|
+
- adding travis and coverall to stimulate testing, also added gemnasium
|
|
52
48
|
|
|
53
49
|
### v0.0.15 - 2013-10-23
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
* improve cpu and disk triggers with dependencies (but waiting for ZBXNEXT-1229)
|
|
50
|
+
- prototype of a way to keep data when sending fails and sending it again at next iteration
|
|
51
|
+
- refactoring in several classes for better testability and nicer code
|
|
52
|
+
- add port in the zabbix-sender command that was forgotten there
|
|
53
|
+
- fix disk template alarm subject
|
|
54
|
+
- fix datafile naming for when you get different task files ran at same time
|
|
55
|
+
- improve cpu and disk triggers with dependencies (but waiting for ZBXNEXT-1229)
|
|
61
56
|
|
|
62
57
|
### v0.0.14 - 2013-10-14
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* added a redis plugin and template
|
|
58
|
+
- better explanation about how to make custom plugins
|
|
59
|
+
- note on the readme about security and ssh tunnels
|
|
60
|
+
- added a redis plugin and template
|
|
67
61
|
|
|
68
62
|
### v0.0.13 - 2013-10-08
|
|
69
|
-
|
|
70
|
-
* added an nginx plugin
|
|
63
|
+
- added an nginx plugin
|
|
71
64
|
|
|
72
65
|
### v0.0.12 - 2013-10-07
|
|
73
|
-
|
|
74
|
-
* bugfix on memory calculation
|
|
66
|
+
- bugfix on memory calculation
|
|
75
67
|
|
|
76
68
|
### v0.0.11 - 2013-10-07
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* added an option in disk plugin in case it's a loop device, then using args [ "", /tmp, "loop0" ] in config
|
|
69
|
+
- fix on the memory statistiics collection
|
|
70
|
+
- added a who plugin, but not happy about it. I need to have a use of the API to reate graphs from the client, to list who is logged in. Sounds like an interesting way to get processes list up there too.
|
|
71
|
+
- added an option in disk plugin in case it's a loop device, then using args [ "", /tmp, "loop0" ] in config
|
|
81
72
|
|
|
82
73
|
### v0.0.10 - 2013-10-04
|
|
83
|
-
|
|
84
|
-
* added a mysql plugin (basic version, more will come on that one)
|
|
74
|
+
- added a mysql plugin (basic version, more will come on that one)
|
|
85
75
|
|
|
86
76
|
### v0.0.9 - 2013-10-02
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
* added an apt plugin to get the pending apt upgrades
|
|
77
|
+
- split configuration to have several upload frequencies
|
|
78
|
+
- added a -t option for specifying the list of plugins to run, default minutely.yml
|
|
79
|
+
- handled compatibility with previous configuration that includes list of plugins in config.yml
|
|
80
|
+
- added a sysinfo plugin for populating the hosts informations, including arbitrary information declared as plugin arguments
|
|
81
|
+
- started a mysql plugin but this one is not ready yet
|
|
82
|
+
- added an apt plugin to get the pending apt upgrades
|
|
94
83
|
|
|
95
84
|
### v0.0.8 - 2013-09-28
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
* various fixes in zabbix templates for disk io
|
|
85
|
+
- adding load stats
|
|
86
|
+
- fix calcuation of percent of cpu used
|
|
87
|
+
- fix disk plugin to use proc rather than iostat
|
|
88
|
+
- various fixes in zabbix templates for disk io
|
|
101
89
|
|
|
102
90
|
### v0.0.7 - 2013-09-25
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
* various small templates fixes
|
|
91
|
+
- fix network plugin
|
|
92
|
+
- added disk plugin and tepmlate
|
|
93
|
+
- various small templates fixes
|
|
107
94
|
|
|
108
95
|
### v0.0.6 - 2013-09-25
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
* change memory reports to Bytes rather than KBytes
|
|
96
|
+
- added a discover method in plugin for pushed discoveries on network interfaces
|
|
97
|
+
- change your config file, args are now arrays for plugins
|
|
98
|
+
- change memory reports to Bytes rather than KBytes
|
|
113
99
|
|
|
114
100
|
### v0.0.5 - 2013-09-23
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
* adding a changelog
|
|
101
|
+
- fix generated gemfile
|
|
102
|
+
- fixes on readme
|
|
103
|
+
- adding a changelog
|
|
119
104
|
|
|
120
105
|
### v0.0.4 - 2013-09-21
|
|
121
|
-
|
|
122
|
-
* initial release
|
|
106
|
+
- initial release
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
zabbix-ruby-client (0.1.0)
|
|
5
|
+
thor
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
addressable (2.3.6)
|
|
11
|
+
coveralls (0.7.1)
|
|
12
|
+
multi_json (~> 1.3)
|
|
13
|
+
rest-client
|
|
14
|
+
simplecov (>= 0.7)
|
|
15
|
+
term-ansicolor
|
|
16
|
+
thor
|
|
17
|
+
crack (0.4.2)
|
|
18
|
+
safe_yaml (~> 1.0.0)
|
|
19
|
+
diff-lcs (1.2.5)
|
|
20
|
+
docile (1.1.5)
|
|
21
|
+
mime-types (2.3)
|
|
22
|
+
multi_json (1.10.1)
|
|
23
|
+
netrc (0.7.7)
|
|
24
|
+
rake (10.3.2)
|
|
25
|
+
rest-client (1.7.2)
|
|
26
|
+
mime-types (>= 1.16, < 3.0)
|
|
27
|
+
netrc (~> 0.7)
|
|
28
|
+
rspec (3.0.0)
|
|
29
|
+
rspec-core (~> 3.0.0)
|
|
30
|
+
rspec-expectations (~> 3.0.0)
|
|
31
|
+
rspec-mocks (~> 3.0.0)
|
|
32
|
+
rspec-core (3.0.4)
|
|
33
|
+
rspec-support (~> 3.0.0)
|
|
34
|
+
rspec-expectations (3.0.4)
|
|
35
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
36
|
+
rspec-support (~> 3.0.0)
|
|
37
|
+
rspec-mocks (3.0.4)
|
|
38
|
+
rspec-support (~> 3.0.0)
|
|
39
|
+
rspec-support (3.0.4)
|
|
40
|
+
safe_yaml (1.0.3)
|
|
41
|
+
simplecov (0.9.0)
|
|
42
|
+
docile (~> 1.1.0)
|
|
43
|
+
multi_json
|
|
44
|
+
simplecov-html (~> 0.8.0)
|
|
45
|
+
simplecov-html (0.8.0)
|
|
46
|
+
term-ansicolor (1.3.0)
|
|
47
|
+
tins (~> 1.0)
|
|
48
|
+
thor (0.19.1)
|
|
49
|
+
tins (1.3.2)
|
|
50
|
+
webmock (1.18.0)
|
|
51
|
+
addressable (>= 2.3.6)
|
|
52
|
+
crack (>= 0.3.2)
|
|
53
|
+
|
|
54
|
+
PLATFORMS
|
|
55
|
+
ruby
|
|
56
|
+
|
|
57
|
+
DEPENDENCIES
|
|
58
|
+
bundler (~> 1.3)
|
|
59
|
+
coveralls
|
|
60
|
+
rake
|
|
61
|
+
rspec (~> 3.0)
|
|
62
|
+
webmock
|
|
63
|
+
zabbix-ruby-client!
|
data/README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Zabbix Ruby Client
|
|
2
2
|
====================
|
|
3
3
|
|
|
4
|
-
[](http://rubygems.org/gems/zabbix-ruby-client)
|
|
5
|
+
[](https://rubygems.org/gems/zabbix-ruby-client)
|
|
6
|
+
[](https://travis-ci.org/eduvo/zabbix-ruby-client)
|
|
7
|
+
[](https://coveralls.io/r/eduvo/zabbix-ruby-client?branch=master)
|
|
7
8
|
[](https://gemnasium.com/eduvo/zabbix-ruby-client)
|
|
8
|
-
[](https://codeclimate.com/github/eduvo/zabbix-ruby-client)
|
|
9
10
|
|
|
10
11
|
----
|
|
11
12
|
|
data/Rakefile
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env rake
|
|
2
|
-
begin
|
|
3
|
-
|
|
4
|
-
rescue LoadError
|
|
5
|
-
|
|
6
|
-
end
|
|
7
|
-
require 'bundler/setup'
|
|
2
|
+
# begin
|
|
3
|
+
# require 'bundler/setup'
|
|
4
|
+
# rescue LoadError
|
|
5
|
+
# puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
6
|
+
# end
|
|
8
7
|
require "bundler/gem_tasks"
|
|
9
8
|
require "rake/testtask"
|
|
10
9
|
require "rspec/core/rake_task" # RSpec 2.0
|
data/bin/zrc
CHANGED
|
@@ -29,38 +29,28 @@ module ZabbixRubyClient
|
|
|
29
29
|
|
|
30
30
|
desc "show", "Displays in console what are the collected data ready to be sent"
|
|
31
31
|
def show
|
|
32
|
-
|
|
33
|
-
Bundler.require
|
|
34
|
-
rescue Bundler::GemfileNotFound
|
|
35
|
-
say "No Gemfile found", :red
|
|
36
|
-
abort
|
|
37
|
-
end
|
|
38
|
-
config = YAML::load_file(options[:configfile])
|
|
39
|
-
if File.exists? options[:taskfile]
|
|
40
|
-
tasks = YAML::load_file(options[:taskfile])
|
|
41
|
-
else
|
|
42
|
-
tasks = config['plugins']
|
|
43
|
-
end
|
|
44
|
-
config['server'] = File.basename(options[:configfile],'.yml')
|
|
45
|
-
config['taskfile'] = File.basename(options[:taskfile],'.yml')
|
|
46
|
-
zrc = ZabbixRubyClient::Runner.new(config, tasks)
|
|
47
|
-
zrc.collect
|
|
48
|
-
zrc.show
|
|
32
|
+
collect(options).show
|
|
49
33
|
end
|
|
50
34
|
|
|
51
35
|
desc "upload", "Collects and sends data to the zabbix server"
|
|
52
36
|
def upload
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
37
|
+
collect(options).upload
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
no_commands do
|
|
41
|
+
def collect(options)
|
|
42
|
+
config = YAML::load_file(options[:configfile])
|
|
43
|
+
if File.exists? options[:taskfile]
|
|
44
|
+
tasks = YAML::load_file(options[:taskfile])
|
|
45
|
+
else
|
|
46
|
+
tasks = config['plugins']
|
|
47
|
+
end
|
|
48
|
+
config['server'] = File.basename(options[:configfile],'.yml')
|
|
49
|
+
config['taskfile'] = File.basename(options[:taskfile],'.yml')
|
|
50
|
+
zrc = ZabbixRubyClient::Runner.new(config, tasks)
|
|
51
|
+
zrc.collect
|
|
52
|
+
zrc
|
|
58
53
|
end
|
|
59
|
-
config['server'] = File.basename(options[:configfile],'.yml')
|
|
60
|
-
config['taskfile'] = File.basename(options[:taskfile],'.yml')
|
|
61
|
-
zrc = ZabbixRubyClient::Runner.new(config, tasks)
|
|
62
|
-
zrc.collect
|
|
63
|
-
zrc.upload
|
|
64
54
|
end
|
|
65
55
|
|
|
66
56
|
end
|
|
@@ -19,9 +19,9 @@ module ZabbixRubyClient
|
|
|
19
19
|
if info
|
|
20
20
|
time = Time.now.to_i
|
|
21
21
|
back = []
|
|
22
|
-
back << "#{host} disk.space[#{mapped},size] #{time} #{info[1]
|
|
23
|
-
back << "#{host} disk.space[#{mapped},used] #{time} #{info[2]
|
|
24
|
-
back << "#{host} disk.space[#{mapped},available] #{time} #{info[3]
|
|
22
|
+
back << "#{host} disk.space[#{mapped},size] #{time} #{to_m(info[1])}"
|
|
23
|
+
back << "#{host} disk.space[#{mapped},used] #{time} #{to_m(info[2])}"
|
|
24
|
+
back << "#{host} disk.space[#{mapped},available] #{time} #{to_m(info[3])}"
|
|
25
25
|
back << "#{host} disk.space[#{mapped},percent_used] #{time} #{info[4].gsub(/%/,'')}"
|
|
26
26
|
back << "#{host} disk.io[#{mapped},read_ok] #{time} #{info[9]}"
|
|
27
27
|
back << "#{host} disk.io[#{mapped},read_merged] #{time} #{info[10]}"
|
|
@@ -41,13 +41,17 @@ module ZabbixRubyClient
|
|
|
41
41
|
device = args[0]
|
|
42
42
|
mount = args[1]
|
|
43
43
|
mapped = args[2] || device
|
|
44
|
-
[ "disk.dev.discovery",
|
|
45
|
-
"{\"{#DISK_DEVICE}\": \"#{mapped}\", \"{#DISK_MOUNT}\": \"#{mount}\"}"
|
|
44
|
+
[ "disk.dev.discovery",
|
|
45
|
+
"{\"{#DISK_DEVICE}\": \"#{mapped}\", \"{#DISK_MOUNT}\": \"#{mount}\"}"
|
|
46
46
|
]
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
private
|
|
50
50
|
|
|
51
|
+
def to_m(s)
|
|
52
|
+
s.to_i * 1000
|
|
53
|
+
end
|
|
54
|
+
|
|
51
55
|
def get_info(disk, device)
|
|
52
56
|
info = diskinfo(device)
|
|
53
57
|
if info
|
|
@@ -18,27 +18,37 @@ module ZabbixRubyClient
|
|
|
18
18
|
back = []
|
|
19
19
|
if info
|
|
20
20
|
time = Time.now.to_i
|
|
21
|
+
back << "#{host} rabbitmq.version #{time} #{info['rabbitmq_version']}"
|
|
21
22
|
back << "#{host} rabbitmq.erlang.version #{time} #{info['erlang_version']}"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
back << "#{host} rabbitmq.message.
|
|
27
|
-
back << "#{host} rabbitmq.message.
|
|
28
|
-
back << "#{host} rabbitmq.message.
|
|
29
|
-
back << "#{host} rabbitmq.message.
|
|
30
|
-
back << "#{host} rabbitmq.message.
|
|
31
|
-
back << "#{host} rabbitmq.message.
|
|
32
|
-
back << "#{host} rabbitmq.
|
|
33
|
-
back << "#{host} rabbitmq.
|
|
34
|
-
back << "#{host} rabbitmq.
|
|
35
|
-
back << "#{host} rabbitmq.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
%w(ack deliver deliver_get publish redeliver).each do |i|
|
|
24
|
+
back << "#{host} rabbitmq.message.#{i} #{time} #{info['message_stats'][i]}"
|
|
25
|
+
back << "#{host} rabbitmq.message.#{i}.rate #{time} #{info['message_stats']["#{i}_details"]['rate'].round}"
|
|
26
|
+
end
|
|
27
|
+
# back << "#{host} rabbitmq.message.ack #{time} #{info['message_stats']['ack']}"
|
|
28
|
+
# back << "#{host} rabbitmq.message.ack.rate #{time} #{info['message_stats']['ack_details']['rate'].round}"
|
|
29
|
+
# back << "#{host} rabbitmq.message.deliver #{time} #{info['message_stats']['deliver']}"
|
|
30
|
+
# back << "#{host} rabbitmq.message.deliver.rate #{time} #{info['message_stats']['deliver_details']['rate'].round}"
|
|
31
|
+
# back << "#{host} rabbitmq.message.deliver_get #{time} #{info['message_stats']['deliver_get']}"
|
|
32
|
+
# back << "#{host} rabbitmq.message.deliver_get.rate #{time} #{info['message_stats']['deliver_get_details']['rate'].round}"
|
|
33
|
+
# back << "#{host} rabbitmq.message.publish #{time} #{info['message_stats']['publish']}"
|
|
34
|
+
# back << "#{host} rabbitmq.message.publish.rate #{time} #{info['message_stats']['publish_details']['rate'].round}"
|
|
35
|
+
# back << "#{host} rabbitmq.message.redeliver #{time} #{info['message_stats']['redeliver']}"
|
|
36
|
+
# back << "#{host} rabbitmq.message.redeliver.rate #{time} #{info['message_stats']['redeliver_details']['rate'].round}"
|
|
37
|
+
%w(messages messages_ready messages_unacknowledged).each do |i|
|
|
38
|
+
back << "#{host} rabbitmq.queue.total.#{i} #{time} #{info['queue_totals'][i]}"
|
|
39
|
+
end
|
|
40
|
+
# back << "#{host} rabbitmq.queue.total.messages #{time} #{info['queue_totals']['messages']}"
|
|
41
|
+
# back << "#{host} rabbitmq.queue.total.messages_ready #{time} #{info['queue_totals']['messages_ready']}"
|
|
42
|
+
# back << "#{host} rabbitmq.queue.total.messages_unacknowledged #{time} #{info['queue_totals']['messages_unacknowledged']}"
|
|
43
|
+
%w(channels connections consumers exchanges queues).each do |i|
|
|
44
|
+
back << "#{host} rabbitmq.total.#{i} #{time} #{info['object_totals'][i]}"
|
|
45
|
+
end
|
|
46
|
+
# back << "#{host} rabbitmq.total.channels #{time} #{info['object_totals']['channels']}"
|
|
47
|
+
# back << "#{host} rabbitmq.total.connections #{time} #{info['object_totals']['connections']}"
|
|
48
|
+
# back << "#{host} rabbitmq.total.consumers #{time} #{info['object_totals']['consumers']}"
|
|
49
|
+
# back << "#{host} rabbitmq.total.exchanges #{time} #{info['object_totals']['exchanges']}"
|
|
50
|
+
# back << "#{host} rabbitmq.total.queues #{time} #{info['object_totals']['queues']}"
|
|
39
51
|
back << "#{host} rabbitmq.total.listeners #{time} #{info['listeners'].count}"
|
|
40
|
-
back << "#{host} rabbitmq.total.queues #{time} #{info['object_totals']['queues']}"
|
|
41
|
-
back << "#{host} rabbitmq.version #{time} #{info['rabbitmq_version']}"
|
|
42
52
|
end
|
|
43
53
|
back
|
|
44
54
|
end
|
data/zabbix-ruby-client.gemspec
CHANGED
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
|
24
24
|
spec.add_development_dependency "rake"
|
|
25
|
-
spec.add_development_dependency "rspec"
|
|
25
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
|
26
26
|
spec.add_development_dependency "webmock"
|
|
27
27
|
spec.add_development_dependency "coveralls"
|
|
28
28
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zabbix-ruby-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mose
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-08-
|
|
11
|
+
date: 2014-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -56,16 +56,16 @@ dependencies:
|
|
|
56
56
|
name: rspec
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
61
|
+
version: '3.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
66
|
+
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0'
|
|
68
|
+
version: '3.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: webmock
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -108,6 +108,7 @@ files:
|
|
|
108
108
|
- ".travis.yml"
|
|
109
109
|
- CHANGELOG.md
|
|
110
110
|
- Gemfile
|
|
111
|
+
- Gemfile.lock
|
|
111
112
|
- LICENSE.txt
|
|
112
113
|
- README.md
|
|
113
114
|
- Rakefile
|