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/ssh/

interfaces

Network interfaces of a Linux by SSH: link, speed, traffic, errors, addresses and bonds.

  • linux
  • ssh
  • network
  • interface
  • bond
  • alpine
  • debian
  • fedora

par banshee1 installation2 versions

v2Dernière

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

Network interfaces of a Linux, by SSH

Returns, for each network interface, the link state, the negotiated speed and duplex, the MTU, the traffic, errors and drops, its IP addresses, and the members of a bond. Thirteen watches are offered, each one set on the probe.

Versions

Generic: /sys/class/net is written by the kernel the same way on Alpine, Debian and Fedora; -s and -H are options of BusyBox as of GNU grep; ip -o … scope global is understood by iproute2 (Debian, Fedora) and by the ip applet of BusyBox (Alpine). A kernel older than 3.15, without carrier_changes, is read too, without link changes.

How it works

The collector reads in one command the files of /sys/class/net (state, speed, duplex, MTU, bond members, bridge port, counters) with grep -s -H, then counts the global addresses of each interface with ip -o addr show scope global.

  • Traffic comes from the counters over the interval between two runs: there is none on the first run.
  • A file a driver does not serve (the speed of a link that is down, of a Wi-Fi card) is silenced by grep -s, and its value is missing.
  • The members of a bond or of a bridge are not judged on their addresses: they carry none.
  • A missing ip command stops the collector, with its error; nothing readable in /sys/class/net stops it misconfigured.
  • Nothing is written on the target.

Prerequisites

  • an SSH account for monitoring, without write rights;
  • the fingerprint of the server's host key, set in protocol:ssh:fingerprint (not needed when the Security settings trust the first SSH fingerprint presented).

Outputs

NameLabelUnitPer instance
linkLink state—yes, per interface
carrier-changesLink changes since boot—yes, per interface
speedNegotiated speedMbit/syes, per interface
duplexDuplex—yes, per interface
mtuMTU—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
addressesIP addresses—yes, per interface
bond-membersBond members—yes, per bond
bond-members-upActive bond members—yes, per bond

The link state is up, down, lowerlayerdown…, the duplex full or half; the usage is the traffic over the negotiated speed; packets, errors and drops count both ways; the addresses are the global ones; an active bond member is one whose link is up. By default, lo, docker* and veth* are left out; the selection is changed on the probe.

Watches

NameTitleKindDefaultsChecked by default
link-downLink downstate, on linkcritical on down, lowerlayerdownyes
link-flappingLink flappingincrease, on carrier-changeswarning beyond 3 in 1 hyes
speed-degradedNegotiated speed degradedcustomwarning below the expected speed, 1000 Mbit/s; critical when half duplexno
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
errorsErrorscustomwarning beyond 1 error/min, critical beyond 0.1 % of trafficyes
dropsPackets droppedabove a threshold, on drop-percentwarning above 0.5 %, critical above 2 %yes
traffic-unusualUnusual traffichabit, on trafficsensitivity normal, floor 10,000,000 bit/sno
muteSilent interfacesilence, on packetswarning after 10 minno
missingInterface missingexpected instances, on linkno interface named: it raises nothing until names are set on the probeno
bond-degradedBond degradedcustomwarning when a member is down, critical when 1 is leftyes
mtuUnexpected MTUexpected value, on mtuwarning when not 1500no
no-addressNo IP address leftbelow a threshold, on addressescritical below 1no

Limits

  • Virtual interfaces (virtio, most cloud NICs) report no speed: they have no usage percent and no speed-degraded.
  • The counters of a bond add up those of its members: the traffic shows on both.