X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8df838bf09d95282ba29ddde8b504e0affc5f06e..ab47927c016597f8602b81dcdc168ad5c335389d:/cookbooks/munin/files/default/plugins/api_calls_ diff --git a/cookbooks/munin/files/default/plugins/api_calls_ b/cookbooks/munin/files/default/plugins/api_calls_ index ea95ed137..4eae910dd 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_ +++ b/cookbooks/munin/files/default/plugins/api_calls_ @@ -12,9 +12,9 @@ def uris_from_status(server) rows = (tables[1] / "tr")[1..-1] data = rows.collect { |r| (r / "td").collect(&:inner_html) } # filter where the PID is numeric, status is 'W' and host matches the server - matching_data = data.select { |r| r[1].to_i.positive? && r[3].match(/W/) && r[11].match(server) } + matching_data = data.select { |r| r[1].to_i.positive? && r[3].match(/W/) && r[12].match(server) } # return only the URI part - matching_data.collect { |r| r[12] } + matching_data.collect { |r| r[13] } end CALL_TYPES = {