From: Marc Falzon Date: Fri, 19 Feb 2016 11:07:07 +0000 (+0100) Subject: Report packets dropped in interface plugin X-Git-Tag: collectd-5.6.0~469^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b13246861a25336f8f645752fe111a9a82e470f1;p=collectd.git Report packets dropped in interface plugin Add `if_dropped` to the metrics reported by the interface plugin. --- diff --git a/src/interface.c b/src/interface.c index 1c01f6ff..caaad47a 100644 --- a/src/interface.c +++ b/src/interface.c @@ -286,6 +286,10 @@ static int interface_read (void) incoming = atoll (fields[2]); outgoing = atoll (fields[10]); if_submit (device, "if_errors", incoming, outgoing); + + incoming = atoll (fields[3]); + outgoing = atoll (fields[11]); + if_submit (device, "if_dropped", incoming, outgoing); } fclose (fh);