diff --git a/extra/nagios_check_failing_nodes.rb b/extra/nagios_check_failing_nodes.rb index 7ef099835..bdc12096a 100755 --- a/extra/nagios_check_failing_nodes.rb +++ b/extra/nagios_check_failing_nodes.rb @@ -10,7 +10,7 @@ critical_nodes = [] pending_nodes = [] -json = JSON.parse(open("http://localhost:8888/nodes.json").read) +json = JSON.parse(URI("http://localhost:8888/nodes.json").open(&:read)) json.each do |node| next if !ARGV.empty? && (ARGV[0] != node['name'])