下午好。
我正在尝试使用 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";
我很难找到解决方案。任何人都可以帮助我吗?
谢谢你。