我正在尝试让我的munin主机从另一个外部munin节点获取数据。但我似乎遇到了一些问题。Munin主节点位于10.0.0.4,而外部节点位于10.0.0.1。我正在尝试让10.0.0.4从10.0.0.1获取数据。
我相信我已经正确设置了配置:
编辑munin_master上的/etc/munin/munin.conf,使其从10.0.0.1获取数据。
[muninServer.vm]
address 10.0.0.1
use_node_name yes在munin_master上重新启动了穆宁和阿帕奇。
/etc/init.d/munin-node restart
* Stopping Munin-Node [ OK ]
* Starting Munin-Node [ OK ]还在munin_master上重新启动了apache2
/etc/init.d/apache2 restart在外部munin节点上编辑/etc/munin/munin-node.conf,以允许munin_master从外部munin节点收集文件。
allow ^10\.0\.0\.4$也重启了munin。
/etc/munin# /etc/init.d/munin-node restart
* Stopping Munin-Node [ OK ]
* Starting Munin-Node [ OK ]这对munin_master来说似乎很好用。但是,当Munin主机尝试在端口4949上与10.0.0.1建立新连接时(通过发送SYN位)。外部节点拒绝该连接,并以复位位响应。由于外部节点被指定为接受此连接,因此我不明白为什么会发生这种情况。
我的本地防火墙10.0.0.1默认接受所有流量。所以这不可能是原因:
iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination
Chain FORWARD (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination需要注意的是,在外部节点上使用telnet 127.0.0.1 4949可以正常工作,而在munin_master上使用telnet 10.0.0.1 4949则会被拒绝。
尝试找出该端口是否正在侦听外部节点:
lsof | grep TCP | grep LISTEN
munin-nod 4669 root 5u IPv4 2095805 0t0 TCP localhost:munin (LISTEN)
netstat -tulpn
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:4949 0.0.0.0:* LISTEN 4669/perl外部节点munin-node.conf中信息的内容。
log_level 4
log_file /var/log/munin/munin-node.log
pid_file /var/run/munin/munin-node.pid
background 1
setsid 1
user root
group root
ignore_file [\#~]$
ignore_file DEADJOE$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.pod$
allow ^127\.0\.0\.1$
allow ^::1$
allow ::ffff:158.36.119.179
allow ^10\.0\.0\.4$
allow ^128\.39\.74\.58$
host 127.0.0.1
host ::ffff:158.36.119.179
port 4949任何有关如何解决此问题的建议都将不胜感激:)
发布于 2017-02-14 07:03:13
在节点10.0.0.1上,键入$ tail -f /var/log/munin/munin-node.log,然后按enter键几次以清除屏幕。这只是为了让您看到新的结果。
在另一个窗口中,转到节点10.0.0.4,输入$ telnet 10.0.0.1 4949,查看难题的答案是否在其中一个窗口中。
https://stackoverflow.com/questions/35577089
复制相似问题