X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d6aa4663cf978ed6db3e34c8c7d63dc13b430305..a45c1200e1b7b9ffdefe5fef3af9b1a93f5de31d:/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"