0

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

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

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

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

打开或正常工作http://public-server-url:7080/server-status,我一如既往地获得服务器状态页面。curllynx

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

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

但是 ExtendedStatus 选项设置为Onin /etc/apache2/mods-enabled/status.conf

我忘记了什么?在我添加 nginx 反向代理之前它运行良好,但这不能更改 apache mods conf?

4

1 回答 1

1

我终于找到了解决方案。

URL 必须像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___...
于 2017-01-25T11:34:59.350 回答