【发布时间】:2013-03-26 00:34:05
【问题描述】:
下午好。
我正在尝试使用 memcached 插件,但在使用命令“munin-run”测试它们时出现错误。
返回的错误是:
Use of uninitialized value $ip in substitution (s///) at /etc/munin/plugins/memcached_hits line 28.
Use of uninitialized value $ip in concatenation (.) or string at /etc/munin/plugins/memcached_hits line 29.
Use of uninitialized value $port in concatenation (.) or string at /etc/munin/plugins/memcached_hits line 29.
Use of uninitialized value $ip in hash element at /usr/share/perl5/Cache/Memcached.pm line 253.
Use of uninitialized value $ip in index at /usr/share/perl5/Cache/Memcached.pm line 279.
Use of uninitialized value in subroutine entry at /usr/share/perl5/Cache/Memcached.pm line 288.
Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/lib/perl/5.14/Socket.pm line 260.
memcached_hits插件的第28行和第29行,分别参考以下代码:
$ip =~ s/_/./g;
my $address = "$ip:$port";
我很难找到解决方案。谁能帮帮我,好吗?
谢谢。
【问题讨论】:
-
嗨,有人可以帮我吗?