Skip to content

From a fresh install to your first alert ​

This walks through the path the pilot measures: install, set up a notification destination, find something to monitor, break it, and receive the page and the recovery. It takes about ten minutes once the stack is running (install).

Every step below is exercised by the browser tests in ui/e2e/ against the real server with its monitoring runtime, a local web and TCP target, a webhook receiver and a mail catcher. Each step names the test that covers it; acceptance lists them all, with what is not covered.

1. Sign in ​

Open your Probeward URL and complete first-run setup if you have not.

2. Add a notification destination ​

Settings, Notifications, Add. Credentials for a destination, such as a webhook URL, are kept in the vault and cannot be read back afterwards. The form creates the credential for you; through the API it is a secret credential referenced by credential_id.

Choose one:

Webhook. Paste the receiver's URL. The URL is the secret, so treat it like a password. To try it without a service, run a receiver on a machine the Probeward host can reach:

sh
python3 -c '
import http.server
class H(http.server.BaseHTTPRequestHandler):
    def do_POST(s):
        body = s.rfile.read(int(s.headers.get("Content-Length", 0)))
        print(s.headers.get("X-Probeward-Event-Type"), s.headers.get("X-Probeward-Event-Id")); print(body.decode())
        s.send_response(204); s.end_headers()
http.server.HTTPServer(("0.0.0.0", 9000), H).serve_forever()'

and use http://<that machine>:9000/. The payload and its JSON Schema are described in webhook.

Optionally give the webhook a signing key (the "Signing key" field; administrators only). Every request then carries X-Probeward-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256> over "<t>.<raw body>", so the receiver can tell the request came from your Probeward and was not replayed; webhook shows how to check it. The key is stored as its own credential and is never shown again. To change it, edit the destination and choose to replace or remove it.

Discord. In the channel's settings, Integrations, Webhooks, create a webhook and copy its URL. Paste it as the destination's secret.

Telegram. Create a bot with BotFather and copy its token (the secret). Add the bot to your chat or channel and enter the chat id (-1001234567890 or @channel).

Email. First tell Probeward how to send: Settings, Global, SMTP (host, port, sender address, TLS mode none, start_tls or implicit, and an optional smtp credential holding the login). Then add a destination with the recipients' addresses (1 to 50) and an optional subject prefix. A destination can use its own SMTP login instead of the global one.

3. Send a test ​

On the destination, choose Send test. A test message is clearly labelled TEST in every channel and says nothing is wrong; no incident is created. Do this for every new destination before you rely on it.

If the test does not arrive, the destination's delivery status and GET /api/v1/deliveries/attention say why. A webhook receiver that answers with a 4xx other than 408 or 429 is a permanent failure; timeouts and 5xx answers are retried, up to PROBEWARD_DELIVERY_MAX_ATTEMPTS attempts in all (8 by default).

4. Choose who is told ​

A destination only receives incidents once a notification rule names it. Set the rule high in the tree so that it covers everything: on the probe or on a group (open the node in the Tree, Settings, Notifications, tick the destination). Tick "also on warning" only if a Warning should page. Discovery sets the rule for you when you choose a destination in its last step.

While you are there, note the defaults that decide when an alert fires: failure count 2 (the second consecutive failed poll opens the incident; the first is visible but quiet), scan interval 60 seconds, and a repeat every 3600 seconds while nobody acknowledges. A change to the rules applies to incidents already open: a destination you remove, or a "notify nobody" override, stops their repeats and recovery at once. The tests shorten the interval to 2 seconds on their group so that they run in seconds; the rules are the same.

5. Discover something ​

Discovery, then give it an address range (for example 192.0.2.0/24, 192.0.2.10-20 or a single address; at most 4096 addresses), the TCP ports to try if the defaults do not fit, the group the new devices go in, the read-only SNMP or SSH credentials to try, and the destination from step 2. Start it.

Probeward pings each address, checks the TCP ports and tries the credentials (a secret credential holding a Proxmox VE API token is used where port 8006 answers as Proxmox; see Proxmox VE; a vsphere credential is used where port 443 answers as ESXi or vCenter; see VMware vSphere; a tls_client credential is used where port 2376 answers as a Docker host; see Docker container), then matches templates and proposes devices and sensors. Open the results, review what each address answered and which sensors would be added (an address that only answers ping is labelled "reachability only"), select the ones you want and Apply. Selecting an address lists the sensors it would get, each with a tick box: untick the ones you do not want, or use All and None. The proposed sensors start ticked; one that is listed but not selected (a stopped Proxmox guest, a template) starts unticked and is created only if you tick it.

To add one machine you already know, choose Add device on a group or probe, fill in the address, pick the credentials the device uses (or leave them to be inherited) and choose Add and discover: the device is created with those credentials and a discovery of its address starts, ready for you to pick its sensors.

To look at one device again, right-click it on the tree page and choose Discover sensors: the wizard opens with its address and group filled in. Applying adds the sensors the device lacks and leaves the others alone. The entry is there for devices with an IPv4 address under the local probe, for users who may configure both the device and its group.

To monitor something that is always there, add the Probeward host itself, or any machine with an open SSH or web port. You can also add a sensor by hand: open the device, Actions, Add sensor.

6. See it working ​

Open the new device. Within one interval its sensors show current values and a graph, and the device is Up. The tree updates live; you never need to reload.

7. Cause a failure ​

Either:

  • Break something real: stop a service the sensor watches (a web server, a port), or block the port with a firewall rule on the target. This tests the real polling path, which is the point of the exercise.
  • Or simulate: on the sensor's page, Actions, Simulate error. This marks the sensor as failing without touching the target, and everything it causes is labelled SIMULATED in the UI, in the timeline and in the message. Use Clear simulated error to end it.

8. Watch the incident open ​

Know what you will see. A service that refuses the connection, or does not answer, is a collection failure: Probeward could not take a reading. The sensor's freshness says "Collection failure" with the reason (for example "connection refused"), its health keeps the last value it had, and the last good reading stays on screen with its age. A service that answers wrongly (an HTTP 500, a value over its limit) is instead Down. Both page.

With failure count 2: after the first failed poll the sensor says "1 failed poll in a row" and nobody is paged. After the second, an incident opens (Alarms, and an "Open incident" link on the sensor) and one opened notification goes to the destination. The notification carries the device, group path, the sensor, why it failed, the last good reading, anything suppressed because of it, and links back to the incident.

If the device's ping fails, its other sensors are suppressed instead of paging separately: one page for the device.

Acknowledge from the incident page, with a note if you like, to record that you own it and stop the repeats. The incident then shows who acknowledged it and when.

9. Recover ​

Restore the service (or Clear simulated error). The first good poll closes the incident and sends one recovered notification for the same incident, saying how long it lasted. The incident's timeline shows every step, including each delivery and who did what.

If something does not arrive ​

  1. Settings, System shows whether the runtime is running, how delivery is doing, and whether the heartbeat is configured. Set a heartbeat (Settings, Global) so that something outside Probeward notices if it stops.
  2. The incident page lists each delivery and its status, kept apart from the sensor's health.
  3. The audit log (admins) and docker compose logs probeward show what the server did.
  4. Repeat steps 2 and 3, and check the destination is named by a rule above the device.

AGPL-3.0-only