From 00ef8d95a61a172f89c3ae938ba624ebef6c8c24 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 10 Apr 2008 14:04:39 +0200 Subject: [PATCH] teamspeak2 plugin: Introduce and use the `io_octets' and `io_packets' types. --- src/teamspeak2.c | 4 ++-- src/types.db | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/teamspeak2.c b/src/teamspeak2.c index d0d85fff..23a04d61 100644 --- a/src/teamspeak2.c +++ b/src/teamspeak2.c @@ -488,10 +488,10 @@ static int tss2_read_vserver (vserver_list_t *vserver) tss2_submit_gauge (plugin_instance, "users", users); if ((valid & 0x06) == 0x06) - tss2_submit_io (plugin_instance, "if_octets", rx_octets, tx_octets); + tss2_submit_io (plugin_instance, "io_octets", rx_octets, tx_octets); if ((valid & 0x18) == 0x18) - tss2_submit_io (plugin_instance, "if_packets", rx_packets, tx_packets); + tss2_submit_io (plugin_instance, "io_packets", rx_packets, tx_packets); if (valid == 0) return (-1); diff --git a/src/types.db b/src/types.db index 942c7ba1..58d3b3a7 100644 --- a/src/types.db +++ b/src/types.db @@ -40,6 +40,8 @@ if_octets rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295 if_packets rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295 if_rx_errors value:COUNTER:0:4294967295 if_tx_errors value:COUNTER:0:4294967295 +io_octets rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295 +io_packets rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295 ipt_bytes value:COUNTER:0:134217728 ipt_packets value:COUNTER:0:134217728 irq value:COUNTER:U:65535 @@ -79,15 +81,13 @@ temperature value:GAUGE:-273.15:U time_dispersion seconds:GAUGE:-1000000:1000000 timeleft timeleft:GAUGE:0:3600 time_offset seconds:GAUGE:-1000000:1000000 -octets send:COUNTER:0:4294967295, received:COUNTER:0:4294967295 -packets send:COUNTER:0:4294967295, received:COUNTER:0:4294967295 users users:GAUGE:0:65535 virt_cpu_total ns:COUNTER:0:256000000000 virt_vcpu ns:COUNTER:0:1000000000 vmpage_action value:COUNTER:0:4294967295 -vmpage_number value:GAUGE:0:4294967295 vmpage_faults minflt:COUNTER:0:9223372036854775807, majflt:COUNTER:0:9223372036854775807 vmpage_io in:COUNTER:0:4294967295, out:COUNTER:0:4294967295 +vmpage_number value:GAUGE:0:4294967295 voltage_threshold value:GAUGE:U:U, threshold:GAUGE:U:U voltage value:GAUGE:U:U vs_memory value:GAUGE:0:9223372036854775807 -- 2.30.2