diff --git a/src/exec.c b/src/exec.c
index 4f6f9dfb9871000a0e4e7084fb451204f9857c8a..1da2bdd0224ca4fa30d2394f573d0fd5f23f71fd 100644 (file)
--- a/src/exec.c
+++ b/src/exec.c
@@ -533,7 +533,7 @@ static int fork_child (program_list_t *pl, int *fd_in, int *fd_out, int *fd_err)
static int parse_line (char *buffer) /* {{{ */
{
if (strncasecmp ("PUTVAL", buffer, strlen ("PUTVAL")) == 0)
- return (handle_putval (stdout, buffer));
+ return (handle_putval (stdout, buffer, /* default_interval = */ plugin_interval));
else if (strncasecmp ("PUTNOTIF", buffer, strlen ("PUTNOTIF")) == 0)
return (handle_putnotif (stdout, buffer));
else
return (0);
} /* int exec_shutdown }}} */
-void module_register (void)
+void module_register (plugin_loaddata_t *data)
{
+ PLUGIN_INIT_INTERVAL (data);
+
plugin_register_complex_config ("exec", exec_config);
plugin_register_init ("exec", exec_init);
- plugin_register_read ("exec", exec_read);
+ plugin_register_read ("exec", exec_read, plugin_interval);
plugin_register_notification ("exec", exec_notification,
/* user_data = */ NULL);
plugin_register_shutdown ("exec", exec_shutdown);