0

我正在运行 Debian 8 和默认 repo 的 nginx 版本(~1.6)。我将 repo 更改为 nginx 并下载了最新版本(1.10.0),现在我的 munin 统计数据不起作用,除了 RAM 使用情况。具体来说;

Requests 请求/连接处理的 Nginx 状态

...都不起作用并产生空白图表。Nginx 按预期工作,似乎没有其他任何变化。我不确定要检查哪些日志 - munin-graph.log、munin-html.log、munin-update.log 和 munin-node.log 不包含错误或警告。

欢迎任何有关如何解决此问题的建议!

4

1 回答 1

0

nginx_* 插件需要访问 URL http://localhost/nginx_statuswget http://localhost/nginx_status通过或检查它munin-run -d nginx_status(在第二种情况下,有插件名称,而不是来自 nginx 配置的位置}。

还要检查 nginx 配置。它必须包含类似

location /nginx_status {
    stub_status on;
    access_log   off;
    allow 127.0.0.1;
    deny all;
}

在服务器部分

于 2016-08-31T17:11:56.783 回答