zabbix-ruby-client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a00e6c08a6c633012028308f6fb481d0bd140e82
4
- data.tar.gz: 0305423334d9fd419226e89d3a9b0baebed4cf00
3
+ metadata.gz: 19e7e397ae47c0fdb6dd18955e819231db4f3c76
4
+ data.tar.gz: 48ddc4da7f27c201f00462dfdd97e54a1d41fca9
5
5
  SHA512:
6
- metadata.gz: a69549770427fc33324aeb4ccfb52a61dff7df69609befde900b076cdcd3aac585fa8084c7a96893a2a1222ab6f9779dd6265e397003952d0f91c719e46f0cd3
7
- data.tar.gz: aa84d40d45845214813d9b14de1b381b74b9b9b2ec1c4d564975efa58ad5d4d3471dc04023460f28c10ed5bdc2253126d3cf9bc313743dc46b733ad7f44321a3
6
+ metadata.gz: 05d85cb4bfea25f1ee9e8e9cdc2f227776541af4daa38883e72c73ae55135a5cd25434d8b035399eae5f8370fb086fe63af91c12f7f27dd465c15147b33ddb7d
7
+ data.tar.gz: deac2a1dbc3eefc397a77ce15baba5287f67d7908c14353b209356159aa515671bbc1fdff496708beb0af1d8d97b9d9607a73eda2e06ed7173e62024dc0eaff3
@@ -1,6 +1,11 @@
1
1
  Zabbbix Ruby Client Changelog
2
2
  -----------------------------
3
3
 
4
+ ### v0.1.1 - 2014-08-28
5
+ - add link to the chef cookbook
6
+ - better backtrace error in case a plugin crashes
7
+ - fix case when rabbit don't have a stat for redeliver
8
+
4
9
  ### v0.1.0 - 2014-08-22
5
10
  - remove bundler dependency
6
11
  - minor code refactoring
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zabbix-ruby-client (0.1.0)
4
+ zabbix-ruby-client (0.1.1)
5
5
  thor
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,20 +1,24 @@
1
1
  Zabbix Ruby Client
2
2
  ====================
3
3
 
4
- [![Gem Version](https://img.shields.io/gem/v/zabbix-ruby-client.svg)](http://rubygems.org/gems/zabbix-ruby-client)
4
+ [![Gem Version](http://img.shields.io/gem/v/zabbix-ruby-client.svg)](http://rubygems.org/gems/zabbix-ruby-client)
5
5
  [![Downloads](http://img.shields.io/gem/dt/zabbix-ruby-client.svg)](https://rubygems.org/gems/zabbix-ruby-client)
6
- [![Build Status](https://img.shields.io/travis/eduvo/zabbix-ruby-client.svg)](https://travis-ci.org/eduvo/zabbix-ruby-client)
7
- [![Coverage Status](https://img.shields.io/coveralls/eduvo/zabbix-ruby-client.svg)](https://coveralls.io/r/eduvo/zabbix-ruby-client?branch=master)
6
+ [![Build Status](http://img.shields.io/travis/eduvo/zabbix-ruby-client.svg)](https://travis-ci.org/eduvo/zabbix-ruby-client)
7
+ [![Coverage Status](http://img.shields.io/coveralls/eduvo/zabbix-ruby-client.svg)](https://coveralls.io/r/eduvo/zabbix-ruby-client?branch=master)
8
8
  [![Dependency Status](https://gemnasium.com/eduvo/zabbix-ruby-client.png)](https://gemnasium.com/eduvo/zabbix-ruby-client)
9
- [![Code Climate](https://img.shields.io/codeclimate/github/eduvo/zabbix-ruby-client.svg)](https://codeclimate.com/github/eduvo/zabbix-ruby-client)
9
+ [![Code Climate](http://img.shields.io/codeclimate/github/eduvo/zabbix-ruby-client.svg)](https://codeclimate.com/github/eduvo/zabbix-ruby-client)
10
10
 
11
11
  ----
12
12
 
13
13
  This tool is designed to make easy to install zabbix reporter on monitored servers using zabbix-sender rather than zabbix-agent. It targets on monitoring mainly linux servers and is built on a plugin system so that you can decide what is going to be reported.
14
14
 
15
- The development is still in progress but it produces results and works in my case. Use at your own risk and read the code first. It is developed under ruby 2 but should work on 1.9.3 as well.
15
+ The development is still in progress but it produces results and works in production for Faria since fall 2013. Use at your own risk and read the code first. It works with ruby 1.9.3 to 2.1.2.
16
16
 
17
- Check the [Changelog](CHANGELOG.md) for recent changes, code is still under huge development and is likely to move a lot until version 0.1.
17
+ Check the [Changelog](CHANGELOG.md) for recent changes.
18
+
19
+ There is also a [Chef cookbook](https://github.com/eduvo/zabbix-ruby-client-cookbook) available for system-wide install if you use Chef.
20
+
21
+ [![Cookbook Version](http://img.shields.io/cookbook/v/zabbix-ruby-client.svg)](https://supermarket.getchef.com/cookbooks/zabbix-ruby-client)
18
22
 
19
23
  ## Why ?
20
24
 
@@ -39,6 +43,8 @@ Install it yourself as:
39
43
 
40
44
  gem install zabbix-ruby-client
41
45
 
46
+ Or us the chef cookbook https://github.com/eduvo/zabbix-ruby-client-cookbook
47
+
42
48
  ## Usage
43
49
 
44
50
  zrc init [name]
@@ -226,6 +232,7 @@ ListenIP 127.0.0.1
226
232
 
227
233
  ## Todo
228
234
 
235
+ * publish a chef cookbook for system wide installation
229
236
  * improve templates for graphs
230
237
  * add more plugins
231
238
  * memcache
@@ -25,6 +25,7 @@ module ZabbixRubyClient
25
25
  rescue Exception => e
26
26
  ZabbixRubyClient::Log.fatal "Oops"
27
27
  ZabbixRubyClient::Log.fatal e.message
28
+ ZabbixRubyClient::Log.fatal e.backtrace.join("\n")
28
29
  end
29
30
  end
30
31
  end
@@ -21,33 +21,17 @@ module ZabbixRubyClient
21
21
  back << "#{host} rabbitmq.version #{time} #{info['rabbitmq_version']}"
22
22
  back << "#{host} rabbitmq.erlang.version #{time} #{info['erlang_version']}"
23
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}"
24
+ if info['message_stats'][i]
25
+ back << "#{host} rabbitmq.message.#{i} #{time} #{info['message_stats'][i]}"
26
+ back << "#{host} rabbitmq.message.#{i}.rate #{time} #{info['message_stats']["#{i}_details"]['rate'].round}"
27
+ end
26
28
  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
29
  %w(messages messages_ready messages_unacknowledged).each do |i|
38
30
  back << "#{host} rabbitmq.queue.total.#{i} #{time} #{info['queue_totals'][i]}"
39
31
  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
32
  %w(channels connections consumers exchanges queues).each do |i|
44
33
  back << "#{host} rabbitmq.total.#{i} #{time} #{info['object_totals'][i]}"
45
34
  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']}"
51
35
  back << "#{host} rabbitmq.total.listeners #{time} #{info['listeners'].count}"
52
36
  end
53
37
  back
@@ -1,3 +1,3 @@
1
1
  module ZabbixRubyClient
2
- VERSION ||= "0.1.0"
2
+ VERSION ||= "0.1.1"
3
3
  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.1.0
4
+ version: 0.1.1
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-22 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor