From: Matt Cottingham Date: Fri, 23 May 2014 15:23:11 +0000 (+0100) Subject: Submit listen_disabled_num in memcached.c X-Git-Tag: collectd-5.5.0~303 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=fa91b25bcb720ab760ee389922775365e20803e6 Submit listen_disabled_num in memcached.c This is a counter which increments when the connection limit to memcached is reached and a socket listen is disabled. --- diff --git a/src/memcached.c b/src/memcached.c index 7e12f129..577c526e 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -437,6 +437,10 @@ static int memcached_read (user_data_t *user_data) { submit_gauge ("memcached_connections", "current", atof (fields[2]), st); } + else if (FIELD_IS ("listen_disabled_num")) + { + submit_derive ("memcached_connections", "listen_disabled_num", atof (fields[2]), st); + } /* * Commands