]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/chef_status
Merge remote-tracking branch 'tigerfell/pr257'
[chef.git] / cookbooks / munin / files / default / plugins / chef_status
index 9d4c742fc69acd30217134c9d940c986283a6096..6680c4aa06f25abacfd793b81fdd995be6a836bf 100755 (executable)
@@ -2,7 +2,7 @@
 
 require "json"
 
 
 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"
 
 if ARGV[0] == "config"
   puts "graph_title Chef node status"