]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nginx/recipes/default.rb
nginx: add munin monitoring
[chef.git] / cookbooks / nginx / recipes / default.rb
index 95c9f8b17cdfc5664fd58aeb31a97a7b8359388a..ade13504d442c513ac861ca255553fdd5aa24588 100644 (file)
@@ -50,3 +50,10 @@ service "nginx" do
   supports :status => true, :restart => true, :reload => true
   subscribes :restart, "template[/etc/nginx/nginx.conf]"
 end
   supports :status => true, :restart => true, :reload => true
   subscribes :restart, "template[/etc/nginx/nginx.conf]"
 end
+
+munin_plugin_conf "nginx" do
+  template "munin.erb"
+end
+
+munin_plugin "nginx_request"
+munin_plugin "nginx_status"