昨天重启 freeshell 之后,Ganglia monitor (gmond) UDP channel 绑定的网卡漂移到了 OpenVPN tunnel (tun0) 上,导致收到的数据查不到主机名,在 Ganglia webfrontend 中显示出来的是 10.8.0.x 的 IP 地址,跟原来的统计数据也对不上了。

解决方法:修改 gmond.conf,在 udp_send_channel 中增加了 bind_hostname = yes,在 udp_recv_channel 中增加了 mcast_if = eth0。
配置文件 diff

另外发现早先 gmond 没有限制 XML 查询的来源 IP,任何人都可以通过 TCP 8661 端口查询主机状态,这可能是一个安全隐患,因此加入了 访问控制列表 使得只有 status.lug.ustc.edu.cn 可以收集主机状态。

顺便修复了 mirrors 上 gmond 端口号配置错误导致 gmetad 收不到数据的问题。