Configuration
Probeward is configured in two places:
- Environment variables with the prefix
PROBEWARD_, read once when the process starts. Changing one needs a restart (docker compose up -dafter editing.envrecreates the container; for the deb package,systemctl restart probewardafter editing/etc/probeward/probeward.env, which lists every variable). - Settings stored in the database and changed through the UI (Settings, Global) or
PATCH /api/v1/settings. They take effect at once, without a restart.
A value that cannot be parsed stops the server at start with configuration error: ... and a message naming the variable.
The OTEL_* variables of telemetry export are the standard OpenTelemetry names and are read from the environment too. They are listed in telemetry.md rather than here, apart from the one row below.
Environment variables
| Variable | Default | Meaning |
|---|---|---|
PROBEWARD_DATABASE_URL | required | PostgreSQL connection string, for example postgres://probeward:PASSWORD@postgres:5432/probeward. PostgreSQL 18 or later. The schema is created and migrated at start. |
PROBEWARD_LISTEN | 127.0.0.1:8080 | Address and port of the HTTP listener. The container image sets 0.0.0.0:8080; the reference Compose file publishes no port for it, only Caddy reaches it. |
PROBEWARD_VAULT_KEY_FILE | ./data/vault.key | The credential vault's master key: 32 random bytes in a file. Created with mode 0600 on first start if absent and the database holds no credentials. The file must not be readable by group or others. The image sets /var/lib/probeward/vault/vault.key, on its own volume. Keep it out of the database backups' reach. See backup and restore. |
PROBEWARD_PUBLIC_URL | http://localhost:8080 | The base URL browsers use, with the port if it is not the scheme's default. An https URL turns on the Secure flag of the session cookie. It is also the base of the links in notifications, unless overridden by the public URL setting. Must be an http or https URL. |
PROBEWARD_LOG | info,sqlx::postgres::notice=warn | Log filter in tracing env-filter syntax, for example debug or probeward_server=debug,info. An invalid filter falls back to info. Logs go to standard error, and, when telemetry export is on, also to the collector, at the same levels. |
PROBEWARD_LOG_FORMAT | text | text or json (one JSON object per line). |
PROBEWARD_TRUSTED_PROXIES | 127.0.0.0/8,::1 | Comma-separated addresses or CIDR networks whose X-Forwarded-For header is believed, or none. Used for the source address in the audit log and the login throttle. The Compose file widens it to the private ranges so that Caddy is trusted. Set it to the narrowest range that holds your proxy. |
PROBEWARD_SESSION_IDLE_MINUTES | 720 | A session ends after this many minutes without activity. 5 to 43200. |
PROBEWARD_SESSION_MAX_HOURS | 168 | A session never lives longer than this, however active. 1 to 2160. |
PROBEWARD_DB_VOLUME_PATH | unset | A path on the database's volume, used to report free disk space and the days-remaining estimate in the system status. Only meaningful when Probeward runs on the same host or mount as the data directory. Unset, free space is not reported. In the reference install the database is in another container, so it is unset. |
PROBEWARD_LOCAL_PROBE_NAME | Local probe | Name of the built-in probe, used the first time the instance starts. Rename it later in the UI. |
PROBEWARD_TEMPLATE_DIR | unset | Directory of device templates kept on this server: your own, and those imported from LibreNMS. Every .yaml file in it and one level down is read at the start of each discovery job, so a new or changed file needs no restart. A file that does not validate, or whose id is already taken by a shipped template, is left out and logged. The Compose file sets it to /var/lib/probeward/templates, in the templates volume. See templates. |
PROBEWARD_NO_RUNTIME | false | true, 1 or yes serves the API and UI without the monitoring runtime: nothing is polled, no notification is sent, and the instant controls answer 503. For maintenance and diagnosis. |
PROBEWARD_DELIVERY_MAX_ATTEMPTS | 8 | Attempts per notification delivery, the first one included, after which the delivery is marked exhausted and listed under Alarms, "Notifications that need attention". 1 to 50; any other value stops the server at start with a message. Retries back off from 30 s, doubling, to at most 1 h (with ±20 % jitter), so the default gives up about an hour after the first attempt. See webhook. |
PROBEWARD_PROBE_LISTEN | unset | Address and port of the listener remote probes connect to (mutual TLS). Unset, no remote probe can connect. See probes. |
PROBEWARD_PROBE_GRACE_SECS | 60 | How long a remote probe may be gone before its probe incident opens. 0 to 3600. |
PROBEWARD_PROBE_BINARIES_DIR | unset | Directory with probe binaries and their manifest.json, for probe self-update. |
OTEL_EXPORTER_OTLP_ENDPOINT and the other OTEL_* variables, PROBEWARD_OTEL_SIGNALS | unset | Optional export of Probeward's own logs, metrics and traces to an OpenTelemetry collector. Off unless an endpoint is set: no exporter, no task, no connection. The same variables configure a remote probe, in its own environment. Secrets (OTEL_EXPORTER_OTLP_HEADERS) are never logged. Every variable is described in telemetry. |
PROBEWARD_TRAP_LISTEN | 0.0.0.0:162 | Address and UDP port the SNMP trap receiver listens on, opened when the first snmp_trap sensor is polled. Port 162 is privileged; see receivers. Read by every probe process, so a remote probe takes it from its own environment. |
PROBEWARD_SYSLOG_LISTEN | 0.0.0.0:514 | Address and port the syslog receiver listens on, UDP and TCP, opened when the first syslog sensor is polled. |
PROBEWARD_SYSLOG_TCP | on | off, false, 0 or no stops the TCP listener of the syslog receiver. |
PROBEWARD_RECEIVER_RATE, PROBEWARD_RECEIVER_BURST | 100, 500 | Messages per second one device may send to a receiver, sustained and at once; more are dropped and counted. 1 to 1,000,000. |
PROBEWARD_RECEIVER_MESSAGES, PROBEWARD_RECEIVER_RETENTION_SECS | 1000, 3600 | Messages a receiver keeps per device and kind (10 to 100,000), and for how long (60 to 604,800 s). |
PROBEWARD_RECEIVER_BYTES, PROBEWARD_RECEIVER_SOURCES, PROBEWARD_RECEIVER_WATCH_SECS | 64 MiB, 1024, 21600 | Bytes a receiver keeps in all, devices it watches at once, and how long a device stays watched after its sensor last asked. See receivers. |
PROBEWARD_FLOW_LISTEN, PROBEWARD_SFLOW_LISTEN | 0.0.0.0:2055, 0.0.0.0:6343 | Address and UDP port the NetFlow and IPFIX collector and the sFlow collector listen on, each opened when the first netflow or sflow sensor is polled. Both ports are above 1023. Read by every probe process. |
PROBEWARD_FLOW_RATE, PROBEWARD_FLOW_BURST | 2000, 4000 | Datagrams per second one exporter may send to a flow collector, sustained and at once; more are dropped and counted. 1 to 1,000,000. |
PROBEWARD_FLOW_EXPORTERS, PROBEWARD_FLOW_WATCH_SECS | 256, 21600 | Exporters a probe watches at once (1 to 100,000), and how long one stays watched after its sensor last asked (60 to 2,592,000 s). |
PROBEWARD_FLOW_INTERVAL_SECS | 60 | Length of the interval flows are summed in, 5 to 300 and a divisor of 3,600. Shorter intervals are for tests. |
PROBEWARD_FLOW_KEYS, PROBEWARD_FLOW_TOP | 1024, 20 | Keys each table of the interval being filled holds (64 to 65,536), and entries kept per table in a finished interval (5 to 100). |
PROBEWARD_FLOW_RETENTION_SECS, PROBEWARD_FLOW_BYTES | 3600, 64 MiB | How long finished intervals are kept (600 to 86,400 s), and the bytes they may use in all (1 MiB to 16 GiB). |
PROBEWARD_FLOW_TEMPLATE_SECS | 1800 | How long a NetFlow v9 or IPFIX template is kept after the exporter last sent it, 60 to 86,400. See flow collectors. |
PROBEWARD_SCRIPT_DIR | unset | The one directory that holds the programs the script and nagios_plugin sensors may run. Unset or empty, no program ever runs. Programs are chosen by file name only and cannot be uploaded through the API or the interface. See scripts. |
PROBEWARD_OIDC_ALLOW_HTTP_LOOPBACK (true or false, default false) lets single sign-on use a provider at a plain http loopback address. It exists for tests against a local provider; leave it unset.
The test and development variables (PROBEWARD_TEST_DATABASE_URL, PROBEWARD_TEST_PG_CONTAINER, PROBEWARD_TEST_PG_USER, PROBEWARD_BENCH_DATABASE_URL, PROBEWARD_SKIP_DAEMON_TESTS, PROBEWARD_TEST_HIDE_BINARY, PROBEWARD_TEST_PLUGIN_DIR, PROBEWARD_TEST_WMI_HOST, _USER and _PASSWORD, PROBEWARD_TEST_VSPHERE_HOST, _USER and _PASSWORD and, for the UI, PROBEWARD_DEV_BACKEND) are only read by tests and the development server. They have no effect on a running instance.
Command line
probeward takes a subcommand; with none it runs serve.
| Command | Does |
|---|---|
probeward serve | Run the server. |
probeward version | Print the version. |
probeward openapi | Print the OpenAPI description as JSON. |
probeward probe | Run a remote probe. Configured with PROBEWARD_PROBE_* variables; see probes. |
probeward reflector [--listen ADDR] | Answer the packets of qos sensors, stamping each with its arrival and departure time, on UDP port 8620 unless --listen says otherwise (0.0.0.0:8620). Needs no database and no other configuration. |
probeward service configure | Windows only: set up the Windows probe service. The installer runs it; see Windows probes. |
probeward admin reset-password USER | Set a user's password, read from standard input, and end their sessions. Needs the database variables. |
probeward admin rollup | Run the rollup job to completion and print what it did. The server does this on its own every 15 minutes; use it after restoring a backup or to watch a long catch-up (see storage). Safe while the server runs: only one pass runs at a time. |
probeward admin export DIR | Write the configuration tree as files (--scope, --id, --layout). See export and import. |
probeward admin import DIR | Show what importing the files would change, or apply it with --apply (--plan-id, --yes, --as, --prune, --clone, --under). See export and import. |
probeward admin import-librenms PATH | Convert the device definitions of a LibreNMS checkout into device templates. Shows what would change and writes only with --apply. Needs no database. See LibreNMS import. |
In the reference install run it inside the container, for example:
printf '%s\n' 'a new long passphrase' | docker compose exec -T probeward probeward admin reset-password adminFor the deb package, sudo probeward-admin reset-password admin does the same as the service user with the settings of the environment file. See install.
The password must meet the policy: at least 12 characters, not containing the user name.
Settings in the database
| Setting | Default | Meaning |
|---|---|---|
raw_retention_days | 30 | How long every scan is kept. Whole daily partitions older than this are dropped. |
rollup_5m_retention_days | 90 | How long the 5-minute rollups (min, max, average and poll counts per sensor and channel) are kept, 1 to 3650. Whole daily partitions are dropped. See storage. |
rollup_1h_retention_days | 730 | How long the hourly rollups are kept, 1 to 3650. Whole monthly partitions are dropped, so up to a month more is kept. |
timeline_retention_days | 365 | How long timeline entries (state changes, controls, deliveries) are kept. |
audit_retention_days | 730 | How long audit records are kept. |
heartbeat | none | An http or https URL fetched with GET every interval_secs (10 to 86400; 60 is a good choice), with a 10 second timeout. It is sent only while Probeward can actually alert: the engine keeps up, the database answers and notification delivery works. Otherwise it is withheld, so a service watching for it (a dead man's switch) raises the alarm Probeward no longer can. Settings, System shows the last success and why one was withheld or failed. The URL often carries a secret token, so after it is saved it is only ever shown masked (https://host/…), to administrators too, and is scrubbed from errors and logs. The UI warns while no heartbeat is set. An administrator can hide that warning for everyone with Don't show again, and bring it back in Settings, Global. Saving a heartbeat also ends the choice, so removing it later is warned about again. |
smtp | none | Host, port, sender address, TLS mode (none, start_tls or implicit) and an optional smtp credential with the login, for email notifications. |
public_url | none | Overrides PROBEWARD_PUBLIC_URL for links in notifications. |
Each node (probe, group, device, sensor) also carries inheritable settings, set in the UI on the node and shown with their source:
| Setting | Default | Meaning |
|---|---|---|
interval_secs | 60 (a sensor kind may suggest another) | Scan interval. |
timeout_secs | 10 | Poll timeout, always kept below the interval. |
failure_count | 2 | Consecutive failing polls before an incident opens. |
repeat_interval_secs | 3600 | Seconds between repeat notifications while an incident is unacknowledged. 0 turns repeats off. |
max_concurrent_polls | 4 | Polls running at once against one device. |
snmp_credential, ssh_credential, windows_credential, radius_credential, vsphere_credential, tls_client_credential, secret_credential, login_credential | none | The credentials sensors below use. |
windows_transport | winrm | How Windows sensors connect: winrm, or wmi (native WMI, Windows probes only; see native WMI). |
monitoring_schedule | none | A schedule outside which nothing below is polled, or always to opt out of an inherited one. See schedules. |
notify | none | Notification rules: a destination, and whether Warning also notifies. A node that sets it replaces the inherited list. |
pause | none | A timed or open-ended pause. A sensor is paused when it or any ancestor is. |
What the reference install sets
deploy/compose.yml passes the following from deploy/.env; the rest of the table above keeps its default. See deploy/.env.example for the explained list.
.env variable | Becomes | Default in Compose |
|---|---|---|
POSTGRES_PASSWORD | database password, and part of PROBEWARD_DATABASE_URL | none; required |
PROBEWARD_PUBLIC_URL | PROBEWARD_PUBLIC_URL | https://localhost |
PROBEWARD_TRUSTED_PROXIES | the same | 172.16.0.0/12,10.0.0.0/8,192.168.0.0/16 |
PROBEWARD_LOG, PROBEWARD_LOG_FORMAT | the same | as above |
PROBEWARD_SESSION_IDLE_MINUTES, PROBEWARD_SESSION_MAX_HOURS | the same | 720, 168 |
PROBEWARD_LOCAL_PROBE_NAME | the same | Local probe |
TZ | the container's time zone | UTC |
PROBEWARD_SITE_ADDRESS, PROBEWARD_TLS | Caddy's site address and TLS issuer | localhost, empty |
PROBEWARD_BIND_ADDRESS, PROBEWARD_HTTP_PORT, PROBEWARD_HTTPS_PORT | the host side of Caddy's published ports | 0.0.0.0, 80, 443 |
PROBEWARD_IMAGE | the Probeward image name | probeward:local |
COMPOSE_PROJECT_NAME | prefix of container, network and volume names | probeward |