# Monitoring

> Watch websites, servers, DNS, APIs, and scheduled jobs, and get a push when something goes down and when it's back.

Opush checks your services on a schedule. When one goes down, you get a push. When it's back, you get another one. In between, it stays quiet.

## What you can monitor [#what-you-can-monitor]

| Type | What Opush does | Page |
|---|---|---|
| Website | Opens a URL and checks the status code, the content, and how long it took | [Website checks](/docs/monitors/website) |
| TCP port | Connects to a host and port, like a database or SSH | [TCP and DNS](/docs/monitors/tcp-and-dns) |
| DNS record | Looks up a record and can check its value | [TCP and DNS](/docs/monitors/tcp-and-dns) |
| API check | Runs up to 5 requests in order, passing values between them | [API checks](/docs/monitors/api-checks) |
| Heartbeat | Waits for your cron job or backup to call a URL | [Heartbeats](/docs/monitors/heartbeats) |
| Domain and certificate expiry | Added to every website monitor | [Domain and certificate expiry](/docs/monitors/certificates) |

Each monitor counts as one follow on your plan.

## Add a monitor [#add-a-monitor]

<Tabs items={["App", "Web console", "AI agent"]}>
<Tab value="App">

1. Open the **Following** tab and tap **Add**.
2. Choose **Monitor**, then **Website** or **Heartbeat**.
3. For a website monitor, pick the check: **Website**, **TCP port**, **DNS record**, or **API check**.
4. Fill in the address, pick how often to check, and tap **Start monitoring**.

</Tab>
<Tab value="Web console">

1. Open [app.opu.sh](https://app.opu.sh) and go to **Monitors**.
2. Click **Add monitor**.
3. Choose **Website**, **TCP port**, **DNS record**, **API check**, or **Heartbeat**.
4. Fill in the fields and click **Add**.

The web console has every option, including headers, request bodies, and multi-step API checks.

</Tab>
<Tab value="AI agent">

Agents connected to Opush over MCP can call `add_website_monitor`. It takes:

- `url` (required): the http or https address
- `name`: a display name
- `interval`: minutes between checks
- `keyword`: text the page must contain

Agents can also call `list_monitors` and `get_monitor_history` to see status and uptime.

</Tab>
</Tabs>

The first check runs within a minute.

## How often Opush checks [#how-often-opush-checks]

Website, TCP, DNS, and API monitors check every 1, 5, 15, 30, or 60 minutes. The default is 5 minutes. How short the interval can be depends on your plan. The app and the web console only show the choices your plan allows.

Heartbeats work the other way around: your job calls Opush. See [Heartbeats](/docs/monitors/heartbeats).

## How Opush decides it's down [#how-opush-decides-its-down]

A single failed check doesn't wake you up. Opush makes sure first:

1. **A check fails.** Opush checks again one minute later instead of waiting for the next interval.
2. **The second check fails too.** Before calling it down, Opush runs the same check from a second location in a nearby region (for example, Western and Eastern North America, or Western and Eastern Europe).
3. **The second location also fails.** Now the monitor is down, and you get a push. If the second location sees it working, Opush treats it as a network problem near the first check and doesn't alert.

A check fails when:

- The site returns an unexpected status code. By default, anything 400 or higher.
- It times out (10 seconds) or can't connect.
- A required keyword is missing, or an unwanted one is there.
- It answers, but slower than your **Too slow after** limit.
- A DNS name or record is missing, or doesn't match.

A monitor that works on its first check doesn't send anything. A monitor that fails from the start sends a "Down" push once it's confirmed.

## What you get [#what-you-get]

**When it goes down**, the push uses the monitor's name as the title and says why:

```text
api.example.com
Down
HTTP 502 · confirmed from Eastern North America
```

Down pushes are time-sensitive, so they can break through a Focus mode if you allow it. See [Levels and sounds](/docs/push/levels-and-sounds).

**While it stays down**, Opush doesn't repeat the push.

**When it's back**, you get one more push with how long it was down:

```text
api.example.com
Back up
Down for 12m · Response 230 ms
```

On iPhone, you can also turn on **Show downtime as a Live Activity** in the monitor's settings. While the site is down, a card on the Lock Screen and in the Dynamic Island counts the downtime. When it's back, the card shows the total and goes away after 15 minutes.

### Other places alerts go [#other-places-alerts-go]

- **Notification channels**: Slack, Discord, Telegram, or your own webhook get the same events. This works even without the app.
- **Status pages**: when a monitor on one of your status pages goes down, the push has a **Post incident** button. Long-press the notification to see it.
- **Teams**: in a team workspace, every member gets the team's monitor alerts.

Monitor alerts don't escalate to calls or texts by themselves. If you need that, send your own push with escalation from your tooling. See [Call alerts](/docs/push/call-alerts).

## Maintenance windows [#maintenance-windows]

If a monitor is on a status page and you schedule maintenance there, Opush doesn't push "Down" or "Back up" for that monitor during the window. Downtime is still recorded. You get a reminder 30 minutes before the maintenance starts.

## Mute, edit, or delete [#mute-edit-or-delete]

- **Mute**: open the monitor in the app and turn on **Mute**. On Android, turn off **Push when it goes down or recovers**. Checks keep running and events are still recorded. You just don't get pushes.
- **Edit**: open the monitor and change its settings in the app or the web console. The next check uses the new settings within a minute. To change the type, URL, or host, delete the monitor and add a new one.
- **Delete**: in the app, swipe the monitor in **Following** and tap **Unfollow**. In the web console, open the monitor and click **Delete**. Its history is deleted too, and it disappears from any status page.

## Next steps [#next-steps]

<Cards>
  <Card title="Website checks" href="/docs/monitors/website" description="Methods, headers, status codes, keywords, and response time." />
  <Card title="Heartbeats" href="/docs/monitors/heartbeats" description="Get alerted when a cron job or backup doesn't run." />
  <Card title="Uptime history and reports" href="/docs/monitors/history-and-reports" description="Charts, 90-day bars, weekly reports, and widgets." />
</Cards>
