Check network-connections


Counts tcp, tcp6, udp and udp6 connection details. Emulating ss -antp.

  • CLOSED: Closed. The socket is not being used.

  • CLOSING: Closed, then remote shutdown; awaiting acknowledgment.

  • CLOSE_WAIT: Remote shutdown; waiting for the socket to close - means the other end of the connection has been closed while the local end is still waiting for the application to close.

  • ESTABLISHED: Connection has been established.

  • FIN_WAIT_1: Socket closed; shutting down connection.

  • FIN_WAIT_2: Socket closed; waiting for shutdown from remote.

  • IDLE: Idle, opened but not bound.

  • LAST_ACK: Remote shutdown, then closed; awaiting acknowledgment.

  • LISTEN: Listening for incoming connections.

  • SYN_RECEIVED: Active/initiate synchronization received and the connection under way.

  • SYN_SENT: Actively trying to establish connection.

  • TIME_WAIT: Wait after close for remote shutdown retransmission.

Does not WARN or CRIT on anything, because we currently do not know on what. Until there is some clarification (you could submit an issue), this check is useful for debugging purposes.

Fact Sheet

Check Plugin Download

Check Interval Recommendation

Once a minute

Can be called without parameters


Available for

Python 2, Python 3, Windows


Python module psutil


usage: network-connections [-h] [-V]

Counts tcp, tcp6, udp and udp6 connections.

optional arguments:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit

Usage Examples



tcp ESTABLISHED: 19, udp NONE: 16, tcp LISTEN: 9, udp6 NONE: 5, tcp CLOSE WAIT: 4, tcp6 LISTEN: 4, tcp TIME WAIT: 1, tcp6 CLOSE WAIT: 1


  • Always returns OK.

Perfdata / Metrics

As an example:

  • tcp_CLOSE_WAIT


  • tcp_LISTEN

  • tcp_TIME_WAIT


  • tcp6_LISTEN

  • udp_NONE

  • udp6_NONE