TCP Listener
42-monitoring-tcp.yaml
TCP
What this example does
Monitoring integration: TCP Listener. Shows how to report checks to existing operational monitoring.
Checks and behavior
- Checks that a TCP connection can be established to the configured host and port; it does not prove protocol login or mail delivery.
- Applies response-time thresholds for operational alerting.
- Formats results for checkmk output.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
# Copyright (c) 2026 mati peterson. Maintainer: mati peterson <ipsonic@mailbox.org>. Project: https://ipsonic.com/probe/. Disclaimer: Provided AS IS, without warranty of any kind. Use at your own risk; validate checks and configurations before production use.
name: "TCP Listener"
url: "tcp://db.example.invalid:5432"
timeouts:
connect: 2
response: 5
monitoring:
service_name: "Database TCP"
output: checkmk
thresholds:
response_time:
warning: 1
critical: 3