![Munin 在全新安装时抛出错误](https://linux22.com/image/605225/Munin%20%E5%9C%A8%E5%85%A8%E6%96%B0%E5%AE%89%E8%A3%85%E6%97%B6%E6%8A%9B%E5%87%BA%E9%94%99%E8%AF%AF.png)
我刚刚在一个新的 ubuntu 系统上安装了 munin,munin 节点抛出以下错误:
2013/01/30-21:10:02 CONNECT TCP Peer: "[::ffff:127.0.0.1]:39316" Local: "[::ffff:127.0.0.1]:4949"
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Net/Server.pm line 600.
2013/01/30 21:15:06 [PERL WARNING] Use of uninitialized value in concatenation (.) or string at /usr/share/munin/munin-graph line 74.
2013/01/30 21:15:06 [PERL WARNING] Use of uninitialized value $graph_fh in <HANDLE> at /usr/share/munin/munin-graph line 75.
2013/01/30 21:15:06 [PERL WARNING] readline() on unopened filehandle at /usr/share/munin/munin-graph line 75.
你知道问题出在哪里吗?以下是配置文件:
http://pastebin.com/sU8dVY1N-plugin-conf.d/munin-node
http://pastebin.com/NRHXn8it-munin-node.conf
pastebin.com/HMdiBfTh - munin.conf
非常感谢!
答案1
关于此警告,Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Net/Server.pm line 600.
请查看此处:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=693320. 似乎它在 libnet-server-perl 包的 2.007-1 版本中已修复。
答案2
确保您设置的域名host_name
可以munin-node.conf
解析。
如果localhost.localdomain
您的系统上没有解决,请尝试将其更改为localhost
或将条目添加到/etc/hosts
。