banshee is under active development: collectors will keep changing, and a version you publish will likely need adjustments. For stable use, wait for version 1.0.0.

Network

banshee/network-collection/network/tcp/

ports

Whether TCP ports of a host accept a connection, and how fast, to see a service down or a port closed by a firewall.

  • network
  • tcp
  • port
  • availability
  • service
  • firewall

by banshee1 installation2 versions

v2Latest

Published on October 28, 2026. One naming convention across collections; documentation completed.

TCP ports of a host

Says, for each TCP port of a list, whether the host accepts a connection on it, and how long the connection took to open. Two watches are offered: a port closed, and a slow connection.

Versions

Generic: any host, in IPv4 or IPv6, and any service that listens on TCP: only the opening of the connection is read.

How it works

For each port of the list set on the probe, the poller opens a TCP connection to the address of the host (host:address), IPv4 or IPv6, and closes it at once, sending nothing: the service behind the port receives no request.

VariableSaysDefault
tcp:portsthe ports to open, separated by commas, set on the probe: 22, 443, 3389— (required)
protocol:tcp:timeouthow long the opening of a connection is awaited, in seconds, 1 to 605
  • A port is open when the connection opens; its connection time is returned, in milliseconds.
  • A port is closed when the host refuses the connection, when nothing answers within the timeout (a firewall that drops it), or when a router says the host cannot be reached. Only its state is returned, no.
  • Each port is an instance, named by its number: the selection of the probe can leave some out, and "Port closed" names the port.
  • A port written twice is opened once. A port outside 1 to 65535, or a list without a port, stops the collector as misconfigured, before any connection.

A name in host:address is resolved by the poller's system; a name that does not resolve stops the collector as unreachable.

Prerequisites

  • The ports reachable from the poller: a firewall that drops the poller's connections shows the port closed.
  • tcp:ports set on the probe.

Variables

NameLabelSaysDefault
tcp:portsPortsthe TCP ports to open, separated by commas, 22, 443, 3389—

Outputs

NameLabelUnitPer instance
openPort open—yes, per port
connect-timeConnection timemsyes, per port, when it is open

Watches

NameTitleKindDefaultsChecked by default
closedPort closedstate to avoid, on opencritical on noyes
slowSlow connectionabove a threshold, on connect-timewarning above 200 ms, critical above 1000 msno

Limits

  • An open port says that something listens, not that the service answers well: watch the service itself where a collector reads it (web/https/page, network/tls/certificate).
  • A closed port and a host down look the same here: watch the host with network/icmp/ping to tell them apart.
  • The ports are opened one after the other: a long list of filtered ports takes as many timeouts.