X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fconfigfile.c;h=f9ade29b7f8001404a2fadd4f156964f56fc2b28;hp=bb57ca26a23e77444b8bafb157e385b8468c84e5;hb=ef7fec0c4e0bbbabb356e6a570ac6297ee06eb80;hpb=074b4980bc75bea6826e6a38dcc6e193a721b2a8 diff --git a/src/configfile.c b/src/configfile.c index bb57ca26..f9ade29b 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -30,6 +30,7 @@ #include "configfile.h" #include "types_list.h" #include "utils_threshold.h" +#include "filter_chain.h" #if HAVE_WORDEXP_H # include @@ -341,6 +342,8 @@ static int dispatch_block (oconfig_item_t *ci) return (dispatch_block_plugin (ci)); else if (strcasecmp (ci->key, "Threshold") == 0) return (ut_config (ci)); + else if (strcasecmp (ci->key, "Chain") == 0) + return (fc_configure (ci)); return (0); } @@ -892,7 +895,7 @@ int cf_read (char *filename) /* Read the default types.db if no `TypesDB' option was given. */ if (cf_default_typesdb) - read_types_list (PLUGINDIR"/types.db"); + read_types_list (PKGDATADIR"/types.db"); return (0); } /* int cf_read */