diff --git a/src/tcpconns.c b/src/tcpconns.c
index fdf7ec1bf1ed867c5f08080c89e0e8a235557330..8c7beea5808fef6e6c29bc752b8e74a2bd45e40d 100644 (file)
--- a/src/tcpconns.c
+++ b/src/tcpconns.c
vl.time = time (NULL);
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "tcpconns");
+ strcpy (vl.type, "tcp_connections");
if (((port_collect_listening != 0) && (pe->flags & PORT_IS_LISTENING))
|| (pe->flags & PORT_COLLECT_LOCAL))
strncpy (vl.type_instance, tcp_state[i], sizeof (vl.type_instance));
vl.type_instance[sizeof (vl.type_instance) - 1] = '\0';
- plugin_dispatch_values ("tcp_connections", &vl);
+ plugin_dispatch_values (&vl);
}
}
strncpy (vl.type_instance, tcp_state[i], sizeof (vl.type_instance));
vl.type_instance[sizeof (vl.type_instance) - 1] = '\0';
- plugin_dispatch_values ("tcp_connections", &vl);
+ plugin_dispatch_values (&vl);
}
}
} /* void conn_submit */