7 Star 0 Fork 0

OpenCloudOS Stream/munin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nginx_cgi_graphs.conf 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
fanjunkong 提交于 2024-08-23 16:01 . update
# Example configuration for nginx with cgi generated graphs.
#
# To use this example config file you need to enable cgi graphs in Munin. Add
# following three lines to /etc/munin/conf.d/local.conf (without # character):
#
# graph_strategy cgi
# html_strategy cgi
# cgiurl_graph /munin/graph
#
# Then copy this file to /etc/nginx/conf.d/ directory and restart nginx.
# Services munin-cgi-html and munin-cgi-graph must also be started:
#
# systemctl enable --now munin-cgi-html.socket munin-cgi-graph.socket
#
# Access Munin at http://localhost/munin/
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
location /munin/static/ {
alias /etc/munin/static/;
}
location /munin/graph/ {
include fastcgi_params;
fastcgi_split_path_info ^(/munin/graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/munin-cgi-graph.sock;
}
location /munin/ {
include fastcgi_params;
fastcgi_split_path_info ^(/munin)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/munin-cgi-html.sock;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/munin.git
git@gitee.com:opencloudos-stream/munin.git
opencloudos-stream
munin
munin
master

搜索帮助