src/configfile.c: Handle the `<Threshold>' block correctly.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 1 Nov 2007 00:39:44 +0000 (01:39 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 1 Nov 2007 00:39:44 +0000 (01:39 +0100)
I. e. pass it to `ut_config'.

src/configfile.c

index 0310ca8..4702e7a 100644 (file)
@@ -27,6 +27,7 @@
 #include "common.h"
 #include "plugin.h"
 #include "configfile.h"
+#include "utils_threshold.h"
 
 #define ESCAPE_NULL(str) ((str) == NULL ? "(null)" : (str))
 
@@ -298,6 +299,8 @@ static int dispatch_block (oconfig_item_t *ci)
 {
        if (strcasecmp (ci->key, "Plugin") == 0)
                return (dispatch_block_plugin (ci));
+       else if (strcasecmp (ci->key, "Threshold") == 0)
+               return (ut_config (ci));
 
        return (0);
 }