2013-02-21 3 views
1

안녕하십니까.Memcached : 플러그인 Munin 오류

memcached 플러그인을 사용하려고하는데 "munin-run"명령을 사용하여 테스트 할 때 오류가 발생합니다. 반환

오류는 다음과 같습니다 나는 이것에 대한 해결책을 발견하는 데 어려움이있어

$ip =~ s/_/./g; 
my $address = "$ip:$port"; 

:

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. 

의 선 (28)과 memcached_hits 플러그인 (29), 아래 각각의 코드를 참조하십시오. 누구든지 나를 도울 수 있습니까, 친절하게도?

감사합니다.

+0

안녕하세요, 누구든지 도와 드릴 수 있습니까? – hdegenaro

답변

2

아마 여기있는 확인하여 memcached를 구성 파일을 확인하십시오

[memcached_*] 
env.host 127.0.0.1 
env.port 11211 
env.timescale 3 

일부 기본 구성 파일과 같이 ENV 라인에 추가 정보를 포함 :

/etc/munin/plugin-conf.d/memcached 

이런 식으로 뭔가를 보이는

# BAD! DELETE *default* 
[memcached_*] 
env.host 127.0.0.1 *default* 
env.port 11211  *default* 
env.timescale 3  *default* 
관련 문제