berth

Monitoring

Notifications and alerts

Decide who hears about what and where: a catalogue of notice kinds with opt-outs, channels from e-mail and Slack to PagerDuty and SMS, office-hours bundling, an alert engine with acknowledge, silence and escalation, the watchdog, and a signed monthly report.

Updated 10 min readnotifications · alerts · slack · pagerduty · sms · webhook · on-callView as Markdown

On this page
  1. Notices: kinds, categories and recipients
  2. Opting out, and what cannot be muted
  3. Channels
  4. Office hours
  5. The alert engine
  6. The watchdog
  7. The monthly report
  8. Related

Berth tells people when something needs attention: a site that is down, a backup that failed, a certificate that will expire, a vulnerable plugin, a disk filling up. This article explains how those messages are organised, how each account chooses its own channels and opt-outs, how the alert engine avoids both silence and noise, and what keeps working when the panel itself is in trouble.

Notices: kinds, categories and recipients

Every message is a notice of a specific kind, for example Software: security update needed or Malware found. There are more than a hundred kinds, each in one category:

  • Security, Backups, Certificates, Availability,
  • Performance and limits, Updates, Mail, Server,
  • Account and access, Licence, Reports, Maintenance, Other.

Each kind has a severity (critical, warning or info) and a fixed set of recipients:

  • Administrators get everything about the server.
  • A customer gets notices about their own subscriptions, by e-mail and on their own channels, once the hosting provider has enabled notifications in the customer's package.
  • A reseller gets a copy of what concerns their customers' domains and subscriptions (vulnerable software, malware, a possibly hacked site, outages, slow pages, limits and similar).
  • A staff login of a customer (a separate login with limited rights, or for one subscription) only receives notices through a channel it links itself, and with a single subscription only what concerns that subscription.

Most notices carry a button View and fix that opens the exact page in the panel where you can see and solve the problem.

Opting out, and what cannot be muted

Every account manages its own notices under Account → My notifications. Per kind you can turn it off or back on. At the bottom of every notice e-mail there are links to unsubscribe from this notice, everything about this website, this kind or the whole category. Such a link always asks you to sign in and confirm first, so a forwarded e-mail cannot be used by someone else to silence you.

Some kinds cannot be turned off, because missing them would be a security problem:

  • use of an emergency account and temporary administrator rights,
  • approvals waiting for a second administrator (four-eyes),
  • security incidents,
  • the licence,
  • for customers, changes to the security of their own account (second factor or access).

Opt-outs and re-enables are written to the activity log. The page also lists what was sent recently, to whom and with what result (sent, failed, bundled, not sent because of an opt-out), so you can show afterwards who received what. Administrators also see the opt-outs of customers and resellers.

berth notify log                 # recent notices and the kinds with their state
berth notify off --kind wp.vuln
berth notify on --kind wp.vuln

Channels

Next to e-mail, each account can link as many channels as it likes on My notifications, section Channels, button Link a channel:

Kind of channelSupported
ChatSlack, Discord, Microsoft Teams (workflow webhook), Google Chat, Mattermost or Rocket.Chat, Matrix, Telegram
Pushntfy, Gotify, Pushover, Pushbullet
On-callPagerDuty (Events API v2), Opsgenie, a webhook in Prometheus Alertmanager format (for Grafana OnCall, Keep, Squadcast, Zenduty and others)
Genericyour own webhook with a signature, an extra e-mail address
PhoneSMS through your own account at a provider

Linking is designed to be short: paste the webhook URL the service gives you. The panel recognises Slack, Discord, Teams, Google Chat, Mattermost, Rocket.Chat, ntfy and Gotify by their URL, and any other https URL becomes a generic webhook. Short forms like tgram://<token>/<chat>, pover://<userkey>@<apptoken> and pbul://<token> work too. For the other services you pick the service and fill in its fields; each field says where to find the value.

  • Per channel, which notices. Nothing ticked means everything; otherwise choose categories or single kinds. A typical set-up: security only to Telegram on your phone, everything to the team's Slack channel.
  • Test sends a test notice; the list shows per channel whether it works and the last error.
  • Secrets stay secret. Tokens and webhook URLs are never shown again, not in the panel, the API or the activity log, and they are stored sealed in the panel database.
  • Incidents open and close. PagerDuty, Opsgenie and the Alertmanager-format webhook receive a resolve when the problem is solved, so the incident closes by itself.
  • Customers and resellers cannot point a channel at an internal network address; administrators can, for example for their own ntfy or Gotify server.

On the server:

berth notify channel types
berth notify channel add --paste-file - --categories security   # paste the webhook URL
berth notify channel list
berth notify channel test 3

Your own webhook

Each notice is posted as JSON with fields such as subject, text, kind, category, domain, link and at. With a secret set, the request carries X-Berth-Timestamp and X-Berth-Signature: sha256=<hmac>, an HMAC-SHA256 over <timestamp>.<body>. Verify the signature and reject old timestamps to prevent replays. Events of the panel itself (a domain added, a backup finished) are a separate mechanism, see webhooks and extensions.

SMS

SMS goes through a provider where you have your own account and pay per message: SMSTools, CM.com, Spryng, Bird (MessageBird), Twilio, Vonage, 46elks or Sinch, or any other provider through a configurable HTTP request. After linking, Berth sends a confirmation code to the number; the channel only turns on once you enter it.

