Telegram bot · Open source

TofsDevOps

Website monitoring for people who have never heard of DNS or a 502.

Watches your sites, fixes what it can, checks whether search engines and AI assistants can see you — and stays quiet while everything is fine. For people who don’t know what DNS or a 502 error is: every alert says what happened, what it means for your visitors and what to do — for your hosting: Cloudflare, Vercel, Netlify, GitHub Pages or your own server.

What it does

  • Your site goes down — you know first. A check every 5 minutes, and before it wakes you, the bot asks a second location outside; downtime in minutes, not percentages.
  • Certificate, domain, DNS. It warns you if the certificate hasn’t renewed 10 days before it expires, reminds you to renew the domain, and raises the alarm when the NS records change — that’s what a hijack looks like.
  • Your Cloudflare account. A message with sound if a DNS record or a redirect rule is deleted, DNSSEC, NS or the SSL mode change, an API token is created, or someone signs in from a new address. It needs a read-only token.
  • Whether search engines and AI assistants can see you: noindex, robots.txt, how much text there is without JavaScript, the sitemap, requests from GPTBot, ClaudeBot or PerplexityBot being refused, broken links in llms.txt. Each item comes with what it puts at risk for you and the steps for your hosting.
  • Mail on your domain: who receives it, whether port 25 is open from outside, SPF, DKIM and DMARC — with a ready-made record, so your emails don’t land in spam.
  • Security from the outside and broken links: /.git or /.env open to anyone, http without a redirect to https, missing security headers — with a ready-made block for your hosting; pages that answer with an error, and links to nowhere.
  • Fixes what it can on its own: rebuilds the site on Cloudflare Pages and purges the cache; on your own server it restarts the container — only if you gave it access to Docker.
  • Quiet while everything is fine: one morning message, a report on Sundays, quiet hours. A red circle means act now, with sound; an orange one means not today, without sound.

Your data

The bot runs on your side. The addresses of your sites go to a few free public services: a check from another location, a snapshot of the page, Chrome’s speed data, the domain registry. Each one can be turned off. Internal addresses — 192.168…, .local and the like — go nowhere. On Sundays the bot sends a copy of its database to your private chat, without tokens or secrets.

What it costs

  • The bot is free.
  • On your own server with Docker: free — a VPS, a home server, a NAS or a Raspberry Pi will do.
  • Railway: the first 30 days — $5 with no card, then the Hobby plan at $5 a month, which is enough for the bot; without it the bot stops after the trial month. You need a card that works for payments abroad. The bot will remind you to pay.

How to install

Two ways — Railway or your own server with Docker.

Railway — about 5 minutes

Step 1. Create a bot with @BotFather and copy its token.

Step 2. Press the Railway button — the form has one field, the token; the database, the address and the rest are already in the template.

The link carries my referral code: your price is the same. Without the code: railway.com/deploy/tofsdevops.

Step 3. Press /start — the bot asks for your first site right in the chat and offers a test alert and an outside watchdog.

Your own server with Docker — one command

curl -fsSL https://raw.githubusercontent.com/morgunovtech/Tofs_DevOps_bot/main/scripts/install.sh | sh

It asks for the token, writes two files and starts the bot; running it again updates it. A server in Russia often can’t reach api.telegram.org directly — set a proxy, TELEGRAM_PROXY in .env.

What this is, honestly

  • A personal project, shared as is: I use it every day, but it’s not a service with support.
  • What can’t be seen from the outside, the bot says so: for example, it doesn’t promise which AI crawlers Cloudflare lets in — it shows where to look in the dashboard.
  • Access to Docker on your own server means root on the whole machine: give it only where everything is yours.
  • It speaks Russian or English and takes the language from your Telegram.
  • Named after Tofs — an Irish Terrier who takes uptime personally.

Questions and ideas

If something is missing or unclear, message me.