X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d6aa4663cf978ed6db3e34c8c7d63dc13b430305..2bfb0ef07fb64314f5c4ded641a8c280df9c1d0b:/cookbooks/munin/files/default/plugins/chef_status?ds=sidebyside diff --git a/cookbooks/munin/files/default/plugins/chef_status b/cookbooks/munin/files/default/plugins/chef_status index 9d4c742fc..6680c4aa0 100755 --- a/cookbooks/munin/files/default/plugins/chef_status +++ b/cookbooks/munin/files/default/plugins/chef_status @@ -2,7 +2,7 @@ require "json" -nodes = JSON.parse(IO.popen(["knife", "status", "-c", "/var/lib/chef/.chef/knife.rb", "-F", "json"]).read).sort_by { |node| node["name"] } +nodes = JSON.parse(IO.popen(["/opt/chef/embedded/bin/knife", "status", "-c", "/var/lib/chef/.chef/knife.rb", "-F", "json"]).read).sort_by { |node| node["name"] } if ARGV[0] == "config" puts "graph_title Chef node status"