check_graphite 0.2.4 → 0.2.5

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: 005e6702df11c50c976336ec6be597223b58ce83
4
- data.tar.gz: 0854e7caea66b0b5a9cca85007a7161b09fcdf35
3
+ metadata.gz: 9c650b55059953032db9a8ce3c74644c065a325c
4
+ data.tar.gz: bc12e7ba7cac4df9e5ff727836bef2141da610db
5
5
  SHA512:
6
- metadata.gz: 07bbf563737fc2012ce3beeaa5b096e923eae62904ec39f4cb0f6cbac2e5c4d352e2a884163370c00ab5b120bcb905b63ba7ebf0c089a6c280232e6bb25a3e20
7
- data.tar.gz: 890ddc5b1662aa1f841c2e7c6a158be55572a8f35de36295d9b9504cda53fc1364cabcd05394ace29e8a7c567c41f82d7fc4d7fb2283bc98af71d9e8eb639840
6
+ metadata.gz: 9034495f97637e5fd020472f0455bcac6b59f191317f50c1acdd7e4ffdfdeacd0592a547576a0bebf56d9b7c659c3c36ee4d9358ef0310cf5d41c58b412e3daa
7
+ data.tar.gz: 166d813e3cca74fa36066e4b7621b7898692a28f5a7b779646d5a535eedc9397cf72c203214343d7dcac42c0e285a72f202c20743bb87e98b83dca5844bd65d4
@@ -40,7 +40,7 @@ module CheckGraphite
40
40
  raise "HTTP error code #{res.code}" unless res.code == "200"
41
41
  if res.body == "[]"
42
42
  if options.send("ignore-missing")
43
- store_value options.name, -1
43
+ store_value options.name, 0
44
44
  store_message "#{options.name} missing - ignoring"
45
45
  return
46
46
  else
@@ -1,3 +1,3 @@
1
1
  module CheckGraphite
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -88,7 +88,7 @@ describe CheckGraphite::Command do
88
88
  end
89
89
 
90
90
  it "should be ok when ignoring missing data" do
91
- stub_const("ARGV", %w{ -H http://your.graphite.host/render -M value.does.not.exist --ignore-missing })
91
+ stub_const("ARGV", %w{ -H http://your.graphite.host/render -M value.does.not.exist --ignore-missing -w 1 -c 3 })
92
92
  c = CheckGraphite::Command.new
93
93
  STDOUT.should_receive(:puts).with(/OK: value missing - ignoring/)
94
94
  lambda { c.run }.should raise_error SystemExit
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre-Yves Ritschard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-27 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nagios_check