【问题标题】:Upgraded nginx, now munin stats don't work升级 nginx,现在 munin stats 不起作用
【发布时间】:2016-09-01 01:11:56
【问题描述】:

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

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

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

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

【问题讨论】:

    标签: nginx debian munin


    【解决方案1】:

    nginx_* 插件需要访问 URL http://localhost/nginx_status。通过wget 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;
    }
    

    在服务器部分

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-09
      • 2017-09-10
      • 1970-01-01
      • 2016-10-24
      • 2015-12-08
      • 2017-07-06
      • 2021-07-23
      • 2013-11-29
      相关资源
      最近更新 更多