The Simplest Way to Make Temporal and Zabbix Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair temporal and zabbix to watch servers and run safe repair tasks. Zabbix spots broken hosts, and Temporal runs step-by-step workflows to fix them. This setup keeps alert checks separate from long repair jobs. One tool watches metrics, while the other tool tracks every recovery step. How temporal and zabbix pass data and permissions Two main paths join these tools in a live setup. In the first path, Zabbix detects a host problem and sends a webhook. That webhook calls the Temporal se

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 temporal and zabbix to watch servers and run safe repair tasks. Zabbix spots broken hosts, and Temporal runs step-by-step workflows to fix them.

This setup keeps alert checks separate from long repair jobs. One tool watches metrics, while the other tool tracks every recovery step.

How temporal and zabbix pass data and permissions

Two main paths join these tools in a live setup. In the first path, Zabbix detects a host problem and sends a webhook. That webhook calls the Temporal service to start a recovery workflow. Temporal then runs worker tasks to restart services or move traffic.

In the second path, Zabbix watches the health of the Temporal cluster itself. Temporal servers and workers expose health metrics on a local port. Zabbix reads those metrics on a set schedule to track queue depth. If workflow tasks pile up, Zabbix alerts the on-call team right away.

Each direction needs its own login key and narrow role. The Zabbix webhook needs a client key or token for one Temporal namespace. It should only have permission to start specific repair workflows. Meanwhile, the Zabbix agent only needs read rights on the metric port.

Common failure modes and how to scope roles

Many teams use one shared admin key for all webhook calls. If that broad key leaks, an attacker can control every workflow namespace. Another common mistake is letting Zabbix run raw shell scripts on hosts. When a script fails halfway through, Zabbix does not track the broken state.

Moving those repair scripts into Temporal workers solves the state problem. Temporal records every step and retries failed calls on its own schedule. Still, those workers still need tight network rules and narrow server roles. Give each worker group a separate role for the exact hosts it fixes.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Teams also forget to log which alert started which workflow run. Always pass the Zabbix event ID into the Temporal workflow input data. Keep phone numbers and emails out of those payload fields when possible. Data masking rewrites matched fields in results so logs stay clean and safe.

Keeping worker keys and metric checks safe

Alert storms can trigger hundreds of duplicate workflows in a single minute. You can stop this by setting a clear workflow ID in Temporal. Combine the host name and alert type to build that unique ID. Temporal will reject duplicate start requests while the first repair job runs.

Network paths between both tools also need strict firewall rules. Only allow the Zabbix server to reach the Temporal frontend port. Block public traffic from reading the worker metric ports on your hosts. Rotate the client keys used by your webhook alerts on a set schedule.

Good audit logs make it easy to review every automated fix. Teams should track when a workflow starts and which host it touches. Clear logs show who approved a manual step during an outage. This keeps both your monitoring tool and your task runner secure.

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

Should Zabbix run repair scripts or hand them to Temporal?

Zabbix should hand multi-step repair tasks to Temporal through a webhook call. Temporal tracks state across retries, while Zabbix focuses on watching host metrics.

How do we stop Zabbix from starting duplicate Temporal workflows?

Use the host ID and problem ID as the Temporal workflow ID. Temporal allows only one active workflow with that exact ID at a time.

What permissions does Zabbix need inside a Temporal namespace?

Give the Zabbix service account permission to start workflows in one namespace. Do not grant admin rights or permission to delete workflow history.

The query runs. The emails stay hidden.