# X-Hub Alerts: What Is Sent, When and How to Tune

> For AI tools: this is the Markdown copy of https://xproxy.io/document/xproxy-hub-alerts. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

See every alert X-Hub raises, how long it waits first, how each one clears, and how to tune Telegram modes, digests and webhooks to cut the noise.

X-Hub watches your servers all day. It opens an **incident** only when it is sure that something is really wrong: the problem has to last for a set time without a break. It tells you once, updates that message as things change, and closes the incident when the problem is gone. This page lists every alert, how long X-Hub waits first, and how to make it quieter or louder.

**You need:** a [running X-Hub](https://xproxy.io/document/xproxy-hub-setup) with at least one [server](https://xproxy.io/document/xproxy-hub-connect-boxes). To get messages on your phone, set up the [Telegram bot](https://xproxy.io/document/xproxy-hub-telegram).

## Why do I get only a few alerts?

An alert that wakes you up should be a real problem. So X-Hub does not react to the first sign. It looks at the state of every server a few seconds apart, and it opens an incident only when the problem has lasted for its **wait time** without a break. A problem that fixes itself before that sends nothing: no incident, no Telegram message and no webhook. It only shows as events on the page of the server.

## Which problems raise an alert, and after how long?

| Alert | Level | Opens when | Closes when |
| --- | --- | --- | --- |
| **Server is offline** `server.offline` | Critical | A server has been disconnected from the hub for **3 minutes**. | The server connects again. |
| **XProxy is not responding** `server.controller_down` | Critical | The server is connected but its XProxy panel has not answered for **3 minutes**. | XProxy answers again. |
| **Many modems offline** | Critical | **10 or more** modems of one server are down or missing together for **5 minutes**. On a server with fewer than 34 modems, more than 30 % of them (and at least 3) is enough. | The modems are back. Modems that are still down then get their own alerts. |
| **Two machines use one identity** `server.identity_conflict` | Critical | At once, when two machines use the identity of one server (for example a cloned disk). | The copy is disconnected and paired again. |
| **Modem is offline** `modem.offline` | Warning | A modem has been disconnected for **5 minutes**. The same wait applies to a modem that **vanished** from the list of the server (unplugged or not detected); its alert says *missing (unplugged or not detected)*. | The modem is back. A modem missing for **24 hours** is forgotten: the alert closes with *was removed*. |
| **Modem keeps dropping** | Warning | A modem dropped **5 times within 60 minutes** and came back each time before the 5 minute wait. This is the only way short drops alert. | The modem has not dropped for 60 minutes. |
| **Port is not answering** `port.down` | Warning | The check of the server finds a proxy port that refuses connections or does not answer, in every check for **5 minutes**. The server checks every 2 minutes. | The port answers. |
| **No internet through a modem** | Warning | The port answers, but the modem has no working internet behind it. The server confirmed it with three tries, and the modem failed **every re-check for 10 minutes**. A server with an older agent needs 25 minutes. | A re-check works. |
| **Modem stuck rotating** `modem.rotation_stuck` | Warning | A modem has been rotating its IP for **5 minutes**. | The rotation ends. |
| **Disk is almost full** `server.disk_low` | Warning | The disk is **90 %** full or more for **10 minutes**. | The disk falls below **85 %**. |
| **License expires soon** `license.expiring` | Warning | The plan ends within the warning time. The default is **7 days**; an owner can set 1 to 30 days through the hub API. | The plan is renewed. |
| **License has expired** `license.expired` | Critical | At once, when the plan has ended. | The plan is renewed. |
| **License is not activated** `license.not_activated` | Critical | The server runs without an activated license for **15 minutes**. | The license is activated. |

- A modem that you or the IP guard **stopped** never alerts. A modem that is rotating alerts only when the rotation is stuck.
- A port alert is never opened for a modem that already alerts as offline or missing, or that is rotating or stopped. The modem is the story, and the closed port is only a symptom.
- A license alert has a **Renew license** button in Telegram.
- While a server is offline or its XProxy does not answer, X-Hub has no fresh data about its modems, so their open alerts neither open nor close until it is back.
- Fleet counts, such as **Modems up** in `/status`, count **online servers only**. An offline server is shown on its own line, and its modems are not counted as down.

## Which alerts ring my phone?

The **level** decides the sound. A **critical** alert is about a whole server or about money, and while it is open it makes a sound in Telegram. A **warning** arrives silently, and so does everything that is fixed: the edit of a message, and every recovery message. A silent message still arrives and shows on the lock screen. It only makes no sound.

## What happens when many modems fail together?

When a power cut or a USB hub takes out many modems at once, you do not want one message per modem. If **10 or more** modems of a server go down together (or more than 30 % on a server with fewer than 34 modems), X-Hub opens **one critical alert for the server**, for example *32 of 70 modems on Farm B are offline*. The alerts of the single modems of that server wait while it is open.

Problems that open on one server in the same moment share one Telegram message. Equal problems share one line, and the server name appears once, in the heading.

## What if a modem drops again and again?

A drop that is shorter than the wait time sends nothing. But a modem that drops over and over is a real problem, for example a loose cable or a weak USB hub. When a modem drops **5 times within an hour**, X-Hub opens one **Modem keeps dropping** alert, for example *Modem #6 on Farm B keeps dropping: 5 times in the last hour*. You get at most **one such alert per modem per day**. It closes after an hour without a drop. Look at the cable, the USB hub, the power supply and the signal before you look at any setting.

## What happens when a server restarts?

A server that restarts needs a few minutes to bring its modems and ports back. X-Hub waits **5 minutes** after any of these before it can open a new alert about the modems, rotation or ports of that server:

- the server comes back after being offline or after XProxy did not answer;
- the server reconnects to the hub;
- X-Hub notices that the server restarted or was updated;
- the hub itself starts. Then every server counts as coming back.

No wait time runs during those 5 minutes. After them, the normal waits start from zero, so a modem that is still down alerts 5 minutes later, 10 minutes after the restart in all. Alerts that were already open stay open and still close by themselves. The settle time does not delay **Server is offline**, **XProxy is not responding**, disk and license alerts. A normal update therefore sends no modem alerts, only the restart notice.

## What if the same problem comes back?

If a problem clears and comes back within **30 minutes**, X-Hub reopens the **same incident** instead of making a new one. The Telegram message is edited, not sent again, and says *Came back N× after resolving*, so you are not alerted twice. A problem that comes back after more than 30 minutes is a new incident.

## What are notices?

A notice tells you something that is not a problem. It opens no incident and needs no closing.

| Notice | When | Where |
| --- | --- | --- |
| **Server restarted** | A server reboots, or XProxy restarts after an update. | Telegram chats in **Instant** mode, the digest, and the webhook `server.restarted`. |
| **New XProxy version** | Servers report a new release. Once per version. | Owners in Telegram, and the webhook `software.update_available`. |
| **New X-Hub version** | A new hub release is out. Once per version. | Owners in Telegram, and the webhook `hub.update_available`. |
| **Sold proxies expire soon** | Sold proxies on a server expire within **3 days**. | Owners in Telegram, and the webhook `selling.expiring`. |
| **Webhook endpoint turned off** | X-Hub stopped sending to an endpoint after repeated failures. | Owners in Telegram. See [Webhooks](https://xproxy.io/document/xproxy-hub-webhooks). |
| **Chat is not delivering** | Telegram refuses messages to a chat. | The chat shows **Not delivering** with the reason on the Telegram page. |

Notices to owners go to their private chat with the bot, whatever the alert mode and even if a group is muted.

## What does a digest show?

A digest sums up a period: how many servers and modems went down and came back, restarts, ports, license warnings, the servers with the most changes, and everything still open, **with one section per server**. Equal problems share one line. Before hub 0.8.2, the digest listed every open problem on its own line with the server name repeated.

## Where do I see and tune alerts?

**Step 1: See open problems on the Incidents page**

Open **Incidents** in the menu. **Open** lists the problems that are happening now. **Resolved** and **All** show the history. Every row shows the kind of alert, the server, how long it has lasted, and an **Acknowledge** button.

A row closes by itself when the problem is gone. You never close one by hand.

![The Incidents page with the Open filter, an incident row and the Acknowledge button marked (demo)](https://media1.xproxy.io/docs/hub/alert-1-incidents-v3.webp)

> Acknowledge tells your team that someone is working on it. It does not hide or stop the alert.

**Step 2: Choose how alerts reach Telegram**

On the **Telegram** page, the card **When alerts arrive** sets what a chat gets at once. Pick the **Default for all chats**, or give one chat its own mode and digest. Each chat also has a **Message style**, and with **Uptime monitor** a box for the recovery messages. The modes, the digest and the two styles are explained in [Telegram bot](https://xproxy.io/document/xproxy-hub-telegram).

![The When alerts arrive card with the default row, the Message style control and the recovery box marked (demo)](https://media1.xproxy.io/docs/hub/tg-7-when-alerts-arrive-v2.webp)

> With more than a few servers, use **Critical only** plus a daily digest.

**Step 3: Choose which events go to your tools**

An owner can send the same events to a URL. When you add a webhook endpoint, **Events to send** lists every event. Leave it empty to get all of them. The full list is in [Webhooks](https://xproxy.io/document/xproxy-hub-webhooks).

![The Add endpoint form with the Events to send list marked (demo)](https://media1.xproxy.io/docs/hub/alert-3-webhook-events.webp)

**Events** in the menu is a live feed of what servers report to the hub. Incidents are the place to review alerts.

## What is not alerted?

- A problem that is shorter than its wait time. Short blips fix themselves most of the time. They only show as events on the page of the server.
- New modem and port problems during the 5 minutes after a restart or an update.
- Single modems of a server while an alert for many modems of that server is open.
- Modems of an offline server. Only the server alert is raised.
- A modem that was stopped on purpose.
- A server that sends no port check never raises **Port is not answering**. A server that sends no disk size never raises **Disk is almost full**.

## FAQ

### A modem was down for a minute and I got nothing

That is the wait time. A modem must be offline for 5 minutes first, and after a server restart X-Hub waits 5 minutes more. If it keeps happening, X-Hub opens a **keeps dropping** alert after five drops in an hour. Check the **Incidents** page: the alert is there once it opened.

### I get too many messages

Set the chat to **Critical only** and turn on a daily digest. You then get outages and expired licenses at once, and everything else in one summary. You can also mute a chat, a server or a modem for a while, see [Telegram bot](https://xproxy.io/document/xproxy-hub-telegram).

### The same problem keeps coming back

Within 30 minutes it reopens the same alert and counts the returns. Look at the modem, its SIM and its power, not at the alert settings.

## What next?

Pick where alerts go.

[Telegram bot →](https://xproxy.io/document/xproxy-hub-telegram) [Webhooks →](https://xproxy.io/document/xproxy-hub-webhooks) [Dashboard and incidents →](https://xproxy.io/document/xproxy-hub-dashboard)

---

Source: https://xproxy.io/document/xproxy-hub-alerts
