package "munin"
package "rrdcached"
+package "libcgi-fast-perl"
template "/etc/default/rrdcached" do
source "rrdcached.erb"
variables :expiry_time => expiry_time, :clients => clients, :frontends => frontends, :backends => backends, :tilecaches => tilecaches, :renderers => renderers
end
+apache_module "fcgid"
+apache_module "rewrite"
+
apache_site "munin.openstreetmap.org" do
template "apache.erb"
end
ErrorLog /var/log/apache2/munin.openstreetmap.org-error.log
DocumentRoot /var/cache/munin/www
+ ScriptAlias /munin-cgi/ /usr/lib/munin/cgi/
+
+ RewriteEngine on
+ RewriteRule ^(/.*\.html)?$ /munin-cgi/munin-cgi-html/$1 [PT]
</VirtualHost>
<Directory /var/cache/munin/www>
Require all granted
</Directory>
+
+<Directory /usr/lib/munin/cgi>
+ Options +ExecCGI
+ SetHandler fcgid-script
+ Require all granted
+</Directory>
# 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