X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d6aa4663cf978ed6db3e34c8c7d63dc13b430305..e228a690bd4e3cc25e354235294e065fd59a8e02:/cookbooks/munin/files/default/plugins/chef_status 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"