Zabbix Phone Call Alerts for High-Severity Problems

Zabbix spots the problem, but email is easy to miss at 3 a.m. Send High and Disaster triggers to a phone call, with escalation and recovery handling.

Updated

Table of Contents

Zabbix is very good at noticing that something is wrong. It is much less opinionated about how that news reaches you. The default media types are email, SMS through a gateway, and a handful of chat tools, and all of them share one weakness: they are easy to sleep through. A disk that fills up at 03:10 produces a perfectly correct trigger and an email you read at 08:30.

This guide connects Zabbix to your phone through Echobell so that only the problems worth waking up for ring like an incoming call, while everything else stays quiet. It covers the media type, the severity split, a two-step escalation, and the recovery events that most setups get wrong. It works with a self-hosted Zabbix server and needs no extra infrastructure.

What you will set up

  • One webhook media type that forwards trigger data to Echobell.
  • Two channels: one that rings for High and Disaster, one that stays quiet for everything below.
  • A trigger action with an escalation: a quiet push first, a call if nobody reacts.
  • Recovery handling, so a resolved problem does not ring a second time.

If you only want the basic connection, the Zabbix integration doc has the short version. This post is about turning it into something you can run in production.

Step 1: Create the channels

In Echobell, create two channels:

  • zabbix-critical, subscribed with the Calling notification type.
  • zabbix-info, subscribed with Normal (or Time Sensitive if you want it on your lock screen).

Copy the webhook URL of each. It looks like this:

https://hook.echobell.one/t/<channel-token>

On both channels, use a template that reads well on a lock screen:

Title: {{severity}} on {{host}}
Body: {{title}}

See the template reference for the syntax.

Step 2: Create the webhook media type

In Zabbix, go to Alerts → Media types → Create media type, set Type to Webhook, and name it Echobell. Add these parameters:

NameValue
url{ALERT.SENDTO}
title{ALERT.SUBJECT}
host{HOST.NAME}
severity{EVENT.SEVERITY}
status{EVENT.VALUE}

Paste this into the Script field:

var params = JSON.parse(value),
  req = new HttpRequest();

req.addHeader('Content-Type: application/json');

var response = req.post(params.url, JSON.stringify({
  title: params.title,
  host: params.host,
  severity: params.severity,
  status: params.status
}));

if (req.getStatus() !== 200) {
  throw 'Echobell returned HTTP ' + req.getStatus() + ': ' + response;
}

return 'OK';

Two details worth knowing:

  • Throwing on a non-200 response is deliberate. Zabbix then records the notification as failed in Reports → Action log, instead of silently showing it as sent.
  • {ALERT.SENDTO} holds the destination, so one media type serves both channels. The webhook URL is stored in each user's media entry, not in the script.

Save it, then use the Test button on the media type row to send a sample message. Check that Echobell shows the notification before you build any rules around it.

Step 3: Give each channel its own user

Zabbix sends a notification to every media entry a user has for a given media type, so the two channels need two separate users. Under Users → Users, create:

  1. oncall-phone, with one media entry of Type Echobell and Send to set to the zabbix-critical webhook URL.
  2. oncall-quiet, with one media entry of Type Echobell and Send to set to the zabbix-info webhook URL.

These are service-style accounts, not people. They let you change who gets called by changing the Echobell subscription, without editing triggers. Each user also needs permission to see the host groups it should be notified about.

Step 4: Split by severity in the action

Zabbix grades triggers as Not classified, Information, Warning, Average, High and Disaster. Mapping all six to a phone call is how people end up muting the channel. A reasonable starting split:

SeverityWhere it goesWhy
Disaster, Highzabbix-critical (calls)Something customer-facing or irreversible is broken
Average, Warningzabbix-info (quiet push)Worth reading in the morning
Information, Not classifiedDashboard onlyNot an alert

Because both channels receive the same payload, you can also let Echobell do the filtering with a channel condition instead of creating separate actions. On zabbix-critical:

status == "1" && (severity == "High" || severity == "Disaster")

and on zabbix-info:

status == "1" && severity != "Information" && severity != "Not classified"

This condition deliberately lets High and Disaster through as well: the escalation in Step 5 sends them to this quiet channel first, before the call. Information and Not classified stay out.

Zabbix sends the event value as a string, which is why status is compared with "1". 1 is a problem and 0 is a recovery. Keeping the severity rule in the channel means you can tighten or relax it from your phone without touching Zabbix.

