diff --git a/src/oracle.c b/src/oracle.c
index 3fe21254ab33f08391ec7c45c6c26216ec074816..e648fb7741cf3bb67c76d22de80ceb036d44a068 100644 (file)
--- a/src/oracle.c
+++ b/src/oracle.c
oconfig_item_t *child = ci->children + i;
if (strcasecmp ("Query", child->key) == 0)
udb_query_create (&queries, &queries_num, child,
- /* callback = */ NULL, /* legacy mode = */ 0);
+ /* callback = */ NULL);
else if (strcasecmp ("Database", child->key) == 0)
o_config_add_database (child);
else
status = udb_query_prepare_result (q, prep_area, hostname_g,
/* plugin = */ "oracle", db->name, column_names, column_num,
- /* interval = */ -1);
+ /* interval = */ plugin_interval);
if (status != 0)
{
ERROR ("oracle plugin: o_read_database_query (%s, %s): "
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 */