X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/956628583e0c73dc82b457cd83cbc5013b9cfd19..7f60aad6f04a069a4cd35b312292dbed16898c1d:/cookbooks/munin/templates/default/munin.conf.erb diff --git a/cookbooks/munin/templates/default/munin.conf.erb b/cookbooks/munin/templates/default/munin.conf.erb index 9bceccd25..c560717a0 100644 --- a/cookbooks/munin/templates/default/munin.conf.erb +++ b/cookbooks/munin/templates/default/munin.conf.erb @@ -1,5 +1,19 @@ # DO NOT EDIT - This file is being maintained by Chef +# Set maximum number of update processes to run at once +max_processes 64 + +# Maximum number of graphs to generate at once +max_graph_jobs 24 +max_cgi_graph_jobs 24 + +# Render pages and graphs on demand +html_strategy cgi +graph_strategy cgi + +# Use rrdcached +rrdcached_socket /var/run/rrdcached.sock + # Configure alert targets contact.admins.command mail -s "Munin Notification" admins@openstreetmap.org contact.null.command cat > /dev/null @@ -17,10 +31,10 @@ unknown_limit 144 update no <% end -%> <% if client[:networking][:roles][:external][:zone] == "ucl" -%> - address <%= client.internal_ipaddress %> + address <%= client.internal_ipaddress || client.external_ipaddress %> <% elsif client[:networking][:roles][:external][:zone] == "ic" -%> address <%= client.internal_ipaddress || client.external_ipaddress %> -<% else -%> +<% elsif client.external_ipaddress -%> address <%= client.external_ipaddress %> <% end -%> use_node_name yes @@ -31,6 +45,9 @@ unknown_limit 144 <% if client[:munin][:plugins][plugin][value][:graph] -%> <%= plugin %>.<%= value %>.graph <%= client[:munin][:plugins][plugin][value][:graph] %> <% end -%> +<% if client[:munin][:plugins][plugin][value][:label] -%> + <%= plugin %>.<%= value %>.label <%= client[:munin][:plugins][plugin][value][:label] %> +<% end -%> <% if client[:munin][:plugins][plugin][value][:warning] -%> <%= plugin %>.<%= value %>.warning <%= client[:munin][:plugins][plugin][value][:warning] %> <% end -%>