Step 5: Add an escalation so a call is a last resort

A phone call is expensive in attention, so it should not be the first thing that happens. Zabbix actions support escalation steps, and they fit this well.

Go to Alerts → Actions → Trigger actions → Create action. Under Operations, add:

  1. Step 1: send a message to oncall-quiet through Echobell, which lands on the quiet zabbix-info channel.
  2. Step 2, after a delay of, say, ten minutes: send a message to oncall-phone through Echobell, which rings on zabbix-critical.

Escalation steps are cancelled when the problem resolves, so a brief spike that clears itself in three minutes never rings. If you also want a call to stop once someone has taken ownership, add an operation condition on step 2 so it only runs while the event is not acknowledged. The exact condition names depend on your Zabbix version, so check them in the operation dialog.

Two settings that save a lot of noise:

  • Trigger dependencies. If a router goes down, every host behind it goes unreachable. Declare the dependency so Zabbix reports the router and suppresses the rest. Otherwise one outage becomes forty calls.
  • Maintenance periods. Put hosts into maintenance during planned work so deployments do not page anyone.

Step 6: Handle recovery events deliberately

Zabbix fires an event when a problem starts and another when it resolves. Under Recovery operations in the same action, you decide what happens at the second one.

Our recommendation is never to call on recovery. Because both channel conditions above require status == "1", recoveries are already filtered out. If you want to know a problem is over without being woken again, create a third channel with the condition status == "0", subscribe to it with the Normal type, and add a recovery operation that sends to a user holding that channel's URL.

The message text for a recovery can also differ from the problem text, since Zabbix lets you set a separate subject and body for each operation type.

Step 7: Test it before you need it

Do not wait for a real outage to find out whether the chain works.

  1. On a test host, create an item and a trigger such as last(/test-host/system.cpu.load) > 0 with severity High, then make sure the action covers that host.
  2. Confirm that step 1 arrives as a normal notification.
  3. Wait for the escalation delay and confirm that step 2 rings.
  4. Resolve the trigger and confirm that no second call arrives.
  5. Check Reports → Action log for any Failed rows.

Run this again after every Zabbix upgrade, since macros and media type behavior can change between versions.

Troubleshooting

Nothing arrives and the action log shows an error. Open the error. The script throws the HTTP status and body, which usually points at a mistyped webhook URL or a channel condition that is rejecting the payload.

The call arrives but the text is empty. The template variable names must match the JSON keys: title, host, severity, status. A typo in a template renders as blank.

Everything rings, including Warnings. Check that the channel condition is present on zabbix-critical, and that your subscription there uses the Calling type while zabbix-info does not.

Duplicate calls for one outage. Add trigger dependencies, and check whether you have more than one action matching the same trigger.

Frequently asked questions

How do I get a phone call from Zabbix?

Create a webhook media type that POSTs the trigger data to an Echobell channel with the Calling notification type, assign it to a user, and add it to a trigger action. Echobell turns the request into a call-style alert on iPhone or Android.

Can Zabbix send alerts to Telegram or Slack and a phone call at the same time?

Yes. Media types are independent, so one action can use several in the same escalation step, or use chat in step 1 and a phone call in step 2.

How do I stop Zabbix from calling me for every warning?

Filter by severity, either in the trigger action or with an Echobell channel condition such as severity == "High" || severity == "Disaster". Send lower severities to a quiet channel.

Will I get called again when the problem resolves?

Not with the setup above. Both channel conditions require status == "1", and recoveries (0) can go to a separate low-urgency channel.

Does this work with Zabbix proxies and self-hosted installs?

The webhook is sent by the Zabbix server, so the server needs outbound HTTPS access to hook.echobell.one. Proxies do not send notifications; they only collect data.

Does it work on Zabbix 6 and 7?

Webhook media types exist in both. Menu labels and some macro names differ slightly between versions, so use the test button and the action log to confirm behavior on yours.

Wrap-up

Zabbix already knows what is broken. The missing piece is a delivery path that matches the severity: quiet for warnings, a ringing phone for Disaster, an escalation in between, and silence on recovery. Set it up once, test it with a throwaway trigger, and your pager stops being the thing you check and becomes the thing that checks on you.

Download Echobell for iPhone or get it on Google Play, create the zabbix-critical channel, and fire the test trigger once to hear it ring.