Bot command reference
Telegram Bot Commands for Server Monitoring
These commands keep the monitoring workflow simple, from adding a server to checking status and changing alert thresholds in Telegram.
Reference
Command reference
Use these commands in the Telegram chat where you manage the server.
| Command | Purpose | Example | Where to use | Safety notes |
|---|---|---|---|---|
/start | Open the bot guide and main actions. | /start | Private chat or group | Safe read-only command. |
/help | Show available commands. | /help | Private chat or group | Safe read-only command. |
/add_server | Create a short-lived pairing token and install command. | /add_server | The chat that will own alerts | Do not share the generated token publicly. |
/servers | List connected servers. | /servers | Private chat or group | Shows server names and status. |
/status | Show current full server status. | /status | Private chat or group | Read-only status command. |
/server_status | Alternative full status command. | /server_status | Private chat or group | Read-only status command. |
/thresholds | Explain and manage alert thresholds. | /thresholds | Private chat or group | Set values carefully to avoid noisy alerts. |
Buttons
Inline action buttons
- Refresh status: request a fresh server card.
- Restart service: restart a detected allowed systemd service.
- Clean logs: run controlled cleanup actions.
- Confirm reboot: queue reboot only after explicit confirmation.
- Cancel action: stop a risky action before it is queued.
Status workflow
How to use status commands during an incident
Start with /status or /server_status to get the current picture. Check whether the server is online, then compare CPU, RAM, disk and load. If a service looks failed, use the service list before pressing a restart button. This keeps the workflow predictable under pressure.
Threshold workflow
How to tune thresholds from Telegram
Use thresholds as early warning limits, not as proof that the server is broken. CPU and load can spike briefly during deploys or backups, while disk usage usually needs earlier warning. Tune one value at a time so you can see which change reduces noise.
Group workflow
Using commands in a team group
In a group chat, commands become part of the operational record. That is useful for transparency, but it also means pairing tokens and maintenance buttons are visible to the group. Keep the group small and trusted, and avoid forwarding install commands elsewhere.
Examples
Common command sequences
- New server:
/add_server, run install command, then/servers. - Routine check:
/status, review metrics, then refresh if values are stale. - Noisy alerts:
/thresholds, raise one threshold, watch the next few reports. - Failed service: open server services, review state, then use restart only if you understand impact.
Command lifetime
Why some actions expire
Maintenance commands should be short-lived. If a command sits too long before the agent polls it, the agent may reject it as expired. This is a safety feature: an old reboot or restart request should not execute unexpectedly after the operational context has changed.
Read-only vs action commands
Know which commands change the server
Status commands should be safe and read-only. Service restart, log cleanup, threshold changes and reboot confirmation can change server behavior. Treat action buttons as production operations, especially in a shared Telegram group.
Naming
Server names in command output
Use recognizable hostnames and labels so commands are clear in Telegram. A generic hostname makes it easy to restart or inspect the wrong machine. If you manage several VPS instances, rename them before pairing or document which hostname belongs to which service.
Troubleshooting commands
When a command does not respond
If a command produces no answer, check whether the bot is still in the chat, whether the server is online, and whether the agent heartbeat is recent. For action buttons, also check that the command result reached the backend. The troubleshooting page lists local checks.
Permissions
What commands should not do
Commands should not ask for passwords, private keys or arbitrary shell snippets. If a support conversation asks you to paste secrets into Telegram, stop and use the security contact instead. The bot should guide safe workflows, not replace normal server access controls.
Warnings
Safe command usage
- Do not share pairing tokens publicly.
- Use maintenance actions only on servers you control.
- Reboot can interrupt websites, mail and database services.
- If a button is missing, check the troubleshooting guide.
Related docs
Where to learn more
Read the setup guide before installing the agent, the security model before using maintenance actions, and the troubleshooting guide if commands do not appear.
Start monitoring
Connect a Linux server from Telegram.
Open the bot, request a one-time pairing command, run it on the server and receive the first status report in Telegram.