The Simplest Way to Make Checkmk and Step Functions Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair checkmk and step functions to trigger automated cloud workflows when system alerts fire. Checkmk spots host or service issues and tells AWS Step Functions to run recovery steps. This setup connects local or hybrid monitoring to cloud state machines. When a disk fills up or a service stops, Checkmk sends an event out. Step Functions catches that event and runs a sequence of repair tasks in order. How checkmk and step functions pass alerts and permissions The link between checkmk an

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams pair checkmk and step functions to trigger automated cloud workflows when system alerts fire. Checkmk spots host or service issues and tells AWS Step Functions to run recovery steps.

This setup connects local or hybrid monitoring to cloud state machines. When a disk fills up or a service stops, Checkmk sends an event out. Step Functions catches that event and runs a sequence of repair tasks in order.

How checkmk and step functions pass alerts and permissions

The link between checkmk and step functions starts with a notification rule in your monitor. When a check changes state, Checkmk runs an alert script on the monitoring server. That script formats the host state, service name, and alert details into a clean payload.

Next, the script makes an HTTPS call to the AWS Step Functions endpoint. To make this call work, the Checkmk host needs valid cloud permissions. If Checkmk runs inside AWS, you can attach an IAM role to the host instance.

That host role grants permission to start one specific state machine. If Checkmk runs in a local data center, it must sign requests with IAM credentials. Temporary credentials from an identity provider work much better than static keys stored on disk.

Once the request passes the IAM check, Step Functions starts a new workflow run. The state machine reads the JSON payload from Checkmk to decide what to do next. It can branch based on whether the alert is a warning or a critical error.

During the run, Step Functions calls other cloud services to fix the problem. It might scale up a group, clear old temp files, or restart a stuck container. When the state machine finishes, it can send a status update back to Checkmk.

Common failure modes and how to scope roles

Many teams rush the setup and use a single shared IAM user with broad rights. They put long-lived secret keys in plain text on the Checkmk server. If an attacker reads that file, they can control every state machine in the account.

Cloud Functions IAM + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad tokens also make audit logs hard to read during an incident. Every workflow run looks like it came from the same generic monitoring user. You cannot tell which team or rule started a sensitive state machine.

Unlogged calls between the two tools create another blind spot for ops teams. If a notification script fails silently, the recovery workflow never starts. Meanwhile, the on-call engineer assumes the state machine is already fixing the host.

To fix permissions, create one dedicated IAM role for your Checkmk notification task. Scope the policy so it can only start the exact recovery state machines it needs. Never grant permission to edit state machines or read unrelated cloud data.

Next, lock down the state machine execution role inside AWS. Give each workflow only the minimum rights needed for its repair tasks. Split diagnostic workflows from workflows that restart hosts or change production state.

Finally, restrict network paths between the monitoring server and the cloud API. Use private endpoints or strict firewall rules so only the Checkmk host can send triggers. Log every outbound alert call and every state machine start event in a central place.

Also add a dead-letter queue or fallback alert when a trigger call fails. If the Step Functions API rejects a payload, Checkmk should page a human right away. Keep payloads small and strip out any sensitive fields like emails or phone numbers.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How does Checkmk trigger an AWS Step Functions workflow?

Checkmk runs a custom notification script when a host or service changes state. That script sends a signed HTTPS request with alert data to the Step Functions API.

How should we manage AWS permissions for Checkmk alerts?

Use an IAM role attached to the host or short-lived tokens from an identity provider. Scope the policy so Checkmk can only start specific recovery state machines.

Can Step Functions send status updates back to Checkmk?

Yes, the final step in your state machine can call the Checkmk REST API. It can acknowledge the problem, add a comment, or clear a custom check status.

The query runs. The emails stay hidden.