The Simplest Way to Make Checkmk and Teamcity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link checkmk and teamcity so build runs and server health checks share one state. TeamCity sends build events to Checkmk to pause alerts during planned releases. Checkmk watches your servers, apps, and network ports around the clock. TeamCity builds, tests, and ships your code to those same servers. When these two tools do not talk, a deploy triggers false alarms. Your on-call team wakes up for a planned server restart. Linking the two tools fixes this gap and keeps alerts useful. How che

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.

You link checkmk and teamcity so build runs and server health checks share one state. TeamCity sends build events to Checkmk to pause alerts during planned releases.

Checkmk watches your servers, apps, and network ports around the clock. TeamCity builds, tests, and ships your code to those same servers. When these two tools do not talk, a deploy triggers false alarms. Your on-call team wakes up for a planned server restart. Linking the two tools fixes this gap and keeps alerts useful.

How checkmk and teamcity share identity and data

Data flows both ways between your build server and your health monitor. Before TeamCity deploys new code, it calls the Checkmk web API. That call puts the target host into a planned downtime window. Once the deploy finishes, TeamCity tells Checkmk to turn alerts back on. Checkmk can also read TeamCity queue length and build agent health.

To make this work, each tool needs a way to log in. Most teams create a dedicated user account inside Checkmk for TeamCity. TeamCity holds that secret key inside its project settings store. When a build step runs, the runner sends that key over HTTPS. Going the other way, Checkmk uses a read-only token from TeamCity.

Good role scope keeps this two-way traffic safe from abuse. The Checkmk user for TeamCity should only set downtime on specific host groups. It should never have rights to delete hosts or change alert rules. The TeamCity token for Checkmk only needs read rights on build metrics. It should never have rights to start a build or read secrets.

The biggest risk in this setup is a shared admin key. Teams often paste a full admin secret into a global TeamCity variable. Any developer who can edit a build script can read that secret. They could use it to silence alerts across the whole company. Worse, a leaked build log might print the raw key in plain text.

Static keys also create blind spots in your audit logs. When ten build pipelines share one Checkmk user, every action looks the same. You cannot tell which team or project silenced a host alert. If a build script hangs and leaves a server muted, nobody knows why. Rotating that shared key is also painful because it breaks twenty pipelines at once.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Network sprawl causes another set of headaches for ops teams. Build agents often sit in different cloud zones than the monitoring core. Opening wide firewall rules so every build agent reaches Checkmk adds risk. A compromised build runner could scan your monitoring server and map your network.

Scoping roles and network paths for safer deploys

You can fix these risks by splitting roles by project and stage. Give staging pipelines one Checkmk user and production pipelines a separate user. Lock each user to its own folder of hosts inside Checkmk. If a test build goes wrong, it cannot mute production server alerts.

Next, clean up how your build agents talk to your monitoring server. Do not let every temporary build runner reach the Checkmk server directly. Route those API calls through a single controlled network path instead. Set strict timeouts so a failed build does not leave downtime open forever. Always log the build number and user name inside the downtime comment field.

Finally, check your logs for personal data before storing build output. Sometimes a failed check returns sample database rows with emails or phone numbers. Masking rules can rewrite emails and card numbers in those results right away. This keeps sensitive user records out of your shared monitoring dashboards.

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

Why should TeamCity talk to Checkmk during a deploy?

TeamCity tells Checkmk to pause host alerts while a deploy restarts services. This stops false pages to the on-call team during planned code updates.

What permissions does TeamCity need inside Checkmk?

Give TeamCity a custom role that can only schedule downtime on target hosts. Never give your build server full admin rights on your monitoring system.

How can Checkmk monitor TeamCity server health?

Checkmk can poll the TeamCity web API using a read-only user token. It tracks busy build agents, queue length, and server memory usage over time.

The query runs. The emails stay hidden.