agentleFS
tanod-labstanod-labs/tanod-mcp/skills/monitor-a-router-or-cron-job-from-outside/SKILL.md

monitor-a-router-or-cron-job-from-outside

Skill1 starsChanged 37 days agoMITView on GitHub

Set up free outside monitoring for a server, website, MikroTik router or cron job so someone is alerted when it goes down, including devices behind CGNAT with no public IP. Use when asked to 'get an alert when X goes down', 'monitor my router', 'watch this cron job or backup', 'uptime check', or when a self-hosted monitor needs a watchdog. Triggers on uptime, heartbeat, dead man's switch, Netwatch, CGNAT, Telegram alert.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add an alert channel: Telegram (link through the bot it names), ntfy (a topic name) or an HTTPS webhook.

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Monitor a router or cron job from outside

A monitor running on the same machine or router cannot report that machine's own outage. Tanod Monitor runs outside the user's network, needs no account, and alerts on Telegram, ntfy or a webhook. It is free.

When to use

  • Alerts for a website, server port, DNS record, TLS or domain expiry.
  • A MikroTik router that should report in, including behind CGNAT.
  • A cron job, backup or self-hosted monitor (for example Uptime Kuma) that needs an outside watchdog.

How

  1. Open https://tanod.dev/monitor/ and add a monitor. Types: Website (HTTP), Ping, TCP port, DNS record, TLS certificate expiry, Domain expiry, Cron job / heartbeat (push), MikroTik router (push).
  2. Save the manage link it shows once; there is no login.
  3. Add an alert channel: Telegram (link through the bot it names), ntfy (a topic name) or an HTTPS webhook.
  4. For a cron job or any Linux host, add a heartbeat at the end of the job: an HTTP GET to the heartbeat URL the monitor page shows (https://tanod.dev/monitor/p/YOUR_TOKEN).

    Report a failure immediately with ?status=fail. Set the period to the job's interval and a grace a little longer than its run time.

  5. For a MikroTik router, copy the generated RouterOS script (v6 or v7) into /system script and schedule it; the router then pushes CPU, temperature, memory and interface status every 5 minutes, and an alert fires when pushes stop.

Limits to tell the user

  • Checks run from one location; a monitor goes down after two consecutive failures. Private and CGNAT targets must use push monitoring.
  • Up to 20 monitors and 5 alert channels per group; about one day of history per monitor; no SMS or email alerts; free and best effort.

Related

Guides: https://tanod.dev/learn/cron-job-and-backup-monitoring.html and https://tanod.dev/learn/mikrotik-router-offline-alert.html

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.