diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-10-05 09:07:54 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-10-05 09:07:54 +0200 |
commit | 6a486b088b957a2af6d1dfeb692ecef6ec8c5e06 (patch) | |
tree | 9832c92a1a20ae2f8b3627248e4784442befb7d7 /files/etc | |
parent | 6348285571e9877990317303b5508b737686faef (diff) | |
download | munin-master.tar.gz munin-master.tar.bz2 munin-master.tar.xz munin-master.zip |
Diffstat (limited to 'files/etc')
-rw-r--r-- | files/etc/munin/munin.conf | 20 | ||||
-rw-r--r-- | files/etc/nginx/nginx.conf | 31 | ||||
-rw-r--r-- | files/etc/nginx/sites-enabled/munin | 29 |
3 files changed, 80 insertions, 0 deletions
diff --git a/files/etc/munin/munin.conf b/files/etc/munin/munin.conf new file mode 100644 index 0000000..aa3e550 --- /dev/null +++ b/files/etc/munin/munin.conf @@ -0,0 +1,20 @@ +dbdir /munin/db +rundir /tmp +htmldir /munin/www +logdir /munin/log + +includedir /etc/munin/munin-conf.d +tmpldir /etc/munin/templates +staticdir /etc/munin/static + +# strategies cron|cgi +html_strategy cgi +graph_strategy cgi +cgiurl_graph /munin-cgi/munin-cgi-graph + +#max_size_x 4000 +#max_size_y 4000 +#max_processes 16 +#munin_cgi_graph_jobs 6 +#graph_period second +#rrdcached_socket /var/run/rrdcached.sock diff --git a/files/etc/nginx/nginx.conf b/files/etc/nginx/nginx.conf new file mode 100644 index 0000000..1634164 --- /dev/null +++ b/files/etc/nginx/nginx.conf @@ -0,0 +1,31 @@ +worker_processes 4; +pid /tmp/nginx.pid; +error_log /proc/self/fd/2 warn; + +events { + worker_connections 768; + # multi_accept on; +} + +http { + sendfile on; + tcp_nopush on; + tcp_nodelay on; + keepalive_timeout 65; + types_hash_max_size 2048; + + include /etc/nginx/mime.types; + default_type application/octet-stream; + + #client_body_temp_path /tmp/nginx/temp; + #proxy_temp_path /tmp/nginx/proxy; + + access_log /proc/self/fd/1; + error_log /proc/self/fd/2; + + gzip on; + gzip_disable "msie6"; + + include /etc/nginx/conf.d/*.conf; + include /etc/nginx/sites-enabled/*; +} diff --git a/files/etc/nginx/sites-enabled/munin b/files/etc/nginx/sites-enabled/munin new file mode 100644 index 0000000..4dc9764 --- /dev/null +++ b/files/etc/nginx/sites-enabled/munin @@ -0,0 +1,29 @@ +server { + listen 8080 default_server; + server_name munin; + + access_log /proc/self/fd/1; + error_log /proc/self/fd/2; + + location /munin/static { + alias /etc/munin/static; + } + + location ^~ /munin/ { + fastcgi_split_path_info ^(/munin)(.*); + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_pass 127.0.0.1:9001; + include fastcgi_params; + } + + location ^~ /munin-cgi/munin-cgi-graph/ { + fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*); + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_pass 127.0.0.1:9000; + include fastcgi_params; + } + + location / { + rewrite ^/$ munin/ redirect; break; + } +} |