berth

Monitoring

Uptime monitoring and status pages

Watch websites and mail from the panel, confirm outages from other Berth servers, publish a status page per customer and announce planned maintenance with an iCal feed.

Updated 7 min readuptime · monitoring · status page · availability · heartbeat · outageView as Markdown

On this page
  1. What Berth can watch
  2. Watch a page or a mailbox
  3. Every site is watched for server errors
  4. Checks for the server itself
  5. Confirmation from other locations
  6. Public status page per customer
  7. Planned maintenance and the iCal feed
  8. When the whole server is down: outbound heartbeat
  9. What happens on an outage
  10. Related

Berth checks the sites and mail it hosts by itself, without an external monitoring service. You get a notification when a page stops answering, each customer gets a public status page with 90 days of history, and planned maintenance shows up on that page before it happens. For the case where the whole server goes dark, Berth can also report to an outside monitor.

What Berth can watch

There are three families of checks.

  • A page of a website. An HTTP or HTTPS request to a path on one of the server's domains. Optionally the answer has to contain a keyword (for example In winkelwagen on a shop page), so a page that returns 200 but shows a database error still counts as down. With certificate checking on, an expired or invalid certificate also counts as an outage.
  • The mail of a domain. An IMAPS check and an SMTP submission check, so you notice when customers can no longer read or send mail even though the website is fine.
  • The server itself, without a domain. A TCP port (optionally sending a string and expecting a reply, such as PING and +PONG for Valkey), a DNS answer of a given type, a TLS certificate (direct TLS or STARTTLS for SMTP, IMAP, POP3 or FTP, with a warning a set number of days before expiry), or a command. Commands run in a sandbox and never as root.

Each check records its response time, so the monitor page shows a latency chart next to the up/down history.

Watch a page or a mailbox

In the panel:

  1. Open Uptime and click Watch page.
  2. In the dialog Watch a page or mail, choose the domain and what to watch: A page of the website or The domain's mail.
  3. For a page, fill in the path and, if you want, a keyword. HTTPS is chosen automatically when the domain has a certificate.
  4. Tick On the public status page if customers and visitors may see this monitor.
  5. Click Watch.

On the command line:

berth uptime add --domain acme.nl --path /shop --keyword "In winkelwagen" --public
berth uptime add --domain acme.nl --kind mail
berth uptime list
berth uptime show 12          # 90 days and the latest outages of monitor 12
berth uptime set 12 --pause   # stop checking (and notifying) for now

Customers can watch pages of their own domains; administrators and resellers see the monitors of the customers they manage.

Every site is watched for server errors

You do not have to create a monitor for every site to hear about a broken one. Berth watches the error rate of every website on its own, from the server's traffic statistics, and tells the administrator and the customer when a site that gets real traffic starts returning server errors (5xx) for most of its requests.

Berth also regularly requests every site that runs PHP, to know which sites work. After a PHP update, every site on the updated version is requested again, and a site that worked before and now returns a server error counts as a failed update: the PHP packages are rolled back automatically. See OS updates and maintenance. When a customer switches their own site to another PHP version, nothing is rolled back; they get a notice with the way back.

Checks for the server itself

Services without a domain (Valkey, MariaDB, a mail port, a resolver, an internal health URL) are watched under System → Applications, card Separate checks, button Add check. The CLI offers a few more kinds:

berth uptime system add --kind tcp --name valkey --port 6379 --send PING --reply +PONG
berth uptime system add --kind tls --name smtp-cert --host mail.example.nl --port 587 --starttls smtp --verify
berth uptime system add --kind dns --name mx --dns-name example.nl --dns-type MX
berth uptime system add --kind command --name queue --argv /usr/local/bin/check-queue
berth uptime system list

Besides tcp, dns, tls and command, the CLI also knows http (a local URL), process (a process must be running), heartbeat (a file must have been touched recently) and journal (a literal error message must not appear in a unit's log). Each check has its own interval (--interval) and the number of consecutive failures that count as down (--fails). The action on failure is notify by default; restart restarts the unit (with a per-hour cap) and hook runs a command you give.

Confirmation from other locations

A check that fails from the server itself may be a local network problem rather than a real outage. Berth can ask other Berth servers to look as well. These are called probe locations. When a site fails here but another location still reaches it, Berth logs it and does not raise an outage.

To link one:

  1. On the other server, offer it as a probe location: berth uptime probe offer. It creates a token that can only run probe checks, and prints a link code (BERTHMEET1-…) once.
  2. On this server, open Uptime → Probe locations, click Link a probe location and paste the address and the link code. Or link with consent: berth uptime location link --url https://panel.example.com gives you a link to open in the browser, where an administrator of the other server approves it.
berth uptime location --name ams --url https://panel.example.com --token-file - < code.txt
berth uptime location test ams
berth uptime probe list               # on the other server: who measures from here
berth uptime probe revoke <token-id>  # disconnect a server that measures from here (id from probe list)

Removing a location here also revokes its token on the other side.

Public status page per customer

Every customer can have one public status page. It lists all monitors marked public, with the current state, 90 days of daily bars and recent outages, and none of the internal details (no error messages, no server names). It follows the customer's or reseller's branding, see resellers and white label.

  • In the panel: on Uptime, card Status page, click Show or create link. Administrators pick the customer first.
  • On the command line: berth uptime page --customer acme; --rotate creates a new link and the old one stops working.

The same data is available as JSON without logging in at GET /api/v1/status/{token}, for your own website or a dashboard. The HTML page refreshes itself every minute.

Planned maintenance and the iCal feed

Planned work should not look like an outage. Announce it under System → Maintenance, section Announce maintenance: a title, a start and end, an optional explanation, and Mail customers now if they should get an e-mail.

  • Customers see the announcement on their overview and on their status page.
  • An outage during the announced window is recorded as planned maintenance, not as unavailability.
  • Calendar (iCalendar) on the same page downloads all planned maintenance as an .ics file; berth maintenance ics writes the same to stdout.
berth maintenance plan --title "PHP 8.4 upgrade" --start "2026-11-12 02:00" --end "2026-11-12 03:00" --notify
berth maintenance show
berth maintenance cancel 4

Maintenance windows, which decide when the server may update and reboot itself, are covered in OS updates and maintenance.

When the whole server is down: outbound heartbeat

A server that has lost power cannot send a notification. Two ways to cover that with an external monitor:

  • Heartbeat. After every watchdog round without an unresolved problem, the server pings a URL you choose, for example a check at healthchecks.io, a push monitor in Uptime Kuma or a heartbeat in Better Stack. When the pings stop, that service alerts you.

``bash berth watchdog heartbeat --url https://hc-ping.com/your-check-id berth watchdog heartbeat --off ``

  • Secret health page. Under Settings → Monitoring, section Monitoring from outside, or berth watchdog page --on, the server publishes a page at an unguessable address. Its first line is one sentence that states every component is healthy. Copy it with Copy sentence and set it as the required text in a keyword monitor. If the server disappears or any component turns unhealthy, the sentence no longer matches. --rotate gives a new address.

The public endpoint /healthz answers 503 when the agent or the panel database does not work, which is enough for a simple load-balancer or ping check.

What happens on an outage

When a monitor goes down, the administrators get a notice (and the customer, for their own sites), and the webhook events uptime.down and later uptime.up fire. Where these notices go (e-mail, Slack, Teams, PagerDuty, SMS and more) is set per account; see notifications and alerts. Availability per month also appears in the customer's signed monthly report.