SSH Guru Blog.
← SSH Guru Blog
Server Monitoring
·6 min read

Read-Only Server Monitoring With Telegram Alerts

server monitoringtelegram alertsread-only accessself-hosting
Iphone, hand, phone, mobile phone
Photo: tranmautritam on Pixabay

A server monitoring watch should tell you when something is wrong without giving the monitoring system a way to change the server. That separation matters most on the machines people leave running at home: a NAS in a cupboard, a Raspberry Pi behind the TV, or a small Proxmox host in the garage.

The usual failure is not dramatic. A backup job stops after a storage mount disappears. A TLS certificate expires. Docker fills the root filesystem with old images and logs. The server still answers SSH, right up to the point when the service you actually care about cannot write another file.

SSH Guru Watches use a small read-only watcher that reports on a schedule. It can send a Telegram alert when a check finds a problem, or when the server stops reporting. The watcher accepts no commands back. That is a deliberate boundary: monitoring needs visibility, not a remote control channel.

Monitoring is useful only when it catches the ordinary failures

A lot of self-hosted systems get checked only when someone notices a broken service. That can mean the morning after a backup failed, after a family photo share went offline, or after a renewal failure made a site unreachable.

The checks worth running are tied to things that have a clear operational consequence. Disk-space checks catch full filesystems before databases, package updates, or containers fail in confusing ways. Backup checks answer whether a backup is current, rather than whether a scheduled job merely exists. Certificate checks give you time to renew before browsers start rejecting a service.

Other checks cover the pressure that builds up over time:

  • CPU, memory, and load can show a host that is stuck or overloaded.
  • Docker health can reveal a container that is running but unhealthy.
  • Failed-login checks can point to unwanted SSH activity.
  • Security-update checks show when a machine has pending maintenance.
  • Log monitoring can flag an error pattern before it turns into an outage.

None of these checks replaces looking at the server when an alert arrives. They narrow the first question. Instead of starting with "what changed?", you can start with "the backup is stale" or "the certificate has seven days left."

That distinction saves time when you are away from the machine.

Why read-only is a useful security boundary

Monitoring agents often have far more permission than their job requires. They may run as root, receive instructions from a central service, or include a path for remote maintenance. Each extra capability expands the consequences of a bad configuration, a compromised account, or an unexpected software defect.

For a small server fleet, the monitoring task is simpler. The watcher reads status and reports it. It does not need permission to restart a container, install packages, rotate credentials, or edit firewall rules.

SSH Guru Watches follow that narrower model. A watch installs a small read-only watcher. It reports scheduled check results, and it cannot receive commands back. If you get a Telegram alert about low disk space, you decide what to do next and connect to investigate through your normal SSH workflow.

This also makes alerts easier to trust. An alert tells you that a measurement crossed a threshold or a report did not arrive. It is not silently attempting a repair in the background, where a failed repair could erase evidence or make a bad situation worse.

Read-only monitoring is especially sensible for servers that hold personal data. A NAS may contain photos and documents. A home automation host may control devices you want to leave alone during an incident. A remote Raspberry Pi may sit on a network you cannot physically reach for days. On all of them, observation is safer than unattended intervention.

Treat missed reports as an alert condition

A server can look healthy right up until it disappears. If your monitoring only alerts on a reported problem, it has a blind spot: no report may mean the host is powered off, its internet connection is down, its storage is exhausted, or the watcher has stopped running.

That is why a missed schedule needs its own alert. It does not diagnose the cause, but it tells you that your visibility has failed.

For a server that reports daily, a missing report may be enough reason to investigate that day. For a service with tighter availability needs, up-to-every-minute checks may make more sense. The right schedule depends on the cost of delay. A backup target can often wait longer than a reverse proxy serving a site or a home automation controller.

Do not set an aggressive schedule just because you can. Frequent checks create more reports to interpret, and Telegram alerts lose their value when people mute them. Pick a cadence that gives you time to act before the condition becomes damaging.

Telegram works when the alert carries enough context

Telegram is useful for home-server alerts because it reaches the phone that is usually nearby. But an alert that only says "failure" still leaves too much work for the person receiving it.

A good notification identifies the host and the check that failed. It should distinguish a low-disk condition from a missing backup report, and it should make clear when the issue was first observed. The response may still require opening a terminal, but you should know why you are opening it.

Think through the alert route before you depend on it. If Telegram messages arrive on one person's phone, make sure that person can identify the server. Use host names that mean something in an alert. A name such as nas-attic is more useful at 2 a.m. than a generic default hostname.

It also helps to decide in advance which alerts need immediate attention. A certificate that expires next month is a planned task. A disk at capacity or a server that has stopped reporting may need same-day investigation. The alert channel should support that judgment, not force every event into the same urgency level.

What to do after an alert

The watch reports the symptom. Your next SSH session establishes the cause.

For a disk-space warning, check the affected filesystem, then identify the largest directories or logs before deleting anything. For a failed backup check, confirm the last successful backup and inspect the job's recent output. If a Docker health check fails, inspect the container logs and its configured health check before restarting it.

This is a good point to be conservative with AI assistance too. An AI tool can help interpret approved command output and suggest a next command, but it should not act on a vague alert by itself. SSH Guru's Guru proposes one command at a time for your approval, with risk tiers that separate read-only inspection from state-changing and destructive work. We covered the reasoning behind that approval step in Why human approval matters for AI-proposed SSH commands.

Monitoring tells you where to look. It should not decide what to change.

Start with the failure modes you already know

The first watches should cover the services that would inconvenience you most if they failed silently. For many self-hosters, that means the main storage host, the machine that runs backups, and the host that terminates HTTPS connections. Add more checks after you have used the first alerts for a few weeks.

Avoid measuring everything on day one. A short set of checks that people read and act on is more valuable than a long report nobody opens. Watch the systems with real consequences, make missed reports visible, and keep the monitoring path read-only.

You can set up Watches alongside browser-based SSH access in SSH Guru.

Comments

No comments yet. Be the first.

Leave a comment

Comments appear once the author approves them.