Skip to content

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 -d after editing .env recreates the container; for the deb package, systemctl restart probeward after 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 ​

VariableDefaultMeaning
PROBEWARD_DATABASE_URLrequiredPostgreSQL connection string, for example postgres://probeward:PASSWORD@postgres:5432/probeward. PostgreSQL 18 or later. The schema is created and migrated at start.
PROBEWARD_LISTEN127.0.0.1:8080Address 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.keyThe 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_URLhttp://localhost:8080The 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_LOGinfo,sqlx::postgres::notice=warnLog 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_FORMATtexttext or json (one JSON object per line).
PROBEWARD_TRUSTED_PROXIES127.0.0.0/8,::1Comma-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_MINUTES720A session ends after this many minutes without activity. 5 to 43200.
PROBEWARD_SESSION_MAX_HOURS168A session never lives longer than this, however active. 1 to 2160.
PROBEWARD_DB_VOLUME_PATHunsetA 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_NAMELocal probeName of the built-in probe, used the first time the instance starts. Rename it later in the UI.
PROBEWARD_TEMPLATE_DIRunsetDirectory 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_RUNTIMEfalsetrue, 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_ATTEMPTS8Attempts 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_LISTENunsetAddress and port of the listener remote probes connect to (mutual TLS). Unset, no remote probe can connect. See probes.
PROBEWARD_PROBE_GRACE_SECS60How long a remote probe may be gone before its probe incident opens. 0 to 3600.
PROBEWARD_PROBE_BINARIES_DIRunsetDirectory with probe binaries and their manifest.json, for probe self-update.
OTEL_EXPORTER_OTLP_ENDPOINT and the other OTEL_* variables, PROBEWARD_OTEL_SIGNALSunsetOptional 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_LISTEN0.0.0.0:162Address 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_LISTEN0.0.0.0:514Address and port the syslog receiver listens on, UDP and TCP, opened when the first syslog sensor is polled.
PROBEWARD_SYSLOG_TCPonoff, false, 0 or no stops the TCP listener of the syslog receiver.
PROBEWARD_RECEIVER_RATE, PROBEWARD_RECEIVER_BURST100, 500Messages 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_SECS1000, 3600Messages 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_SECS64 MiB, 1024, 21600Bytes 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_LISTEN0.0.0.0:2055, 0.0.0.0:6343Address 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_BURST2000, 4000Datagrams 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_SECS256, 21600Exporters 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_SECS60Length 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_TOP1024, 20Keys 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_BYTES3600, 64 MiBHow 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_SECS1800How long a NetFlow v9 or IPFIX template is kept after the exporter last sent it, 60 to 86,400. See flow collectors.
PROBEWARD_SCRIPT_DIRunsetThe 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.

CommandDoes
probeward serveRun the server.
probeward versionPrint the version.
probeward openapiPrint the OpenAPI description as JSON.
probeward probeRun 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 configureWindows only: set up the Windows probe service. The installer runs it; see Windows probes.
probeward admin reset-password USERSet a user's password, read from standard input, and end their sessions. Needs the database variables.
probeward admin rollupRun 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 DIRWrite the configuration tree as files (--scope, --id, --layout). See export and import.
probeward admin import DIRShow 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 PATHConvert 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:

sh
printf '%s\n' 'a new long passphrase' | docker compose exec -T probeward probeward admin reset-password admin

For 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 ​

SettingDefaultMeaning
raw_retention_days30How long every scan is kept. Whole daily partitions older than this are dropped.
rollup_5m_retention_days90How 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_days730How long the hourly rollups are kept, 1 to 3650. Whole monthly partitions are dropped, so up to a month more is kept.
timeline_retention_days365How long timeline entries (state changes, controls, deliveries) are kept.
audit_retention_days730How long audit records are kept.
heartbeatnoneAn 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.
smtpnoneHost, port, sender address, TLS mode (none, start_tls or implicit) and an optional smtp credential with the login, for email notifications.
public_urlnoneOverrides 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:

SettingDefaultMeaning
interval_secs60 (a sensor kind may suggest another)Scan interval.
timeout_secs10Poll timeout, always kept below the interval.
failure_count2Consecutive failing polls before an incident opens.
repeat_interval_secs3600Seconds between repeat notifications while an incident is unacknowledged. 0 turns repeats off.
max_concurrent_polls4Polls running at once against one device.
snmp_credential, ssh_credential, windows_credential, radius_credential, vsphere_credential, tls_client_credential, secret_credential, login_credentialnoneThe credentials sensors below use.
windows_transportwinrmHow Windows sensors connect: winrm, or wmi (native WMI, Windows probes only; see native WMI).
monitoring_schedulenoneA schedule outside which nothing below is polled, or always to opt out of an inherited one. See schedules.
notifynoneNotification rules: a destination, and whether Warning also notifies. A node that sets it replaces the inherited list.
pausenoneA 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 variableBecomesDefault in Compose
POSTGRES_PASSWORDdatabase password, and part of PROBEWARD_DATABASE_URLnone; required
PROBEWARD_PUBLIC_URLPROBEWARD_PUBLIC_URLhttps://localhost
PROBEWARD_TRUSTED_PROXIESthe same172.16.0.0/12,10.0.0.0/8,192.168.0.0/16
PROBEWARD_LOG, PROBEWARD_LOG_FORMATthe sameas above
PROBEWARD_SESSION_IDLE_MINUTES, PROBEWARD_SESSION_MAX_HOURSthe same720, 168
PROBEWARD_LOCAL_PROBE_NAMEthe sameLocal probe
TZthe container's time zoneUTC
PROBEWARD_SITE_ADDRESS, PROBEWARD_TLSCaddy's site address and TLS issuerlocalhost, empty
PROBEWARD_BIND_ADDRESS, PROBEWARD_HTTP_PORT, PROBEWARD_HTTPS_PORTthe host side of Caddy's published ports0.0.0.0, 80, 443
PROBEWARD_IMAGEthe Probeward image nameprobeward:local
COMPOSE_PROJECT_NAMEprefix of container, network and volume namesprobeward

AGPL-3.0-only