src/graph_ident.[ch]: Implement "ident_data_to_json".
[collection4.git] / src / graph_config.c
index 6b9a97a..6d2402b 100644 (file)
@@ -1,3 +1,26 @@
+/**
+ * collection4 - graph_config.c
+ * Copyright (C) 2010  Florian octo Forster
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA  02110-1301  USA
+ *
+ * Authors:
+ *   Florian octo Forster <ff at octo.it>
+ **/
+
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
@@ -11,6 +34,7 @@
 #include "graph_list.h"
 #include "oconfig.h"
 #include "common.h"
+#include "data_provider.h"
 
 #ifndef CONFIGFILE
 # define CONFIGFILE "/etc/collection.conf"
@@ -29,6 +53,8 @@ static int dispatch_config (const oconfig_item_t *ci) /* {{{ */
     child = ci->children + i;
     if (strcasecmp ("Graph", child->key) == 0)
       graph_config_add (child);
+    else if (strcasecmp ("DataProvider", child->key) == 0)
+      data_provider_config (child);
     else
     {
       DEBUG ("Unknown config option: %s", child->key);