OPNexusdocs

Notifications

Settings › Notifications. Channels:

  • Webhook with optional signing secret.

  • Email (SMTP) with host, port, encryption (STARTTLS/SSL), credentials, sender and recipients. Certificate and host name are verified; a mail server with a private CA needs SMTP_CA_FILE. Login without encryption stays blocked. With test you check each channel.

  • Further channels (section "Further channels", any number per type, each with Test):

    TypeSettingsCredentials
    ntfyserver address (default https://ntfy.sh), topic, priority 1–5access token, optional
    Gotifyserver address, priority 0–10app token
    Telegramchat ID (number or @channel), optionally your own API addressbot token (from @BotFather)
    Microsoft Teams–webhook address of a workflow ("Post to a channel when a webhook request is received") or of an incoming webhook
    Matrixhomeserver address, room ID (!abc:example.org, not the alias)access token of a user who is in the room

    The credentials are kept like the SMTP password in the server's secret store, never in the database, are never displayed again (only "set") and do not appear in error messages or logs. Because for Telegram and Teams the address itself is the secret, it is treated like a token. Targets must be http(s), without credentials in the address; local addresses (localhost, loopback, link-local, metadata service) are rejected, targets in your own network are allowed. The check also applies when the connection is established: OPNexus connects exactly to the address it checked (protection against DNS rebinding, message "Target address not allowed"); the same applies to the addresses of the SSO provider. Redirects are not followed. Webhook, email and all channels are served simultaneously, each with its own time limit (20 seconds) and at most 90 seconds in total per check run: a failed or hanging channel stops neither the others nor the check (the log says "timed out"). Delivery happens once per event, without retry.

Events (each can be switched individually): host not reachable, certificate expiring, rule drift in the cluster, NAT drift in the cluster, network deviation in the cluster, failed rollback, maintenance result unclear, CARP state critical (split brain/no master), CARP auto-revert failed, scheduled maintenance not executed, gateway disturbed, resource threshold exceeded, service down, API privileges missing (the last four are described below). Checking happens at the configured interval (default 300 s). A problem reports once and resolves itself as soon as it is fixed; the dashboard card "Warnings" shows the open ones. Exception "scheduled maintenance not executed": it stays open for three days after the scheduled time and then closes without a "resolved" message, because a missed appointment does not fix itself. The language of the texts is set under Settings › Notifications › "Language of the messages" (Automatic, Deutsch or English; Automatic follows the language of the oldest administrator account, and English if nobody ever chose one). The JSON object context of the webhook is never translated, so receivers that parse it keep working.

Gateway, resource and service alarms#

These three events read the minute measurement (the same one as the load charts), so they do not query the firewalls additionally. So that single spikes and flapping connections report nothing, an alarm opens only when the last N measurements are all bad, and closes only when the last N are all good again; in between the state stays as it is. N is adjustable (default 3 for gateways and services, 5 for resources; the measurement runs every minute). If a firewall is currently not reporting, OPNexus does not assess it (that is reported by "Host not reachable") and leaves open alarms standing.

  • Gateway disturbed – on by default, because a WAN outage is what everyone wants to know about. One alarm per gateway if OPNsense lists it as down, or if packet loss (default from 20 %) or latency (default from 500 ms) is above the threshold (0 switches the respective threshold off). OPNsense itself decides on "down" according to the limits in the gateway ("Gateway monitoring" setting). Gateways switched off by hand ("Disable gateway/forced down") and gateways without monitoring (no monitor IP, values "~") report nothing. The status is also on the host page (section "Gateways", read live), as a tile on the dashboard and in Prometheus. Switching off individual gateways: a dormant second WAN or a dead IPv6 gateway permanently report "offline". On the host page the bell behind the gateway switches the alarm off only for that gateway (tooltip "Alarm for this gateway"); the gateway then carries the badge "Alarm off", an open alarm resolves, and a click on the bell switches it on again. Only administrators may do this (like the other notification settings), and the change appears in the audit log. At most 200 gateways can be switched off.
  • API privileges missing – on by default. OPNexus's API user needs read privileges in OPNsense for the measurements on which the alarms are based: System: Gateways (gateway status), Status: Services (services) and Lobby: Dashboard (CPU, swap; the same privilege as the base values). If the firewall explicitly denies one of these accesses (HTTP 403), the associated alarm would never fire. Then the host page and the dashboard show the warning badge "API privileges missing: …" (tooltip names the missing privilege), there is one alarm per firewall and access, and it resolves as soon as the access works again. Timeouts and server errors count only as "unknown" and neither trigger anything nor close the alarm. Remedy: in OPNsense under System › Access add the named privilege to the user or group of the API key. Prometheus: opnexus_host_api_rights_missing{host,read} (1, only while it is missing).
  • Resource threshold – off by default: on an existing fleet switching it on would otherwise immediately report everything that has been full for a long time. Thresholds: disk from 90 % (one alarm per ZFS pool or UFS device), memory from 95 %, swap from 50 %, CPU load from 2.0 per thread (1-minute load divided by the number of CPU threads). Every threshold can be switched off with 0.
  • Service down – off by default. OPNsense only delivers "running / not running" and "locked", but not whether someone stopped a service deliberately. Therefore a list of monitored services applies (default: unbound, dnsmasq, dhcpd, dhcpd6, kea-dhcp4, kea-dhcp6, ntpd, openvpn, wireguard, strongswan), and only a service that ran during roughly the last two hours and no longer does is reported. A service that never ran (such as DHCPv6 without a prefix) stays silent; you take a deliberately stopped service off the list. A firewall lists only services that are enabled in its configuration, so a service that is not set up does not appear at all.