access_log /var/www/munin.mydomen.ru/logs/access.log;
error_log /var/www/munin.mydomen.ru/logs/error.log;
rewrite ^(.*)/static/(.*) static/$2 last;
server {
listen 80;
server_name munin.mydomen.ru;
access_log /var/www/munin.mydomen.ru/logs/access.log;
error_log /var/www/munin.mydomen.ru/logs/error.log;
location / {
root /var/www/munin.mydomen.ru/www;
index index.html;
fastcgi_split_path_info ^(/)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
fastcgi_pass unix:/var/run/munin/fcgi-munin-html.sock;
}
location ^~ /munin-cgi/munin-cgi-graph/ {
access_log off;
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fcgi-munin-graph.sock;
include fastcgi_params;
}
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
#deny all;
}
location /static/ {
alias /etc/munin/static/;
}
}
dbdir /var/lib/munin
rundir /var/run/munin
htmldir /var/www/munin.ttt.ru/www
logdir /var/www/munin.ttt.ru/logs
tmpldir /etc/munin/templates
staticdir /etc/munin/static
cgitmpdir /var/lib/munin/cgi-tmp
includedir /etc/munin/munin-conf.d
graph_period second
graph_strategy cgi
munin_cgi_graph_jobs 6
cgiurl_graph /munin-cgi/munin-cgi-graph
max_size_x 4000
max_size_y 4000
html_strategy cgi
max_processes 16
rrdcached_socket /var/run/rrdcached.sock
[Web-server]
address 127.0.0.1
use_node_name yes
nano /etc/munin/munin-node.conf
log_file /var/www/munin.ttt.ru/logs/munin-node.log
host_name Web-server
server {
listen 80;
server_name munin.ttt.ru;
root /var/www/munin.ttt.ru/www;
access_log /var/www/munin.ttt.ru/logs/access.log;
error_log /var/www/munin.ttt.ru/logs/error.log;
# Авторизация:
auth_basic "Munin Statistics";
auth_basic_user_file /etc/munin/.passwd;
index index.html;
location /nginx_status {
auth_basic off;
stub_status on;
access_log off;
allow 127.0.0.1;
#deny all;
}
location ^~ /cgi-bin/munin-cgi-graph/ {
access_log off;
fastcgi_split_path_info ^(/cgi-bin/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fcgi-graph.sock;
include fastcgi_params;
}
}
[nginx*]
env.url http://munin.ttt.ru/nginx_status
user munin
group munin