Skip to content

Commit

Permalink
Merge pull request ytti#3342 from sorano/patch-1
Browse files Browse the repository at this point in the history
Update nagios_check_failing_nodes.rb
  • Loading branch information
robertcheramy authored Dec 12, 2024
2 parents 1413f06 + 377dd34 commit 9254747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/nagios_check_failing_nodes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'])

Expand Down

0 comments on commit 9254747

Please sign in to comment.