【问题标题】:Munin ExtendedStatus option for apache mod_status is missing since enabling nginx reverse proxy由于启用 nginx 反向代理,Apache mod_status 的 Munin ExtendedStatus 选项丢失
【发布时间】:2017-06-10 11:05:37
【问题描述】:

我很长时间以来一直在使用 munin 来监控我的服务器(带有 Plesk Onyx、Apache/2.4.10、nginx/1.11.4 的 Ubuntu 14.04 LTS)。它可以很好地向我展示所有 apache 图表(访问、进程、卷)。

昨天我在 plesk 上安装了 nginx 反向代理来提高性能。这适用于我的网站,我也可以在 munin 上监控 nginx。

但是 apache 图表停止了。因为 apache 现在侦听端口 7080,所以我将其添加到 munin-node.conf:

[apache_*]
env.url http://public-server-url:7080/server-status
env.ports 7080

使用curl 或lynx 打开http://public-server-url:7080/server-status 可以正常工作,并且我一如既往地获得服务器状态页面。

现在我在运行 munin-run apache_accesses autoconf 时收到此错误:

no (ExtendedStatus option for apache mod_status is missing on port 7080)

但 ExtendedStatus 选项在 /etc/apache2/mods-enabled/status.conf 中设置为 On。

我忘记了什么?在我添加 nginx 反向代理之前它工作正常,但这不能更改 apache mods conf?

【问题讨论】:

    标签: apache nginx plesk munin


    【解决方案1】:

    我终于找到了解决办法。

    网址必须类似于http://public-server-url:7080/server-status?auto。添加了它,现在它工作正常。

    将?auto 添加到 URL 确实会更改页面的输出。没有它,您将获得一个正常的网站,您可以在其中查看 apache 的所有指标。但是添加 ?auto 只会输出值,以便更好地解析它。

    示例输出:

    Total Accesses: 30200
    Total kBytes: 95000
    CPULoad: .583622
    Uptime: 7000
    ReqPerSec: 4.20
    BytesPerSec: 15800.9
    BytesPerReq: 3200
    BusyWorkers: 1
    IdleWorkers: 99
    ConnsTotal: 1
    ConnsAsyncWriting: 0
    ConnsAsyncKeepAlive: 0
    ConnsAsyncClosing: 0
    Scoreboard: _W___...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-22
      • 2021-05-21
      • 2021-07-06
      • 1970-01-01
      • 2018-06-14
      • 2016-01-24
      • 1970-01-01
      • 2021-07-26
      相关资源
      最近更新 更多