Kouhei Sutou
null+****@clear*****
Thu Dec 26 14:36:20 JST 2013
Kouhei Sutou 2013-12-26 14:36:20 +0900 (Thu, 26 Dec 2013) New Revision: 2356267b640d8696b71bf962d60e1168f013abc5 https://github.com/groonga/groonga/commit/2356267b640d8696b71bf962d60e1168f013abc5 Message: munin: use Net::HTTPSuccess It checks 2XX statuses. Modified files: data/munin/groonga_status Modified: data/munin/groonga_status (+1 -1) =================================================================== --- data/munin/groonga_status 2013-12-26 14:34:30 +0900 (ef2a344) +++ data/munin/groonga_status 2013-12-26 14:36:20 +0900 (f5e5a7a) @@ -47,7 +47,7 @@ def run(command, *args) result = Net::HTTP.start(@host, @port) do |http| http.get("/d/#{command}") end - parse(result.code == "200", result.body) + parse(result.is_a?(Net::HTTPSuccess), result.body) end end -------------- next part -------------- HTML����������������������������...Download