CheckMK Plugin
A CheckMK special agent plugin shows flowwler's operational health and active mitigations as CheckMK services, by polling the REST API. It is deliberately shallow: no traffic-rate time series or attack history. Use it alongside the Prometheus metrics, not instead of them.
The plugin is a separate project (checkmk-flowwler), not bundled with flowwler, and not yet published to exchange.checkmk.com.
Requirements
| Component | Minimum version |
|---|---|
| CheckMK | 2.3.0p0 |
| flowwler | v26.11.01 or later (it contains flowwler#42: snake_case keys on /api/v1/bgp/peers) |
No extra libraries are needed.
Setup
- Install the MKP:
bash mkp install flowwler-<version>.mkp cmk -R - Create a CheckMK host whose address is the flowwler daemon's hostname or IP.
- Add the agent rule under Setup → Agents → Other integrations → Networking: rule flowwler, with scheme (default
http), port (default9731) and authentication (default: none). - Run a service discovery on the host.
Authentication
If the daemon has an API key (http.auth.api_key, see Configuration), select API Key in the agent rule. Bearer token and HTTP Basic Auth are not supported by the plugin.
Services
| Service | Item | Reports |
|---|---|---|
| flowwler Status | none | Version, uptime, dry-run mode; CRIT if the last config reload failed |
flowwler Router <router> |
flow exporter address | Up/down, protocol, sampling rate |
flowwler BGP Peer <neighbor> |
BGP neighbor address | Session established or not, ASN, update counts |
flowwler Notification Target <name> |
target name | Whether the most recent delivery succeeded |
flowwler Prefix Source <group>/<source> |
group + source | Age of the last successful IRR/NetBox/URL refresh |
flowwler Group <name> |
group name | Victims under mitigation and the worst phase |
| flowwler Mitigations | none | Count of active mitigations by type and source |
Status and Mitigations have fixed alerting (Mitigations is always OK). All other thresholds are set under Setup → Services → Service monitoring rules.
flowwler Router
One service per flow exporter (NetFlow/IPFIX/sFlow). A router is down when no packets arrived in the last 120 seconds (see Metrics).
| Parameter | Default |
|---|---|
| State when router is down | CRIT |
Example: Up (netflow, sampling 1:100) / Down (sflow)
flowwler BGP Peer
One service per configured BGP peer.
| Parameter | Default |
|---|---|
| State when session is not established | CRIT |
Example: Established (AS65000) / Session state: idle
flowwler Notification Target
One service per notification target (see Notifications).
| Parameter | Default |
|---|---|
| State when the last delivery attempt failed | CRIT |
CRIT by default because a broken alert channel stays silent until the next real attack.
Example: Last delivery succeeded at 2026-08-30T09:00:00Z / Last delivery failed: connection refused
flowwler Prefix Source
One service per group with an external prefix source (IRR, NetBox or URL; see Configuration).
| Parameter | Default |
|---|---|
| Warn when last refresh is older than | 24 hours |
| Critical when last refresh is older than | 72 hours |
Example: Last refreshed 1.2h ago (340 IPv4 / 12 IPv6 routes)
flowwler Group
One service per group: how many victims are under mitigation and the worst phase among them. Per-victim traffic rates are left to Metrics and Grafana.
| Parameter | Default |
|---|---|
State when any victim is in phase active |
WARN |
State when victims are only in phase hold-down |
OK |
active defaults to WARN because flowwler has usually already applied a mitigation by then.
Example: 2 active victim(s), worst phase: active
flowwler Mitigations
A global summary of active mitigations (blackhole, subnet-blackhole, flowspec; auto and manual), useful for manual mitigations the group service may not show. Always OK.
Example: 3 active mitigation(s): 2 flowspec, 1 blackhole
When flowwler is partly unavailable
The agent polls GET /health first.
- Connection failure, 401, or any non-2xx other than 503: the whole agent run aborts and no data is reported.
- 503 with a JSON body (
{"status":"unhealthy","failing":[...]}): flowwler is reachable but a component is down. The agent keeps going and all other services keep reporting, while flowwler Status goes CRIT and lists the failing components, for exampleUnhealthy: failing components: bgp, ingest. A 503 without a JSON object body still aborts the run.
After /health has answered, the other endpoints are fetched independently. If one fails (timeout, non-2xx, malformed JSON), the affected services go UNKNOWN with Fetch failed: <error>, instead of looking like an empty list, and every other service keeps reporting. Services that were already discovered are kept, and nothing new is discovered from the failed section. The agent's stderr (or cmk -d <host>) shows which endpoint failed.
Data notes
- Routers: when flowwler omits
sampling_rate(unknown or 0), the service showssampling unknown. - Prefix sources: a missing or zero
last_refresh_at(0001-01-01T00:00:00Z) means the source never refreshed; the service is UNKNOWN withNo successful refresh recorded. - BGP peers: the plugin reads the snake_case keys of
GET /api/v1/bgp/peers(see REST API). Older daemons returned PascalCase keys, which the plugin does not support.