X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fexec.c;h=1da2bdd0224ca4fa30d2394f573d0fd5f23f71fd;hb=2139f51939cc70f5668ab68a16fefdb3d52bd663;hp=4f6f9dfb9871000a0e4e7084fb451204f9857c8a;hpb=30d9db08c7608d1a9edf00c72d8728212a39bb82;p=collectd.git diff --git a/src/exec.c b/src/exec.c index 4f6f9dfb..1da2bdd0 100644 --- 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 @@ -888,11 +888,13 @@ static int exec_shutdown (void) /* {{{ */ 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);