/*
* Create the perl interpreter and register it with collectd.
*/
-void module_register (void)
+void module_register (modreg_e load)
{
char *embed_argv[] = { "", "-e", "bootstrap Collectd \""VERSION"\"", NULL };
int embed_argc = 3;
plugin_register_log ("perl", perl_log);
plugin_register_config ("perl", perl_config, config_keys, config_keys_num);
plugin_register_init ("perl", perl_init);
- plugin_register_read ("perl", perl_read);
+
+ if (load & MR_READ)
+ plugin_register_read ("perl", perl_read);
+
plugin_register_write ("perl", perl_write);
plugin_register_shutdown ("perl", perl_shutdown);
return;