- rrd_update_file (host, buf, val,
- connections_ds_def, connections_ds_num);
-}
-
-static void requests_write (char *host, char *inst, char *val)
-{
- rrd_update_file (host, requests_file, val,
- requests_ds_def, requests_ds_num);
-}
-
-#if NGINX_HAVE_READ
-static void submit (char *type, char *inst, long long value)
-{
- char buf[1024];
- int status;
-
- DBG ("type = %s; inst = %s; value = %lli;",
- type, (inst == NULL) ? "(nil)" : inst, value);
+ vl.values = values;
+ vl.values_len = 1;
+ vl.time = time (NULL);
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "nginx", sizeof (vl.plugin));
+ sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance));
+ sstrncpy (vl.type, type, sizeof (vl.type));