banshee est en développement actif : les collecteurs vont encore changer, et une version que vous publiez demandera sans doute des ajustements. Pour un usage stable, attendez la version 1.0.0.

Network

banshee/network-collection/network/snmp/

interface-traffic

The traffic of each interface of a switch, a router or a firewall by SNMP: throughput, usage, packets, errors and drops.

  • network
  • snmp
  • if-mib
  • traffic
  • bandwidth
  • switch
  • router

par banshee1 installation2 versions

v2Dernière

Publiée le 28 octobre 2026. One naming convention across collections; documentation completed.

Traffic of the network interfaces of a device, by SNMP

Returns, for each interface of a switch, a router or a firewall, its description, its inbound and outbound traffic, its usage of the negotiated speed, its packets, errors and drops. Six watches are offered, each one set on the probe.

The state of the links is read by network/snmp/interfaces.

Versions

Generic: any device whose agent serves IF-MIB with its 64-bit counters (ifXTable), whatever its brand, in SNMPv2c or SNMPv3.

How it works

The collector reads ifTable and ifXTable (IF-MIB). An interface is named by ifName (Gi1/0/1, ether1, ge-0/0/0), as in network/snmp/interfaces.

  • Traffic, packets, errors and drops come from the 64-bit counters (ifHCInOctets, ifHCOutOctets, the unicast, multicast and broadcast packets) and from the error and discard counters, over the interval between two runs: on the first run they are not returned; they come on the next one. Nor after the device restarts, when the counters go back.
  • Usage is traffic against the negotiated speed (ifHighSpeed); an interface without a negotiated speed (down, or virtual) has none.
  • The share of drops is the dropped packets against the packets that passed and those dropped.
  • The description is ifAlias, the text the administrator gives a port (uplink-core); a port without one returns none.
  • Two interfaces with the same name each keep their own: the second carries its index (ether1 #12).
  • The default selection leaves out lo, lo0*, Lo*, Nu* and Null*, as network/snmp/interfaces does. It can be changed on the probe.

The collector only reads: SNMP sends nothing but reads.

Prerequisites

  • The SNMP agent of the device enabled, reachable from the poller (UDP 161), its access restricted to the poller.
  • The view granted to the poller includes interfaces (.1.3.6.1.2.1.2) and ifXTable (.1.3.6.1.2.1.31).
  • SNMPv2c or SNMPv3: the 64-bit counters do not exist in SNMPv1. Read-only access, set on the host or one of its folders (protocol:snmp:* variables).

Outputs

NameLabelUnitPer instance
aliasDescription—yes, per interface
traffic-inInbound trafficbit/syes, per interface
traffic-outOutbound trafficbit/syes, per interface
trafficTotal trafficbit/syes, per interface
in-percentInbound usage%yes, per interface
out-percentOutbound usage%yes, per interface
packetsPacketspackets/syes, per interface
errorsErrorserrors/syes, per interface
dropsDropspackets/syes, per interface
drop-percentShare of packets dropped%yes, per interface

Watches

NameTitleKindDefaultsChecked by default
saturation-inInbound saturationabove a threshold, on in-percentwarning above 70 %, critical above 90 %, for 5 minyes
saturation-outOutbound saturationabove a threshold, on out-percentwarning above 70 %, critical above 90 %, for 5 minyes
errorsErrorsjudged by the collectorwarning above 1 error per minute; critical above 0.1 % of the trafficyes
dropsPackets droppedabove a threshold, on drop-percentwarning above 0.5 %, critical above 2 %yes
traffic-unusualUnusual trafficoff its habit, on trafficnormal sensitivity, never under 10,000,000 bit/s (10 Mbit/s)no
muteSilent interfaceno activity, on packetswarning after 10 min at zero packets; no criticalno

"Unusual traffic" needs the history of the measure: until the poller has learnt it, the watch says it is learning and raises nothing.

Limits

  • An interface without 64-bit counters returns nothing; the 32-bit counters are not read, as they wrap in less than a minute at 1 Gbit/s.
  • The traffic is an average over the interval of the probe: a burst shorter than that interval is smoothed out.
  • Drops on a switch port often mean congestion of its output queue, not a fault of the link.
  • An interface renamed is a new instance.