X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemcachec.c;h=d066501cdcba73afb56363dae167b9dd78353e10;hb=dbcb0610ae7dfa0155b04aa4174ec35a1058d18e;hp=75e642702be38d2a8d5c058249a050eab243185a;hpb=0b66874cd75b00f8daf8a18a10712dff8be68da9;p=collectd.git diff --git a/src/memcachec.c b/src/memcachec.c index 75e64270..d066501c 100644 --- a/src/memcachec.c +++ b/src/memcachec.c @@ -37,6 +37,7 @@ typedef struct web_match_s web_match_t; struct web_match_s /* {{{ */ { char *regex; + char *exclude_regex; int dstype; char *type; char *instance; @@ -220,6 +221,8 @@ static int cmc_config_add_match (web_page_t *page, /* {{{ */ if (strcasecmp ("Regex", child->key) == 0) status = cmc_config_add_string ("Regex", &match->regex, child); + else if (strcasecmp ("ExcludeRegex", child->key) == 0) + status = cmc_config_add_string ("ExcludeRegex", &match->exclude_regex, child); else if (strcasecmp ("DSType", child->key) == 0) status = cmc_config_add_match_dstype (&match->dstype, child); else if (strcasecmp ("Type", child->key) == 0) @@ -262,7 +265,8 @@ static int cmc_config_add_match (web_page_t *page, /* {{{ */ if (status != 0) return (status); - match->match = match_create_simple (match->regex, NULL, match->dstype); + match->match = match_create_simple (match->regex, match->exclude_regex, + match->dstype); if (match->match == NULL) { ERROR ("memcachec plugin: tail_match_add_match_simple failed.");