- int len;
- char buffer[BUFSIZE];
-
- len = snprintf (buffer, BUFSIZE,
- "N:%lld:%lld:%lld", unix_in, unix_out, unix_failed);
-
- if ((len > 0) && (len < BUFSIZE))
- plugin_submit ("vserver_unix", inst, buffer);
-
-
- len = snprintf (buffer, BUFSIZE,
- "N:%lld:%lld:%lld", inet_in, inet_out, inet_failed);
-
- if ((len > 0) && (len < BUFSIZE))
- plugin_submit ("vserver_inet", inst, buffer);
-
-
- len = snprintf (buffer, BUFSIZE,
- "N:%lld:%lld:%lld", inet6_in, inet6_out, inet6_failed);
-
- if ((len > 0) && (len < BUFSIZE))
- plugin_submit ("vserver_inet6", inst, buffer);
-
-
- len = snprintf (buffer, BUFSIZE,
- "N:%lld:%lld:%lld", other_in, other_out, other_failed);
-
- if ((len > 0) && (len < BUFSIZE))
- plugin_submit ("vserver_other", inst, buffer);
-
-
- len = snprintf (buffer, BUFSIZE,
- "N:%lld:%lld:%lld", unspec_in, unspec_out, unspec_failed);
-
- if ((len > 0) && (len < BUFSIZE))
- plugin_submit ("vserver_unspec", inst, buffer);
-