title: Memcached: Plugin Munin Error
body: <p>Good afternoon.</p>
  
  <p>I'm trying to use memcached plugins and I'm getting errors when I use the command "munin-run" to test them.</p>
  
  <p>The errors returned are:</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>The lines 28 and 29 of memcached_hits plugin, refer to respective codes below:</p>
  
  <pre><code>$ip =~ s/_/./g;
  my $address = "$ip:$port";
  </code></pre>
  
  <p>I'm having difficulty discovering a solution for this. Can anyone help me, kindly?</p>
  
  <p>Thank you.</p>