char response[128];
int status;
- DEBUG("teamspeak2 plugin: Select server %i", vserver->port);
-
/* Send request */
snprintf (command, sizeof (command), "sel %i\r\n", vserver->port);
command[sizeof (command) - 1] = 0;
gauge_t packet_loss = NAN;
int status;
- DEBUG("teamspeak2 plugin: Get average packet loss (VServer: %i)",
- vserver->port);
-
status = tss2_send_request (write_fh, "gapl\r\n");
if (status != 0)
{
if (vserver == NULL)
{
/* Request global information */
- DEBUG("teamspeak2 plugin: Read global server information");
-
memset (plugin_instance, 0, sizeof (plugin_instance));
status = tss2_send_request (write_fh, "gi\r\n");
else
{
/* Request server information */
- DEBUG("teamspeak2 plugin: Read vserver's %i information!", vserver->port);
-
snprintf (plugin_instance, sizeof (plugin_instance), "vserver%i",
vserver->port);
plugin_instance[sizeof (plugin_instance) - 1] = 0;
int success = 0;
int status;
- DEBUG("teamspeak2 plugin: Poll everything");
-
/* Handle global server variables */
status = tss2_read_vserver (NULL);
if (status == 0)
continue;
}
}
- DEBUG("teamspeak2 plugin: Poll done");
if (success == 0)
return (-1);