Code

collectd.conf(5): Document the per-plugin interval configuration.
[collectd.git] / src / oracle.c
index 03567494f227cd281e41d528fbbee7fc67823620..e648fb7741cf3bb67c76d22de80ceb036d44a068 100644 (file)
@@ -586,7 +586,7 @@ static int o_read_database_query (o_database_t *db, /* {{{ */
 
   status = udb_query_prepare_result (q, prep_area, hostname_g,
       /* plugin = */ "oracle", db->name, column_names, column_num,
-      /* interval = */ 0);
+      /* interval = */ plugin_interval);
   if (status != 0)
   {
     ERROR ("oracle plugin: o_read_database_query (%s, %s): "
@@ -745,11 +745,13 @@ static int o_shutdown (void) /* {{{ */
   return (0);
 } /* }}} int o_shutdown */
 
-void module_register (void) /* {{{ */
+void module_register (plugin_loaddata_t *data) /* {{{ */
 {
+  PLUGIN_INIT_INTERVAL (data);
+
   plugin_register_complex_config ("oracle", o_config);
   plugin_register_init ("oracle", o_init);
-  plugin_register_read ("oracle", o_read);
+  plugin_register_read ("oracle", o_read, plugin_interval);
   plugin_register_shutdown ("oracle", o_shutdown);
 } /* }}} void module_register */