-bash-4.1$ /usr/share/munin/munin-update --nofork --debug -host ec2-184-77-97-201.compute-1.amazonaws.com
2013/11/17 03:35:22 [DEBUG] Creating new lock file /var/run/munin/munin-update.lock
2013/11/17 03:35:22 [DEBUG] Creating lock : /var/run/munin/munin-update.lock succeeded
2013/11/17 03:35:22 [INFO]: Starting munin-update
2013/11/17 03:35:22 [DEBUG] Lock /var/run/munin/munin-compute-1.amazonaws.com-ec2-184-77-97-201.compute-1.amazonaws.com.lock already exists, checking process
2013/11/17 03:35:22 [DEBUG] Lock contained pid '12147'
2013/11/17 03:35:22 [INFO] Process 12147 is dead, stealing lock, removing file
2013/11/17 03:35:22 [DEBUG] Creating new lock file /var/run/munin/munin-compute-1.amazonaws.com-ec2-184-77-97-201.compute-1.amazonaws.com.lock
2013/11/17 03:35:22 [DEBUG] Creating lock : /var/run/munin/munin-compute-1.amazonaws.com-ec2-184-77-97-201.compute-1.amazonaws.com.lock succeeded
2013/11/17 03:35:22 [DEBUG] Reading state for compute-1.amazonaws.com-ec2-184-77-97-201.compute-1.amazonaws.com in /var/lib/munin/state-compute-1.amazonaws.com-ec2-184-77-97-201.compute-1.amazonaws.com.storable
2013/11/17 03:35:22 [INFO] starting work in 12544 for ec2-184-77-97-201.compute-1.amazonaws.com/ec2-184-77-97-201.compute-1.amazonaws.com:4949.
2013/11/17 03:35:22 [FATAL] Socket read from ec2-184-77-97-201.compute-1.amazonaws.com failed. Terminating process. at /usr/share/perl5/vendor_perl/Munin/Master/UpdateWorker.pm line 254
2013/11/17 03:35:22 [WARNING] Failed worker compute-1.amazonaws.com;ec2-184-73-97-201.compute-1.amazonaws.com
2013/11/17 03:35:22 [DEBUG] Creating new lock file /var/run/munin/munin-datafile.lock
2013/11/17 03:35:22 [DEBUG] Creating lock : /var/run/munin/munin-datafile.lock succeeded
2013/11/17 03:35:22 [INFO] No old data available for failed worker compute-1.amazonaws.com;ec2-184-77-97-201.compute-1.amazonaws.com. This node will disappear from the html web page hierarchy
2013/11/17 03:35:22 [DEBUG] Writing state to /var/lib/munin/datafile.storable
2013/11/17 03:35:22 [INFO]: Munin-update finished (0.06 sec)
服务器pkgs:
穆宁-共2.0.17-1.30.amzn1.noarch 穆宁节点-2.0.17-1.30.amzn1.noarch 穆宁-2.0.17-1.30.amzn1.noarch
客户端:
穆宁-共2.0.17-1.30.amzn1.noarch 穆宁节点-2.0.17-1.30.amzn1.noarch
Telnet测试:
[root @nagios ec2-user] #telnet ec2-184-77-97-201.compute-1.amazonaws.com 4949 尝试10.73.133.164 ...... 连接到ec2-184-77-97-201.compute-1.amazonaws.com。 逃脱角色是'^]'。 外部主机关闭连接。 [root @nagios ec2-user]#
在客户端/服务器上禁用了Iptables。
Telnet localhost看起来很好:
localhost test
[root @nagios ec2-user] #telnet localhost 4949 试试127.0.0.1 ...... 连接到localhost。 逃脱角色是'^]'。
Munin客户端节点错误:
2013/11/17-03:38:03 CONNECT TCP Peer: "10.202.30.240:54208" Local: "10.73.133.164:4949"
2013/11/17-03:38:03 [1906] Denying connection from: 10.202.30.240
2013/11/17-03:40:02 CONNECT TCP Peer: "10.202.30.240:45094" Local: "10.73.133.164:4949"
2013/11/17-03:40:02 [1909] Denying connection from: 10.202.30.240
~
有人可以帮我吗...
答案 0 :(得分:3)
我在客户端上的正则表达式(munin-node.conf)搞砸了。
将munin服务器IP添加到客户端munin-node.conf
allow 10.202.30.210
restart munin-node service.
这次工作
[root@nagios ec2-user]# telnet ec2-184-73-97-201.compute-1.amazonaws.com 4949
Trying 10.73.133.164...
Connected to ec2-184-73-97-201.compute-1.amazonaws.com.
Escape character is '^]'.
# munin node at ip-10-73-133-164.ec2.internal
nodes
ip-10-73-133-164.ec2.internal
.
exit