Code

powerdns plugin: Use the “ipt_packets” type rather than “io_packets”.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 8 Sep 2009 15:45:56 +0000 (17:45 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 8 Sep 2009 15:45:56 +0000 (17:45 +0200)
“io_packets”, as the name suggests, requires incoming *and* outgoing
packets. The infrastructure of the powerdns plugin uses only value lists
with one data source though.

Thanks to Luke for noticing!

src/powerdns.c

index 7288c37239b4f55a9477ae7d8c07be4d57accfa9..a2e5b359c94059ccdb7d344fd2a651cbb92bb06c 100644 (file)
@@ -164,13 +164,13 @@ statname_lookup_t lookup_table[] = /* {{{ */
   {"latency",                "latency",      NULL},
 
   /* Other stuff.. */
-  {"corrupt-packets",        "io_packets",   "corrupt"},
+  {"corrupt-packets",        "ipt_packets",  "corrupt"},
   {"deferred-cache-inserts", "counter",      "cache-deferred_insert"},
   {"deferred-cache-lookup",  "counter",      "cache-deferred_lookup"},
   {"qsize-a",                "cache_size",   "answers"},
   {"qsize-q",                "cache_size",   "questions"},
-  {"servfail-packets",       "io_packets",   "servfail"},
-  {"timedout-packets",       "io_packets",   "timeout"},
+  {"servfail-packets",       "ipt_packets",  "servfail"},
+  {"timedout-packets",       "ipt_packets",  "timeout"},
   {"udp4-answers",           "dns_answer",   "udp4"},
   {"udp4-queries",           "dns_question", "queries-udp4"},
   {"udp6-answers",           "dns_answer",   "udp6"},