X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnginx.c;h=7283488f5de49189c5d6c5ac9b3df0ee31be40f1;hb=08a5f153af9ec41dcb098034e836cb85ea940486;hp=e346cee30a9d8696af19a34058fb4b2ff4ff5dd1;hpb=da612fa9c6a3343b43789569d64197d7c690be52;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index e346cee3..7283488f 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -30,7 +30,6 @@ #include "common.h" #include "plugin.h" -#include "configfile.h" #include @@ -211,10 +210,8 @@ static void submit (const char *type, const char *inst, long long value) return; vl.values = values; - vl.values_len = 1; - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); + vl.values_len = STATIC_ARRAY_SIZE (values); sstrncpy (vl.plugin, "nginx", sizeof (vl.plugin)); - sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance)); sstrncpy (vl.type, type, sizeof (vl.type)); if (inst != NULL)