Code

Introduce two global variables: `hostname_g' and `interval_g'.
[collectd.git] / src / mbmon.c
index 0d9cd163215b1fd63dffca298c9cbaa3235e8fd2..e03f2f9b627d5ad61454e4ccd77993e5d74ecd3f 100644 (file)
@@ -252,7 +252,7 @@ static void mbmon_submit (const char *type, const char *type_instance,
        vl.values = values;
        vl.values_len = 1;
        vl.time = time (NULL);
-       strcpy (vl.host, hostname);
+       strcpy (vl.host, hostname_g);
        strcpy (vl.plugin, "mbmon");
        strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));