Because SMS costs money, it is frugal by default: only critical notices, one SMS per problem for as long as it lasts (repeats and escalations do not send another one), recovery messages off unless you enable them, and a daily maximum per channel that you can change. Each SMS is a single short message with a link that opens the notice after signing in; no details from the notice itself are in the text.

Office hours

Under Settings → Notifications, section Office hours, you set working hours. Outside them, anything critical and everything that needs action now (a site or service that is down, a full disk, a failed backup, malware) still goes out immediately. Routine notices, such as certificates and renewals, updates, vulnerability digests, plan limits, performance notices, DMARC trends and licence reminders, are bundled into one message at the start of the next working day.

berth notify set --office 08:30-17:30
berth notify set --office 08:30-17:30 --office-weekend   # weekends count as working days too
berth notify set --office off

The same page sets the administrators' own thresholds, for example when a disk counts as nearly full or how many days before expiry a certificate is reported (berth notify set --disk-percent, --inode-percent, --cert-days, --slow-ms, --perf-percent).

The alert engine

Server-level problems run through an alert engine, visible under System → Problems. It evaluates rules against metrics: disk space, services, certificates, DNS, uptime, backups, the fleet and more. A rule has a condition, an optional critical threshold, how long the condition must hold before it fires, and a severity. Default rules can be adjusted or switched off; you can add your own.

What the engine adds on top of plain notices:

  • Acknowledge. Click Acknowledge when you pick a problem up. Repeats and escalation stop; the recovery is still reported.
  • Silence. Silence mutes a problem until a time you choose, for planned work.
  • Repeat. An unacknowledged problem is reported again after the repeat interval; a rising severity is reported immediately.
  • Escalation. If nobody acknowledges within the time set on the rule, the problem goes to a second recipient: a channel or an e-mail address. This gives you a simple second line without a separate on-call tool.
  • Dependencies. A rule can name rules it may be a consequence of. If DNS is down, you get the DNS problem, not twenty separate "site unreachable" messages.
  • Runbooks. A rule can carry a link to the page where you fix it, and a safe action shown as a button on the problem: restart the service, recover the unit, repair DNS, a dry run of freeing disk space, or reload certificates.
berth alert list
berth alert ack 41
berth alert silence 41 --for 2h
berth alert rules
berth alert rule set disk.full --for 10m --escalate-after 30m --escalate-to channel:2
berth alert rule add queue-high --name "Mail queue high" --metric <metric> --op ">=" --threshold 500 --severity warning
berth alert metrics      # metrics that rules can use
berth alert history

Extensions can contribute their own metrics and problems to the engine.

The watchdog

Independently of the panel, a watchdog checks every minute whether the web servers, PHP-FPM, MariaDB, mail and the panel itself are running, and whether nginx, Apache, PHP-FPM, Postfix and Dovecot actually answer. A service that has stopped is restarted after a configuration test. One that runs but no longer answers for a few rounds in a row is first reloaded, so running requests can finish, and restarted if that does not help. Restarts are capped per hour, so a crash loop does not turn into an endless series of restarts, and a panel that keeps crashing is reported as a crash loop. Some problems the watchdog should not fix by restarting, such as a broken mail lookup table; those are reported with the repair to run. Every restart is a notice and an entry in the activity log. After you have fixed the cause, reset the counters:

berth watchdog status
berth watchdog reset
berth watchdog test-route

The watchdog also has an emergency route: it keeps a copy of the administrators' channels and can deliver directly to them, without the panel database and without the local mail server. A full disk, a database that does not answer or a stopped agent is therefore still reported when those are exactly what failed. berth watchdog test-route sends a test through that route. Settings are under Settings → Monitoring. For a site that starts returning errors, see every site is watched for server errors; for the case where the whole machine is gone, see the heartbeat in uptime and status pages, and for self-healing when the panel stops answering, rescue mode.

Mail delivery checks

Berth also watches whether mail actually leaves the server, because the notices to administrators go through that same mail server. On System → Monitoring it shows:

  • the outbound queue: how much mail is waiting, how old the oldest message is, and the reasons per receiving domain;
  • blocklists: refusals by receivers because the server's address is on a blocklist, and a regular check of the server's own outbound addresses against the common blocklists;
  • a canary: every quarter of an hour a test message goes along the same path as your notifications, and the panel checks that it arrives.

Nothing is deleted or held back automatically; the notice says what to do. When the panel's own mail stops arriving, that counts as a failure of the heartbeat and you hear it through your other channels, which do not depend on mail. See also outbound mail.

The monthly report

Every month, Berth produces a report per customer: availability of their monitored sites, backups and restores, WordPress and other software updates, attacks stopped by the WAF, certificates, malware scans and the security score of their sites. Customers find it under Reports; administrators under Customers → (customer) → Monthly reports. An e-mail summary to customers is switched on under Settings → Customers.

The report is signed with Ed25519 by the installation. The signed form is the JSON in the panel, which can be checked with berth report verify; the PDF is a readable rendering of it.

The customer's report contains nothing about the server itself (external backups, restore tests, OS updates, hardening). When a customer needs that for their own audit, an administrator or auditor creates an audit appendix: the same report with the server section, signed, as PDF or JSON, and recorded in the activity log.

berth report list --customer acme
berth report audit --customer acme --month 2026-09 --pdf acme-2026-09.pdf
berth report audit --customer acme --month 2026-09 --json > acme-2026-09.json
berth report verify acme-2026-09.json

See evidence for audits for the server-wide evidence package.