htmon-icinga 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 545db68aa0335dee493753e2fa7d995d03bacb58
4
- data.tar.gz: 7969df986a3146432943b3fbcb772531b4fe61a6
3
+ metadata.gz: 065ee7090470ab9e2f57ea2297cadce61edd1f36
4
+ data.tar.gz: beb533914569f5874b095479bf07fca5b2f471c8
5
5
  SHA512:
6
- metadata.gz: 16f76b538f7531ef988376ab4b1ac028eb510fbcb012546008c91bb39615e68aefd244761a0eb363b0f3c33dc58576ffa90468d310c43fbd0030eb5fb44dba5a
7
- data.tar.gz: da9d179d5b6e2c2de144d609bbe7edf0027cf23023c4663a6f9f4ada5e82e98a337ce8e9776b39bc89c4c10c99948f7d92b2d6cb7a9ba671454c1d4972708864
6
+ metadata.gz: e0996966b5a114d06ce83e2c49362331db4bca2239ba8879432706f16e1113c074955b2dc4ea893da11c572b39a5dd99b8662c28fefba0709a7e743a3f514d8f
7
+ data.tar.gz: 5e9cddbd13f2393c9d2964d1a7d475ab5589689733e8cf6107ef8d950c6a2ce70a89226abd5e8f1f09f9651cb9873932a292aabe59d47ed306bfb6b9ca7c0062
@@ -7,7 +7,7 @@ module Htmon
7
7
  Value ||= Struct.new(:avg1,:avg5,:avg15)
8
8
 
9
9
  callback :handle_value do |value, metric|
10
- Value.new(*metric.split("::").last.to_s.split(','))
10
+ Value.new(*metric.split("::").last.to_s.split(',').map(&:to_f))
11
11
  end
12
12
 
13
13
  callback :on_ok do |value, warn, thresh|
@@ -1,5 +1,5 @@
1
1
  module Htmon
2
2
  module Icinga
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htmon-icinga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Foerster