Code

Added first version of ACPI support to the battery plugin
[collectd.git] / src / plugin.c
index abc08e579688e179889ca14d88f32a2fd812a9b2..98add242ce7ec84478b35e82507d8afd718792db 100644 (file)
@@ -292,7 +292,7 @@ void plugin_register (char *type,
 #ifdef HAVE_LIBRRD
        if ((operating_mode == MODE_LOCAL) || (operating_mode == MODE_CLIENT))
 #endif
-               if (read == NULL)
+               if ((init != NULL) && (read == NULL))
                        syslog (LOG_NOTICE, "Plugin `%s' doesn't provide a read function.", type);
 
        if ((p = (plugin_t *) malloc (sizeof (plugin_t))) == NULL)