Naming a backend adds no value to the configuration and only serves to
complicate things. Multiple unamed carbon backends are still allowed.
Documentation updated to reflect the change.
/* write_graphite plugin configuation example
*
* <Plugin write_graphite>
- * <Carbon "local-agent">
+ * <Carbon>
* Host "localhost"
* Port 2003
* Prefix "collectd"
*/
struct wg_callback
{
- char *name;
-
int sock_fd;
struct hostent *server;
wg_flush_nolock (/* timeout = */ 0, cb);
close(cb->sock_fd);
- sfree(cb->name);
sfree(cb->host);
sfree(cb->prefix);
memset (cb, 0, sizeof (*cb));
cb->sock_fd = -1;
cb->host = NULL;
- cb->name = NULL;
cb->port = 2003;
cb->prefix = NULL;
cb->server = NULL;
pthread_mutex_init (&cb->send_lock, /* attr = */ NULL);
- config_set_string (&cb->name, ci);
- if (cb->name == NULL)
- return (-1);
-
for (i = 0; i < ci->children_num; i++)
{
oconfig_item_t *child = ci->children + i;