Skip to content

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

Ask AI

Ready taskDo it with me, step by step

Chat assistants

Open in ChatGPTNew tabOpen in ClaudeNew tab

Coding agents

Claude CodeOpens the desktop appCodexOpens the desktop appCursorOpens the app from the web

Copy

View as MarkdownPlain text for AI tools
See the prompt
Read https://xproxy.io/document/xproxy-hub-alerts.md, the XProxy guide "X-Hub Alerts: What Is Sent, When and How to Tune". If you cannot open links, download them with curl. Then take me through it one step at a time: tell me exactly what to click or type, wait until I say it is done, and help me when what I see is different from the guide. Start by asking what I have (hardware, XProxy version, what I see now).
Other XProxy guides, each with a Markdown copy at its URL + .md, are listed in https://xproxy.io/llms.txt.

The app opens with the prompt filled in. Nothing runs until you press Enter.

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 with at least one server. To get messages on your phone, set up the Telegram bot.

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?

AlertLevelOpens whenCloses when
Server is offline
server.offline
CriticalA server has been disconnected from the hub for 3 minutes.The server connects again.
XProxy is not responding
server.controller_down
CriticalThe server is connected but its XProxy panel has not answered for 3 minutes.XProxy answers again.
Many modems offlineCritical10 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
CriticalAt 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
WarningA 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 droppingWarningA 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
WarningThe 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 modemWarningThe 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
WarningA modem has been rotating its IP for 5 minutes.The rotation ends.
Disk is almost full
server.disk_low
WarningThe disk is 90 % full or more for 10 minutes.The disk falls below 85 %.
License expires soon
license.expiring
WarningThe 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
CriticalAt once, when the plan has ended.The plan is renewed.
License is not activated
license.not_activated
CriticalThe 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.

1. A warning: silent
🟠 Modem #1 · no internet Warehouse 21 · 5 min14:19
  • AcknowledgeRotate IP
  • Modem actions
  • Open in Hub (opens a page)
2. A critical problem: rings
🔴 Warehouse 21 · offline 5 min14:19
  • Acknowledge
  • Open in Hub (opens a page)
The bell with a line through it, in the corner of the first message, marks a silent message.

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.

🟠 Warehouse 21 · 10 problems 🟠 No internet: modems #1, #3, #9, #12, #48 · up to 5 min 🟠 Modem #5 (Acme Mobile) · offline · 12 min 🟠 Modem #20 · HTTP 50020, SOCKS5 50021 refuse connections · 3 min14:19
  • Acknowledge all
  • Open in Hub (opens a page)
Ten problems on one server arrive as one message. The list shows the first 25 problems and says how many more there are.

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.

🟠 Modem #1 · no internet Warehouse 21 · 5 min · came back 2×14:19
  • AcknowledgeRotate IP
  • Modem actions
  • Open in Hub (opens a page)
The old message is edited and counts the returns.

What are notices?

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

NoticeWhenWhere
Server restartedA server reboots, or XProxy restarts after an update.Telegram chats in Instant mode, the digest, and the webhook server.restarted.
New XProxy versionServers report a new release. Once per version.Owners in Telegram, and the webhook software.update_available.
New X-Hub versionA new hub release is out. Once per version.Owners in Telegram, and the webhook hub.update_available.
Sold proxies expire soonSold proxies on a server expire within 3 days.Owners in Telegram, and the webhook selling.expiring.
Webhook endpoint turned offX-Hub stopped sending to an endpoint after repeated failures.Owners in Telegram. See Webhooks.
Chat is not deliveringTelegram 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.

Before (hub 0.8.1)
📋 XProxy digest — last 24h 0m 🔄 Restarts: 1 servers restarted 📡 Modems: 21 down · 11 restored 🔌 Ports: 14 down · 9 restored 🪪 License: 1 warnings Most affected • Warehouse 21 — 31 changes • Farm A — 9 changes 🔴 Still open (17) 🟠 Port 50001/http of Modem #1 on Warehouse 21 is not answering (egress_failed) — 25 min 🟠 Port 50001/socks5 of Modem #1 on Warehouse 21 is not answering (egress_failed) — 25 min 🟠 Port 50012/http of Modem #12 on Warehouse 21 is not answering (egress_failed) — 25 min 🟠 Port 50012/socks5 of Modem #12 on Warehouse 21 is not answering (egress_failed) — 25 min 🟠 Port 51048/http of Modem #48 on Warehouse 21 is not answering (egress_failed) — 25 min 🟠 Port 51048/socks5 of Modem #48 on Warehouse 21 is not answering (egress_failed) — 25 min 🟠 Port 50003/http of Modem #3 on Warehouse 21 is not answering (egress_failed) — 25 min 🟠 Port 50003/socks5 of Modem #3 on Warehouse 21 is not answering (egress_failed) — 25 min 🟠 Port 50009/http of Modem #9 on Warehouse 21 is not answering (egress_failed) — 25 min 🟠 Port 50009/socks5 of Modem #9 on Warehouse 21 is not answering (egress_failed) — 25 min … and 7 more14:19
After (hub 0.8.2)
🟠 Digest · last 24 h Restarts: 1 server restarted Modems: 21 down · 11 restored Ports: 14 down · 9 restored License: 1 warning Most affected Warehouse 21 — 31 changes Farm A — 9 changes Still open · 17 Warehouse 21 · 10 🟠 No internet: modems #1, #3, #9, #12, #48 · up to 25 min Farm A · 4 🟠 No internet: modems #2, #14 · up to 9 min Farm B · 3 🟠 Disk almost full · 3 min 🟠 Modem #6 · keeps dropping · 1 min 🟠 Modem #30 · not detected · 2 min14:19
  • Open in Hub (opens a page)
The same 17 open problems. Before is the list as hub 0.8.1 wrote it. After is the digest of hub 0.8.2.

Where do I see and tune alerts?

Step 1 of 3

See open problems on the Incidents page

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

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

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

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.

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?

Still stuck?A technician can look at your device with a one-time PIN, or chat with us on Telegram.