【发布时间】: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?
【问题讨论】: