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 +4 -4
- data/lib/check_graphite.rb +1 -1
- data/lib/check_graphite/version.rb +1 -1
- data/spec/check_graphite_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c650b55059953032db9a8ce3c74644c065a325c
|
4
|
+
data.tar.gz: bc12e7ba7cac4df9e5ff727836bef2141da610db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9034495f97637e5fd020472f0455bcac6b59f191317f50c1acdd7e4ffdfdeacd0592a547576a0bebf56d9b7c659c3c36ee4d9358ef0310cf5d41c58b412e3daa
|
7
|
+
data.tar.gz: 166d813e3cca74fa36066e4b7621b7898692a28f5a7b779646d5a535eedc9397cf72c203214343d7dcac42c0e285a72f202c20743bb87e98b83dca5844bd65d4
|
data/lib/check_graphite.rb
CHANGED
@@ -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,
|
43
|
+
store_value options.name, 0
|
44
44
|
store_message "#{options.name} missing - ignoring"
|
45
45
|
return
|
46
46
|
else
|
data/spec/check_graphite_spec.rb
CHANGED
@@ -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
|
+
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-
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nagios_check
|