+ return plugin_dispatch_values(&vl);
+}
+
+/*
+ * This function is called in regular intervalls to collect the data.
+ */
+static int my_read(void) {
+ /* do the magic to read the data */
+ gauge_t value = random();
+
+ if (my_submit(value) != 0)
+ WARNING("myplugin plugin: Dispatching a random value failed.");