bin/check-http-json.rb in sensu-plugins-http-2.0.2 vs bin/check-http-json.rb in sensu-plugins-http-2.1.0
- old
+ new
@@ -162,10 +162,10 @@
end
end
res = http.request(req)
unless res.code =~ /^2/
- critacal "http code: #{res.code}: body: #{res.body}" if config[:whole_response]
+ critical "http code: #{res.code}: body: #{res.body}" if config[:whole_response]
critical res.code
end
critical 'invalid JSON from request' unless json_valid?(res.body)
ok 'valid JSON returned' if config[:key].nil? && config[:value].nil?