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.

Linux

banshee/linux-collection/linux/snmp/

interfaces

Network interfaces of a Linux host by SNMP: link state, throughput, utilisation, errors, drops and IPv4 addresses.

  • linux
  • snmp
  • network
  • interface
  • net-snmp

par banshee1 installation2 versions

Network interfaces of a Linux host, by SNMP

Returns, for each interface, its link state, negotiated speed, MTU, inbound and outbound throughput, utilisation, packets, errors, drops and IPv4 addresses. Eleven watches are offered, each adjustable on the probe.

How it works

The collector reads ifTable and ifXTable (IF-MIB), and ipAddrTable (IP-MIB) for the addresses. An interface is named by ifName (eth0, ens192, bond0).

  • The link state is ifOperStatus in words (up, down, lowerlayerdown…); an interface the administrator has disabled reads disabled, so it does not pass for a link down.
  • Throughput, packets, errors and drops come from the 64-bit counters, over the interval between two runs: on the first run they are not returned; they come on the next one. An interface without 64-bit counters returns its state only.
  • Utilisation is throughput against the negotiated speed (ifHighSpeed); an interface without a negotiated speed (down, or virtual) has none.
  • Two interfaces with the same name each keep their own: the second carries its index (eth0 #12).
  • The default selection leaves out the loopback and container interfaces: everything except lo, docker* and veth*. It can be changed on the probe.

Prerequisites

  • snmpd (net-snmp) running on the host, listening on an address the poller reaches (UDP 161), with the firewall open to the poller only.
  • The view granted to the poller includes interfaces (.1.3.6.1.2.1.2), ifXTable (.1.3.6.1.2.1.31) and ipAddrTable (.1.3.6.1.2.1.4.20).
  • Read-only access, SNMPv2c or SNMPv3, set on the host or one of its folders (protocol:snmp:* variables).
# /etc/snmp/snmpd.conf
agentaddress udp:161
view   banshee included .1.3.6.1.2.1.2
view   banshee included .1.3.6.1.2.1.31
view   banshee included .1.3.6.1.2.1.4.20
rocommunity <community> 192.0.2.10 -V banshee
# or: rouser <user> priv -V banshee

Outputs

NameLabelUnitPer
linkLink stateinterface
speedNegotiated speedMbit/sinterface
mtuMTUinterface
traffic-inInbound throughputbit/sinterface
traffic-outOutbound throughputbit/sinterface
trafficTotal throughputbit/sinterface
in-percentInbound utilisation%interface
out-percentOutbound utilisation%interface
packetsPacketspackets/sinterface
errorsErrorserrors/sinterface
dropsDropspackets/sinterface
drop-percentShare of packets dropped%interface
addressesIPv4 addressesinterface

Watches

WatchKindDefaultsChecked
Link downState to avoid, on linkcritical on down, lowerlayerdownyes
Degraded negotiated speedCustomwarning below 1000 Mbit/sno
Inbound saturationAbove a threshold, on in-percentwarning 70 %, critical 90 %, for 5 minyes
Outbound saturationAbove a threshold, on out-percentwarning 70 %, critical 90 %, for 5 minyes
ErrorsCustomwarning beyond 1 error/min, critical beyond 0.1 % of trafficyes
Dropped packetsAbove a threshold, on drop-percentwarning 0.5 %, critical 2 %yes
Unusual trafficUnusual value, on trafficnormal sensitivity, floor 10,000,000 bit/sno
Silent interfaceNo activity, on packetswarning after 10 minno
Missing interfaceExpected instances, on linkno expected nameno
Unexpected MTUExpected value, on mtuwarning when not 1500no
No IPv4 address leftBelow a threshold, on addressescritical below 1no

Limits

  • Neither duplex nor link changes are read: IF-MIB does not carry them. The linux/ssh/interfaces collector reads them, and the members of a bond.
  • IPv6 addresses are not counted: ipAddrTable lists IPv4 only.
  • A virtual interface (bridge, bond, VLAN) often has no negotiated speed: its utilisation is not returned.