`), and one attachment with `fallback` (the same line), `color` by severity (`critical` red, `major` orange, `minor` and `warning` yellow, else grey), green once the alert, group or incident is closed or resolved, blue for an acknowledged one, `title` (the alert's or incident's title, the person's name for on-call events), `title_link` (the alert in the hub UI, for alert, group and ticket events when the node knows `[server] public_url`), `text` (the description, at most 1000 characters) and short `fields` Severity, State, Team, Service, CI, Node, Rotation and Ticket where set. Text taken from the event is escaped (`&`, `<`, `>`) and an `@` in it gets a word joiner, so it can't mention people or channels.
Skip to main content

Integrations

1. Inbound channels​

Each Source has one channel (spec-format.md §3.1). The default mapping of each channel can be overridden field by field.

ChannelTransportMapping variablesDefault keyDefault roleDuplicates
alertmanagerPOST /ingest/alertmanager/{source}, webhook v4 JSON, bearer intake tokenOne alert of the group: status, startsAt, endsAt, fingerprint, generatorURL (string); labels, annotations and the group's commonLabels (map(string, string))fingerprintstatus == "resolved" ? "resolution" : "problem"new, new
grafanaPOST /ingest/grafana/{source}, Grafana webhook contact pointAs Alertmanager, plus dashboardURL, panelURL, ruleUID (string: the alert's __alert_rule_uid__ label, else the UID in its generatorURL), orgId (int), values (map(string, double))ruleUID + "/" + fingerprintas Alertmanagernew, new
icingaPOST /ingest/icinga/{source}, JSON from the shipped notification commandhost, service, state (OK, WARNING, CRITICAL, UNKNOWN, UP, DOWN), output, notification_type (string); vars (map(string, dyn)); node defaults to host, check to servicehost + "!" + servicenotification_type in ["PROBLEM", "RECOVERY"] ? (state in ["OK", "UP"] ? "resolution" : "problem") : "info"new, new
snmpUDP 162 (snmp_listen); v1, v2c, v3 (USM)Through TrapRules (§4)Per trap ruleresolution with a close key for a rule's clears (spec-format.md §3.2), else problemnew, keep
opcmsgPOST /ingest/opcmsg/{source} from excubio-msg (§2)application, object, msg_text, msg_grp, node, severity, msg_key, service_id (string, empty when not given); options (map(string, string))msg_key != "" ? msg_key : node + ":" + application + ":" + object + ":" + msg_grpseverity == "normal" ? "info" : "problem"keep, keep
obm-restOBM's event web service paths, XML and JSON (§2)The OBM event elements (§2): text elements as string (empty when not given), log_only, skip_duplicate_suppression and pattern_ignore_case as bool, node_hints and related_ci as map(string, string), related_ci_hints and source_ci_hints as list(string), custom_attribute_list as map(string, string) of name to valuekey, else the ETI rule, else as opcmsglog_only || severity == "normal" ? "info" : "problem"keep, keep
obm-listenerOBM Operations Connector REST listener paths, XML and JSON (§2)The parsed body as body (dyn)none: mapping required"problem"keep, keep
obm-upstreamThe hub reads an OBM instance (§3)As obm-rest, plus the assigned groupOBM event IDresolution when OBM closed the event, else problemnew, new
webhookPOST /ingest/webhook/{source}, any JSONThe parsed body as body (dyn)none: mapping required"problem"new, new
emailSMTP (smtp_listen), or a mailbox read over IMAP (§13)from, subject, body (the text part, or the HTML part as text) (string); to (list(string)); headers (map(string, string)); attachments (list(map(string, string)), name and type)subject"problem"new, new
syslogRFC 5424 and RFC 3164 over UDP 514, TCP 514 and TLS 6514 (§13)host, app, procid, msgid, message (string); facility, level (0–7) (int); structured (structured data, map(string, map(string, string))); truncated (bool, cut at pipeline.maxSyslogBytes)none: mapping required"problem"new, new

The key and role columns give the default mapping as CEL where it is short; opcmsg also maps severity, title (msg_text), node and service (service_id) by default. Variables are typed as listed, so mappings are type-checked against them (spec-format.md §3.1); time stamps such as startsAt are RFC 3339 strings (timestamp(startsAt) converts). The event's occurred_at (pipeline.md §2) is, for alertmanager and grafana, the alert's endsAt when it is resolved and its startsAt otherwise. A dyn value is checked at run time only. In JSON parsed to dyn, a number without fraction or exponent that fits a signed 64-bit integer is an int, every other number a double.

The duplicates column gives the default duplicates policy as severity, fields (spec-format.md §3.1). The OBM channels keep the first severity and text of an alert by default, as OBM does.

Every HTTP channel also offers the request's query parameters as query (a map of strings; a repeated parameter keeps its last value). Senders that can configure only a URL per target, such as an Alertmanager receiver per namespace or a Grafana contact point, pass routing hints this way (?cluster=prod-1&service=PAYMENTS%20PROD), so one Source serves all of them. Query parameters are never credentials (architecture.md §11).

All HTTP channels answer 202 after the events are stored, 401 for an unknown or revoked intake token, 413 for an oversized body and 503 with Retry-After when the hub can't store.

Every channel the hub listens for also arrives through a relay (§15).

2. opcmsg and OBM REST compatibility​

The close key matcher is verified by the close-key-patterns spike. The arguments of installed agents and the bodies of real senders rest on the opcmsg-compat and obm-rest-compat spikes, which need those systems and have not run (spikes).

excubio-msg is a drop-in for opcmsg:

  • It takes the arguments of the agent's opcmsg (a= or application=, o= or object=, msg_t= or msg_text=, msg_grp= or msg_g=, node= or n=, sev=, s= or severity=, service_id=, -option name=value, and msg_key= where the installed version has it) and returns its exit codes. a=, o= and msg_t= are required; the severity is one of unknown, normal (the default), warning, minor, major, critical. Scripts and monitoring that call opcmsg switch by a symlink or PATH.
  • It reads the hub URL (the intake listener), the Source and the intake token from /etc/excubio/msg.toml (url, source, token; EXCUBIO_MSG_CONFIG names another file), each replaced by its EXCUBIO_MSG_* variable (EXCUBIO_MSG_URL and so on), gives each message a message ID (UUIDv7) and posts it to ingestOpcmsg with the token as bearer, over TLS with the host's trust store and the certificates of ca_file. When the hub is unreachable (no connection within timeout_seconds, default 10, or 408, 429, 5xx), it keeps the message in a local spool directory (spool_dir, default /var/spool/excubio-msg, one file per message, bounded by spool_max, default 10,000 messages) and sends it later, oldest first, before the next message or with excubio-msg --flush, with the same message ID and its spooled_at time, so resends are removed as copies and old messages are marked stale (pipeline.md §2). A message the hub refuses (any other 4xx) is neither sent nor spooled; a spooled one it refuses is dropped from the spool. The package makes msg.toml (0640) and the spool directory (2770) the group excubio-msg's; the users that send are its members.
  • On an OBM agent, opcmsg output passes through an opcmsg policy, which sets the key, close key pattern, custom attributes, ETI and log-only flag. excubio-msg sends the raw fields; the policy's logic becomes the Source's mapping, which Discover drafts from the policy (migration.md §1).

Operations Connector REST listeners. Most HTTP senders of an OBM installation don't call OBM's event web service: they post to REST web service listener policies of an Operations Connector (OpsCx, BSM Connector), at /bsmc/rest/events/<path>, with a body the policy parses (Alertmanager JSON, own XML, the JSON of an opcmsg REST wrapper). The obm-listener channel serves these paths, so such senders change only host, port and credentials:

  • POST /bsmc/rest/events/{path} is routed to the Source whose listenerPath is {path}. HTTP basic authentication with the Source name as user and the intake token as password, as for obm-rest.
  • XML bodies are parsed to body with a fixed convention: an element becomes a key (namespace prefixes removed), its attributes @name, its text #text when it also has attributes or children, repeated elements an array. JSON bodies are parsed as they are.
  • The listener policy's rules become the Source's mapping; Discover drafts it from the exported policy (migration.md §1).

OBM REST compatibility. The hub serves the event submission of OBM's event web service, so REST wrappers and tools that post OBM events only change the base URL and credentials:

  • POST /opr-web/rest/{version}/event_list (also under /opr-web/ws/) for the versions 9.10, 10.0, 10.10 and 10.11, in OBM's XML (namespace http://www.hp.com/2009/software/opr/data_model) or JSON. Version 9.0 and requests without a version get 415, as from OBM. The answer is 202 with the created events and their IDs, in OBM's format.
  • PUT /opr-web/rest/{version}/event_list/{id} with state = closed closes the alert of that event, for clients that close what they created. No other query or update operation is served.
  • Clients that first fetch OBM's secureModifyToken cookie and send it as X-Secure-Modify-Token get the same from the hub; the token is not a credential.

The table gives the rules of obm-rest for each event field a Source doesn't map itself; an event without id gets one from the hub, which the answer carries.

OBM elementEvent field
title, description, severitythe same; OBM's normal is a severity, not a resolution
key, close_key_patternkey, closeKey in OBM's pattern syntax
node_hints (dns_name, ip_address, core_id, hint)node: dns_name, else hint, else ip_address
related_ci_hints, source_ci_hintsci; label source_ci
related_ci/sub_componentlabel subcomponent
eti_hint (indicator:value)the ETI rule below
custom_attribute_list/custom_attribute{name,value}labels, names normalised (spec-format.md §3.1)
category, sub_category, application, object, priority, solution, drilldown_urllabels of the same names (sub_category as subcategory)
time_createdoccurred_at
log_onlyrole info
skip_duplicate_suppressionthe event ID is appended to the key, so each event opens its own alert
idcopy hash (pipeline.md §6) and the alert's source ID
original_datakept in the raw payload only
  • Close key patterns from the OBM channels use OBM's syntax (closeKeySyntax = "obm", the default of these channels), evaluated by a matcher that reproduces OBM 24.2's results, checked against OBM's own matcher classes (close-key-patterns spike):

    PatternMatches
    <*>any characters, also none
    <#>one or more ASCII digits
    <@>one or more characters other than separators
    <_>one or more separators (space and tab)
    </>one or more line breaks (LF, CR)
    <3*>, <3#>, <3_>, <3/>exactly that many of them; <0*> the empty string
    [a|b]one of the alternatives
    <[a|b].name>the same; the name is required
    <![a|b]>, <![a|b].name>OBM's negation, not a complement: it fails where the enclosed pattern occurs in the rest of the key and needs a character when it ends the pattern (^<![a]>$ matches b and bb, not ba)
    <*.name>, <@.name>, <3#.name>as without the name; the name is ignored
    a|b outside bracketsalternatives of the whole pattern
    \ + charactersthe characters of the escaped token, literally: \t matches t, \101 matches 101, \< matches <
    • Anchors. A pattern matches anywhere in the key unless its first character is ^ or its last is $, unlike Excubio's own syntax. The anchors are taken from the raw text before parsing, so a final \$ anchors too (^a\$ matches a), and they apply to every top-level alternative (^a|b$ is ^[a|b]$). The empty pattern matches every key.
    • Characters. Keys and patterns are compared as UTF-16 code units (<1*> doesn't match an emoji, <2*> does), CR LF is one character for every construct, and only the first 1,024 code units of a key are compared.
    • Tails and invalid patterns. At the top level the parser stops at the first token that can't continue the pattern and ignores the rest: a>b is a, and > matches every key. Inside brackets such a token makes the pattern invalid, as do <n@>, <[…]> without a name, <!…> without brackets, a count above 2^31, <*.>, ^ alone and an unterminated construct. An invalid pattern, or one on which OBM's matcher fails at run time (^<![<*>]>$), closes nothing.
    • Search. The matcher follows OBM's search, including its misses and extra matches: a match that starts right after a failed partial match isn't found (aab doesn't match aaab, web01:OS doesn't match wweb01:OS:cpu), skipping a character can accept a key that doesn't match (^[a|b]$ matches ab), and ^$, a|<*> and <*><2*>x match every key. Anchored patterns of policy-shaped keys (^web01:OS:<*>, ^web01:<*>:cpu$) give the expected result; the misses hit unanchored ones.
    • Simple patterns. A pattern that starts with ^ and contains no | and no unescaped < other than in <* is evaluated as OBM evaluates it, as SQL LIKE (<*> as %): exactly, without the misses of the search, and with […] and <*.name> as literal text.
    • Case. The event's pattern_ignore_case maps to closeKeyIgnoreCase: key and pattern are upper-cased, then lower-cased, with Java's full case mappings, so straße equals STRASSE and ^<1*>$ doesn't match ß (it becomes ss).
    • Reach. OBM matches the pattern against the key alone and closes the earlier events that aren't closed, whatever their source, node or policy. Excubio closes within the namespace (pipeline.md §1), so the OBM-channel Sources of one OBM installation share one keyNamespace to keep that reach.
  • ETI events. An event with an eti_hint and no key gets the key CI (or node) + / + subcomponent, where the event has one, + / + indicator, so the subcomponents of a CI (the disks of a host) are separate alerts. Its role is resolution when the value is the indicator's reset value in the Source's etiResetValues ValueMap, whose canonical values are the reset values and whose variants the indicators (Discover generates it from the indicators in the RTSM), else problem; its duplicates always take the new severity and fields, so a new value replaces the old one, as OBM closes the event of the old value. An indicator without a reset value gets the value appended to the key: OBM keeps one event per value of such an indicator.

  • Title placeholders ${node.label} and ${relatedCi.label} are replaced with node and ci.

3. OBM upstream​

The hub works as an OBM event consumer, the way an OBM-connected paging engine does. The reading rules follow OBM's event web service (OprEventsResource of the 2021.05 hotfix, the database path of the 2020.10 IP1 hotfix) and a simulator of it (spike obm-upstream):

  • It polls OBM's event list (GET /opr-web/rest/10.11/event_list) with include_closed = true, order_by = time_changed and order_direction = ascending (without it OBM sorts time_* fields descending), filtered by a configurable OBM view (view_filter) or event filter (event_filter, by name or ID, one OBM can evaluate in its database, for example NotifyUser = true). OBM returns the events whose time_changed is strictly after watermark, ties ordered by sequence number.
  • Watermark. The reader keeps the largest time_changed read, in OBM's time, per upstream in the hub database, stored in the transaction of each page's events. A poll starts at the watermark minus the Source's overlap (2 minutes by default, spec-format.md §3.1). Each further page starts at the last time_changed of the previous page minus 1 ms, always at start_index 1 with the Source's pageSize (500 by default), so events sharing a time_changed are read again rather than skipped. A page whose events all have one time_changed is requested again with twice the page size, up to OBM's 10,200. Larger start_index values are not used: OBM pages by offset, and an event that changes while the reader pages, including by Excubio's own write-back, moves to the end and makes the reader skip another. The overlap covers changes that become visible after later ones: OBM stamps time_changed before the commit, with the clock of whichever OBM server writes. Events read again have the same OBM ID and change time and are copies (pipeline.md §6).
  • Reconciliation. Every 15 minutes the reader lists OBM's active events (no watermark, include_closed = false), passes on active events it has not read, and fetches each event whose alert is open but that is no longer active (GET event_list/{id}). This catches changes that became visible later than the overlap. An event OBM no longer has (404) resolves its alert.
  • OBM's event change feed (event_change_list) is not used: it takes no view or event filter, it lists history lines (changed attributes), not events with their custom attributes, and OBM writes no history line for duplicate-count changes.
  • It writes back as annotations on the OBM event ("paged perimeter/primary", "acknowledged by …", "ticket SM-…", "incident resolved", POST …/annotation_list) and sets the custom attribute ExcubioIncident to the incident ID (POST …/custom_attribute_list, which also overwrites) only when the event doesn't carry that value. Each write sends OBM's secure modify token, taken from the secureModifyToken cookie of the reader's latest GET, as X-Secure-Modify-Token; after a 403 (the token is gone after an OBM restart) the reader does a GET and retries once.
  • Each write changes the event's time_changed, so the event is read again. A version that differs from the alert's last OBM event only in annotations, ExcubioIncident and time_changed is dropped.
  • OBM closing the event resolves the alert.
  • OBM's own storm events (keys starting OMiEventStorm:) arrive as ordinary events; the drafted spec routes them to the platform team.
  • The OBM user needs read access to the events and annotation rights.

4. SNMP​

  • The receiver decodes v1, v2c and v3 traps. v3 uses USM users, configured on the Source with Secret references, with authentication HMAC-SHA-1 or HMAC-SHA-224, -256, -384 or -512 (RFC 7860) and privacy AES-128 (RFC 3826) or AES-192 or AES-256 with the Blumenthal key extension, or Reeder's (Cisco's) as the user's setting. MD5 and DES are not supported.
  • Engines. For a trap the sender is the authoritative engine. The receiver localizes the user's keys to the engine ID in each trap and caches them per engine ID, so devices need no engine ID configuration; a user can list the engine IDs it accepts (by default any). The RFC 3414 time window applies per sender engine: from the boots and time of its latest authenticated trap, a trap with lower boots or a time more than 150 s behind is rejected. The first trap of an engine is accepted; copy detection removes a replay of it (pipeline.md §6). The engine table is bounded, least recently used first out.
  • Informs. v2c informs are answered with a Response and processed as traps. v3 informs are not supported, because the hub is not an authoritative engine: devices send v3 traps instead.
  • Encoding. A value its type doesn't allow (a Counter64 in a v1 trap, an unsigned value without its leading zero, an IpAddress not of 4 octets, NsapAddress, UInteger32, an unknown tag) is kept, decoded as net-snmp decodes it or as hex, and flagged on the varbind; it doesn't reject the trap.
  • Trap packs are signed bundles (operations.md §5) with the MIB tables compiled (mibs.json, operations.md §5), and rules with OID match, severity, key, clears and title. Packs exist for common enterprise devices (Cisco UCS, Check Point, NetApp ONTAP, Infoblox, VMware vCenter, Citrix NetScaler, CyberArk, generic IF-MIB link up/down). Customers build their own packs from MIB files with excubioctl trap-pack build.
  • A trap goes to the first snmp Source in name order whose community or USM user it carries and whose allowFrom, where set, contains the agent; a trap that fits none, or whose credentials fail (an unknown community or user, a wrong digest, outside the time window), is rejected and counted. A USM user without auth sends without authentication, like a community.
  • The rules of the Source's TrapRules apply in the order of its trapRules, each TrapRule's own rules before its pack's; the first rule whose trapOid matches maps the trap: its severity, its key (the variables' values joined as in pipeline.md §1), its title (else the key) and, with clears, the resolution role and close key. The event's node is the agent and its check the rule's name.
  • A trap that no rule matches opens an alert of severity unknown with key agent + trap OID, so nothing is lost; a Source can set unmatched = "drop" instead, which stores it as info and counts it (excubio_snmp_unmatched_total).
  • Variables of a rule's key and title: agent (sender address), trapOid, varbind:<name> by MIB name or varbind:<oid>; a varbind OID also finds the first varbind under it (a table column finds its instance), and a missing varbind is empty.
  • The raw payload is the trap as decoded: agent, trapOid, version, uptime, the varbinds with OID, type, value and the flag of Encoding, and a v1 trap's agentAddr, a v3 trap's user and engineId; the community is not kept. The same trap received by two nodes is one event and a copy (pipeline.md §6).

5. ITSM​

At most one ticket per alert (several alerts per ticket with the profile's groupBy), created by a ticket action with a TicketProfile (spec-format.md §3.12).

AdapterCreateUpdate and closeTicket closed upstream
sm9SM9 REST API, incident resource: POST <baseUrl>/incidents with {"Incident": {…}} (Title, Description, Service, AssignmentGroup, AffectedCI, Impact, Urgency and the profile's fields by name), Basic credentials; the answer's Incident.IncidentID is storedActivity update (PUT <baseUrl>/incidents/<id>, JournalUpdates); resolve (POST <baseUrl>/incidents/<id>/action/resolve) with the profile's closureCodePolled every 5 min for open tickets (GET <baseUrl>/incidents/<id>, Status closed or resolved)
webhookSigned POST; the response's ticketId is storedSigned POST per changePOST /api/v1/tickets/{id}/closed on the hub

The webhook adapter POSTs to baseUrl a JSON body {"id", "type", "ticket", "fields" | "text"}: type ticket.create (with fields: title, description, service, assignment_group, affected_ci, impact, urgency and fields; the answer names the ticket as ticketId), ticket.update (an activity: an alert joined, changed, reopened or closed, or all of the ticket's alerts closed with onAlertClose = "annotate") or ticket.resolve, signed as webhooks are (§8) with the profile's credentials, an opaque Secret; id is the idempotency key of the run's message, for deduplication. The sm9 adapter's credentials are a basic-auth Secret.

sm9 has no key it drops a repeated create by, so a create whose answer is lost (the 10 s request bound passed, the connection broke, the node died) is not simply sent again. The run records the create's idempotency key on the ticket before the POST; an answer with an error status clears it (no incident was made). With the profile's keyField the create sets that incident field to the key, and the next attempt first looks it up with GET <baseUrl>/incidents?<keyField>=<key>: an incident in the answer's content is the ticket, none lets the create go out again with the same key. Without keyField the next attempt fails the ticket and its run and raises the self-alert action-failing, which says to look for the incident in sm9; the group's other runs then open a ticket of their own.

A ticket run creates the ticket, or joins the open ticket of its group (an activity on it), and records its ID on the alert (ticket_ref) by a command to the alert's owner. The group's other runs wait while its ticket is created; when the creating run has ended without the ticket (it failed, or its alert was forgotten), the next of them takes the create over and sends it with the first create's key. Once the ticket's last alert has closed, onAlertClose applies and the ticket is resolved or released. A ticket closed upstream ends its runs; with onTicketClose = "close-alert" its open alerts get close commands of origin itsm (close reason ticket).

ServiceNow incidents use the webhook adapter. A Scripted REST API in the instance checks the Excubio-Signature header (§8), creates the incident record from the body (the profile's service, assignmentGroup, affectedCi, priority and fields map to business_service, assignment_group, cmdb_ci, impact, urgency and further columns) and returns its sys_id as ticketId; later POSTs add work notes or resolve it. A business rule on incident calls the hub's tickets/{id}/closed with an API token of the scope tickets when the incident is resolved or closed. The instance's REST API and business rule are the customer's; Excubio documents a template of both.

The sm9 adapter rests on the sm9-tickets spike, which needs an SM9 instance and has not run (spikes).

6. Write-back​

ChannelWrite-back
obm-upstreamAnnotations and the ExcubioIncident attribute (§3).
icingaAcknowledge the problem through the Icinga 2 API with the acknowledging person as author; remove the ack on an un-ack, or when the alert closes other than by a clear of its Source.
alertmanagerNone.
opcmsg, obm-rest, obm-listener, snmp, grafana, webhookNone; use a Webhook.

A Source writes back with apiUrl and credentials (a basic-auth Secret of an Icinga API user, spec-format.md §3.1). The Icinga object is the alert's node (the host) and check (the service; without one, the host), named through filter_vars of POST <apiUrl>/v1/actions/acknowledge-problem and /v1/actions/remove-acknowledgement; a 404 (nothing to acknowledge) is no error, nor is a per-object 409 saying the object is acknowledged already or in an OK (UP) state: an earlier attempt whose answer was lost, or a recovery meanwhile. Icinga answers the per-object code as the request's status when all objects share it, else 500; the run reads the results, and another 409 or error retries. A writeback action of an alert whose Source doesn't write back starts no run; its decision's trace says so, and L1 warns about a writeback action in a spec without such a Source.

The icinga write-back rests on the icinga-ack spike, which needs an Icinga 2 instance and has not run (spikes).

7. E-mail​

  • SMTP to the customer's relay (Settings notify), STARTTLS by default, AUTH PLAIN with a basic-auth Secret; one message per connection, delivered within 20 s and within its task's deadline (four fifths of the task's 30 s lease, architecture.md §4). A task starts a further message only while that leaves the message its full 20 s, else the next claim sends it, so the deadline doesn't cut a message off while the relay accepts it.
  • Built-in templates in German and English; one e-mail per alert change for immediate, one per recipient and interval for digest, grouped by team, service and severity, with links to the hub UI. Times are shown in Settings routing.timezone. A subject begins with [Excubio], an e-mail to the shadow mailbox's with [Excubio shadow] (migration.md §2).
  • A team recipient resolves to the team's mail address from the cloud replica (team updates of the link and the replica load) at send time; a team without one gets nothing, and the run records why.
  • A digest's interval starts with the recipient's first e-mail since its last digest (schema/hub.sql notify_mail, timer kind digest).

8. Webhooks​

Signed POSTs for the event types a Webhook subscribes to: alert.opened, alert.changed, alert.closed, incident.triggered, incident.acknowledged, incident.unacknowledged, incident.escalated, incident.reassigned, incident.invited, incident.unanswered, incident.merged, incident.resolved, group.opened, group.changed (members or cause), group.closed, ticket.created, and the on-call events shift.started, shift.ended and oncall.changed (the person on call of a rotation changed), which the hub raises from its shift replica at their times.

  • Which alerts and incidents. alert.*, group.* and ticket.created are sent only for alerts whose decision has a webhook action naming the Webhook (pipeline.md §10); the action decides which alerts, events which of their events. incident.*, shift.* and oncall.changed need no action: they are sent for the rotations of the Webhook's owner team, except for test incidents (on-call.md §8).
  • The body is {"id", "type", "data"}: the event ID, its type, and the alert as in the hub API (Alert), the incident as the hub replicates it, or the shift with team, rotation, person name and times (oncall.changed: the new and the previous person's name), never contact data. A webhook run that starts at a later decision than the alert's open sends alert.changed (or alert.closed) first. ticket.created is sent when the alert gets its ticket, created or joined with groupBy. incident.* follow the incident's updates on the link (an update that changes nothing named raises none); shift.* and oncall.changed are raised at their times, and a node that was down longer than 10 min leaves out what it missed.
  • The header Excubio-Signature: t=<unix time>,v1=<hex HMAC-SHA256 of "<t>.<body>"> signs it with the Webhook's key.
  • With format = "teams" the body is an adaptive card for a Teams channel's workflow URL, so a team channel shows alerts and incidents; such a Webhook is not signed (spec-format.md §3.13).
  • With format = "slack" the body is a message for an incoming webhook of Slack or of a chat that takes the same body, such as Mattermost, and is not signed either: text, the event in one line (`Alert opened:
  • With format = "pushover" the body is a message for Pushover's API (https://api.pushover.net/1/messages.json, JSON), unsigned: token and user from the Webhook's Secret, title (the event in one line as for slack, at most 250 characters), message (the description, then one line each of Severity, State, Team, Service, CI, Node, Rotation and Ticket where set, plain text, at most 1024 characters; the title line when all are empty), url and url_title (Alert in Excubio: the alert in the hub UI, for alert, group and ticket events when the node knows [server] public_url), priority, with retry and expire at 2, and sound when set (spec-format.md §3.13). The default priority is 1 for critical, 0 for other severities and events without one, -1 for events of closed, resolved or acknowledged alerts, groups and incidents; 2 only as the Webhook sets it. A failed request is tried again no sooner than 5 s later, as Pushover asks.
  • A digest of a slack Webhook with mode digest (pipeline.md §10) is one message: text Excubio digest: <n> open, and one attachment per team, service and severity (Team ops · Service billing · critical (2) as title and fallback, color by severity), the most severe first, whose text lists its alerts oldest first, one line each: the title linked to the alert in the hub UI when the node knows [server] public_url, how long it has been open (45m, 3h 5m, 2d 4h) and acknowledged for an acknowledged one. It lists at most 50 alerts, the most severe and oldest; a last attachment says and <n> more. Text is escaped as for single messages. A teams digest is an adaptive card with the same heading, groups and lines, the links in Markdown.
  • A teams, slack or pushover Webhook informs a chat or a phone; it is not a page: nothing comes back from it, and an emergency acknowledged in Pushover acknowledges nothing in Excubio.
  • Delivery is at least once, with the event ID for deduplication.

9. Carriers​

The cloud uses CPaaS carriers with EU data processing for:

NeedCapability
Outbound SMSA2P SMS, delivery receipts, numeric senders in the recipients' countries (which number is used: on-call.md §4)
Inbound SMSReplies to the sender number, with the carrier's message ID
Outbound voiceProgrammable calls, text to speech (German, English), DTMF
PushAPNs (HTTP/2, token authentication, apns-priority: 10; critical alerts or time-sensitive interruption level) and FCM HTTP v1 (high-priority data messages); the vendor's app identity
E-mailSMTP submission at a mail provider in the EU, for the cloud's e-mail notices (on-call.md §4, operations.md §3)

At least two carriers per medium are active for SMS and voice; push has one service per platform, and SMS or voice follows it in every chain (on-call.md §4). Watch has its own account at a third carrier. Which carriers the cloud uses is part of its configuration; which numbers a tenant has at them, vendor operators set with the tenant (on-call.md §4). The carriers, the mail provider and their locations are listed in the subcontractor list (compliance.md §4). Carrier selection rests on the carriers spike, which needs carrier accounts and has not run (spikes).

A carrier's callbacks (inbound SMS, delivery receipts, call events) reach its adapter whole: method, URL, headers and body. The adapter checks the carrier's signature over the parts the carrier signs, and, for a carrier that signs the time of a callback, gives that time: the cloud refuses (401 carrier.signature_invalid) a callback signed more than 5 minutes before or after the database's clock, so a captured callback can't be replayed later. Within those minutes a repeat is recognised by the carrier's event ID, which the cloud keeps for 7 days (on-call.md §4). For a carrier that signs no time the event ID alone recognises a repeat, for those 7 days.

10. Identity​

  • Cloud and Watch: one Zitadel organization per tenant; the customer's IdP federates in Zitadel. Teams from the groups claim.
  • Hub: any OIDC issuer (usually the customer's Entra ID directly), with roles bound to groups from the configured group claim ([auth] groups_claim, operations.md §2). A local break-glass admin exists for setup and recovery (architecture.md §11).
  • Entra ID. Two setups are supported: the groups claim limited to the groups assigned to the application (group membership claims "Groups assigned to the application"), or app roles assigned to groups with groups_claim = "roles". A token that signals group overage (the groups claim replaced by _claim_names or hasgroups) is refused: the login fails with auth.groups_overage and a message that names the supported setups. The hub never queries Microsoft Graph for groups.
  • Service accounts use API tokens (exk_…). In the cloud a service-account token has no roles of its own and acts only through its scopes; with incidents it reads and responds to the incidents of its teams (api/cloud.yaml conventions). On the hub a service account holds roles through bindings, and its tokens act with a subset of them (api/hub.yaml). Prometheus scrapes the hub's /metrics with a service account's token of scope metrics, which can call nothing else (architecture.md §10).

11. Metrics​

Prometheus /metrics on every part, with alerting rule templates over the series below in packaging/prometheus. The cloud and Watch serve theirs on a listener of its own (EXCUBIO_METRICS_LISTEN, by default on loopback), which only the installation's monitoring reaches and which serves nothing else. The hub's is on the management listener, for a token of scope metrics or a viewer (§10); with [server] metrics_listen (operations.md §2) it is on a listener of that kind instead, in plain HTTP without credentials, and the management listener serves none. A managed installation sets it, as its management listener is on the internet; an installer sets it where the management listener is reachable by more than the hub's users, and admits only the monitoring to the metrics listener.

On a managed installation, a series of one hub's work (its intake, Sources, its slices of the steps and of its correlator, alerts, action tasks, relays, inventory, link) is that hub's: its /metrics on its own host, for its viewer or a token of scope metrics of that hub, serves its series and no other hub's, and the installation's /metrics (metrics_listen, the vendor's monitoring) leaves them out. The installation's carries its own series (the partitions' lag, the nodes, relay connections, refusals before a hub is known) and, per hub not being deleted, only the bounded set below with the label hub (the hub's id): 8 series a hub, so 8,000 for an installation of 1,000 hubs, each computed for all hubs at once. A hub's link counts as up (excubio_cloud_link_up, excubio_hub_cloud_link_up) while its stream is recorded open and a node holds the lock of its link shard. A standalone installation serves its hub's series with the installation's, without the label, as above. The main series:

SeriesPart
excubio_events_received_total{source,channel,result}: result is accepted, refused (unknown Source or credential, or a sender outside allowFrom; source empty where no Source was found), invalid, limited (over pipeline.sourceRate, or datagrams over the hub's limits) or unavailablehub
excubio_events_refused_total{reason}: events refused for a limit, reason hub_rate, daily_quota or source_rate (pipeline.md §2)hub
excubio_egress_waits_total: connections that found no place within a hub's connection caps (architecture.md §11 Egress)hub
excubio_connections_refused_total{channel}: connections over pipeline.maxConnectionshub
excubio_event_outcomes_total{source,outcome}hub
excubio_rule_matches_total{kind,rule}hub
excubio_snmp_spool_bytes, excubio_snmp_spool_dropped_totalhub
excubio_syslog_unmatched_total{source}, excubio_snmp_unmatched_total{source}hub
excubio_mailbox_messages_total{source,folder} (folder is processed or failed), excubio_mailbox_reading{source} (1 on the node that reads the Source's mailbox while it has a session, §13)hub
excubio_alerts_opened_total{kind,team}, excubio_alerts_open{team,severity}hub
excubio_alerts_suppressed_total{reason}hub
excubio_decisions_total{team,outcome}: outcome is page, ticket, notify, drop, none, suppressed, shadow or unroutedhub
excubio_downtimes_active{origin} (person, automation, schedule, source, inventory)hub
excubio_pipeline_lag_seconds{partition}hub
excubio_tasks_pending{type}, excubio_task_failures_total{type}hub
excubio_routing_unrouted_total, excubio_mapping_errors_total{source}hub
excubio_close_key_errors_total{source}: close key patterns that don't compile or exceed the limit and close nothing (§2)hub
excubio_heartbeat_up{name}, excubio_heartbeat_beats_without_instance_total{heartbeat} (beats without every groupBy attribute, pipeline.md §5)hub
excubio_inventory_snapshot_age_seconds, excubio_inventory_import_age_seconds{source}, excubio_inventory_records{source,kind}, excubio_inventory_ambiguous{source}, excubio_inventory_import_failures_total{source}hub
excubio_groups_opened_total{pattern}, excubio_groups_open{pattern}, excubio_group_members_total{pattern,role,members}hub
excubio_correlator_lag_seconds, excubio_correlator_inboxhub
excubio_expectations_missed_total{rule}hub
excubio_cloud_link_up, excubio_fallback_pages_total, excubio_link_unknown_updates_total{type}, excubio_link_ignored_updates_total{type} (a type the hub doesn't replicate, or the deletion of an incident, delivery, response or person), excubio_link_skipped_updates_total{type} (an update the hub can't apply)hub
excubio_self_alerts_total{kind}: the installation's for the kinds of its conditions (pipeline.md §19: unowned locks, failing slices, its channel and provisioning, the OIDC issuer, a node's), whichever hub's work raises them, else the hub'shub
excubio_snapshot_cache_bytes (the inventory snapshots the node holds for its steps, architecture.md §4 Activation), excubio_snapshot_cache_budget_bytes (its [server] snapshot_cache, which the first stays within): the installation'shub
excubio_relays_connected (relays with a control connection to the node), excubio_relay_spool_bytes{relay}, excubio_relay_spool_dropped_total{relay} (as the relay last reported them, from its first heartbeat), excubio_relay_datagrams_total{result} (stored or duplicate), excubio_relay_streams_total{kind,result} (kind is target or tcp; result accepted, refused by the relay, timeout or none: no relay admitted the target); those without relay at 0 from the relay listener's starthub
excubio_relay_connected{node} (1 while the control connection to the node is up), excubio_relay_spool_bytes, excubio_relay_spool_datagrams, excubio_relay_spool_dropped_total, excubio_relay_received_total{listener}, excubio_relay_streams_total{kind,result} (target: accepted or the reason of a refusal; tcp: accepted or no-hub) ; each at 0 from the start, received_total for each configured listenerrelay
excubio_hub_events_received_total{hub,result} (excubio_events_received_total of the hub summed over Sources and channels), excubio_hub_pipeline_lag_seconds{hub} (the highest lag of the hub's partitions), excubio_hub_tasks_pending{hub} (its action tasks not finished), excubio_hub_cloud_link_up{hub}: the installation's per hubhub
excubio_hub_update_required_totalcloud
excubio_incidents_total{tenant,team} (not synthetic incidents), excubio_incident_ack_seconds (histogram, from trigger to the first ack; an incident resolved without an ack has none), excubio_incidents_unanswered_total{tenant,team}, excubio_levels_skipped_total (escalation levels that reached nobody, on-call.md §7)cloud
excubio_deliveries_total{kind,medium,carrier,status}: kind is page (an attempt of a chain step), notice (verification codes, tests, replies and the other notices of on-call.md §4) or synthetic (a synthetic incident's SMS, on-call.md §6); medium is push, sms, voice or, for a notice, email; carrier is empty until a carrier has the messagecloud
excubio_outbox_queued (queued messages no sender holds, as far as one sender's batch reaches), excubio_send_errors_total, excubio_chain_step_failures_totalcloud
excubio_http_requests_total{route,status}, excubio_internal_errors_total (answers 500 service.error), excubio_link_connections_refused_total{reason}, excubio_carrier_callbacks_refused_total{carrier}cloud
excubio_link_connections (the replica's open link connections with a client certificate), excubio_link_connections_max (its link.max_connections, operations.md §3); replica loads refused for link.replica_loads are excubio_http_requests_total{route="/link/v1/replica",status="503"}cloud
excubio_installation_seen_age_seconds{installation} (seconds since an enrolled installation last called the installation channel, recorded at most every 30 s; 0 for one not enrolled or deleted), excubio_installation_hubs{installation,state} (the hubs placed on it: provisioning before its first report, provisioned, failed, deleting until it reports the deletion; operations.md §4), set with each readiness checkcloud
excubio_trial_refusals_total{reason}: messages of tenants in trial not sent through a carrier, reason trial.no_voice, trial.unverified, trial.country or trial.sms_cap (on-call.md §4)cloud
excubio_tenant_keys_failing (tenants whose data key the deployment key doesn't unwrap), excubio_tenant_budget_reached_total{tenant} (a tenant's people reached their daily budget of codes and test messages, on-call.md §1)cloud
excubio_controller_shards_held (the controller shards this replica holds, architecture.md §8)cloud
excubio_audit_sink_entries_total, excubio_audit_sink_failures_total (batches the tenants' audit sinks didn't take, compliance.md §3.1)cloud
excubio_carrier_healthy{medium,carrier,country} (push: apns, fcm, country *)cloud
excubio_push_receipt_seconds{carrier} (histogram, request sent to device receipt)cloud
excubio_watch_pushes_total{kind,outcome} (kind is tenant, hub or rotations; outcome sent or failed), excubio_watch_pushes_queued (pushes due, as far as one batch reaches)cloud
excubio_watch_evaluator (1 on the node that holds the evaluation lock), excubio_watch_passes_total, excubio_watch_pass_seconds (histogram), excubio_watch_gaps_total, excubio_watch_checks_failed (failed or held at the newest pass)watch
excubio_watch_beats_total{type} (push, fail, reverse, hub), excubio_watch_check_events_total{type}, excubio_watch_synthetic_receipts_totalwatch
excubio_watch_notifications_total{medium,outcome}, excubio_watch_vendor_pages_total{cause}, excubio_watch_cloud_removals_refused_total; excubio_http_requests_total{route,status}, excubio_internal_errors_total and excubio_tenant_keys_failing as the cloud'swatch

12. Reporting views​

The hub exposes versioned SQL views in the schema reporting_v1 (schema/hub.sql §9). Grafana and BI tools read these views with logins of the read-only role excubio_reporting over TLS, never the internal tables (operations.md §1); a login sees the rows of the hub its reporting_login row names, and nothing without one (architecture.md §12). Incidents, deliveries, responses and shifts are synced from the cloud over the link, so the views join alerts with their paging: for the rotations on the hub's allowlist, from 30 days before the hub last loaded the replica (architecture.md §5), for as long as the hub keeps them (compliance.md §2). The full record of incidents and shifts is the cloud's, with its own export (api/cloud.yaml exportData).

A new major version of the views gets a new schema (reporting_v2); the old one is kept for 12 months.

13. E-mail and syslog intake​

The behaviour towards real relays, mailboxes and devices rests on the email-syslog-intake spike, which has not run (spikes).

E-mail. Senders that can only send mail (backup software, appliances, scripts, other paging tools' mail integrations) send to a Source's address.

  • SMTP: the SMTP listener (smtp_listen, port 25 or 587, operations.md §2) accepts mail with STARTTLS for the addresses of the email Sources (recipients = ["backup-alerts@excubio.example.invalid"], compared without case), only from the Source's allowFrom addresses, which are required: usually the customer's mail relay, which routes the domain to the hub. It neither authenticates nor relays: RCPT TO an address of no Source gets 550 5.1.1, from a sender outside the Source's allowFrom 550 5.7.1. A message is accepted with 250 after it is stored, refused with 452 while the hub can't store or the Source is over pipeline.sourceRate, so the relay retries, and with 552 above pipeline.maxEventBytes (announced as SIZE). A message to the addresses of several Sources is one event of each. On a managed installation, a recipient's domain chooses its hub (its mail domain, operations.md §2); a domain of no hub gets 550 5.1.1, as does a sender outside a Source's allowFrom, so a hub's addresses can't be found by trying them; a transaction delivers to one hub: a recipient of another hub than the transaction's first gets 452 4.5.3, and the relay sends to it in a transaction of its own (architecture.md §11 Front door).
  • IMAP: a Source with imap reads a mailbox, for mail that can't be routed to the hub (fields: spec-format.md §3.1). The hub connects to host with implicit TLS (port 993) or with STARTTLS (port 143), never in the clear, through the egress rules and with TLS verified like every outbound connection (architecture.md §11), logs in with the basic-auth Secret (LOGIN), creates the folders processed and failed when they are missing and selects mailbox.
    • One reader. A node reads a mailbox while it holds the Source's reader lock (class 11, architecture.md §4) on its lock connection, so one node of the hub reads it; a node without a deployment key reads none. A changed imap table, or the Source leaving the spec, ends the reader; the next one starts with the revision active then.
    • A round takes the oldest of the messages not flagged \Deleted (UID SEARCH UNDELETED), at most 20 and, after the first, at most 8 MiB together by their RFC822.SIZE. A message above pipeline.maxEventBytes goes to failed without being fetched; the others are fetched (BODY.PEEK[], so \Seen stays as it was), parsed and stored as events of the Source in one transaction, mapped by the revision active then. After the commit a message moves to processed, or to failed when it isn't an RFC 5322 message or its event has outcome mapping-error. With MOVE (RFC 6851) the hub moves, else it copies, flags \Deleted and expunges (UID EXPUNGE with UIDPLUS, else EXPUNGE). Unparsable and oversized messages are counted as invalid and stored as no event.
    • Taken means stored: a message stays in mailbox until its event has committed, so a reader that stops or loses its connection between the commit and the move reads it again, and it is a copy by its Message-ID (below). A Source over pipeline.sourceRate, or a database that can't store, leaves the round's messages where they are; the reader tries again after 1 s, then after twice as long up to 1 min.
    • Waiting. After a round that left no message, and during which the server announced none (EXISTS), the reader waits with IDLE (RFC 2177), sent again every 5 min so that a connection that died silently is noticed; any untagged response ends it early. A server without IDLE is searched every pollInterval.
    • Failures. Every command has a bound of 30 s, a fetch 2 min. A connection, login or selection that fails, or a command the server refuses, ends the session; the reader connects again after 1 s, then after twice as long up to 1 min. A mailbox that can't be read for 2 min is a condition of the Source, self/mailbox-unreadable/<source>, with the error, which the reading node stores like a condition of a node (pipeline.md §19).
  • The copy hash is the Message-ID, so a message read twice is a copy (without one, the variables' hash). HTML bodies are converted to text; the raw payload is the message as received (message/rfc822), so attachments are kept there only. Mail bodies stay in the hub like every payload.
  • Variables. from is the From address, to the To addresses; without those headers, the envelope's sender and recipients over SMTP, empty over IMAP. headers holds the first header of each name, the name lower-case and the value on one line; the Date header is the event's occurred_at.
  • The mapping usually derives the key and role from the subject (subject.startsWith("RECOVERY")); the default takes the whole subject as the key, so each distinct subject opens its own alert.

Syslog. Network devices and hosts send RFC 5424 or RFC 3164 messages over UDP, TCP (octet counting or newline framing, per frame) or TLS (RFC 5425). With [server] syslog_client_ca (operations.md §2) the TLS listeners require a client certificate that chains to it. On a managed installation, syslog, like SNMP (§4), arrives only through the hub's relays (§15): the installation opens no syslog or SNMP listener of its own, as a sender's address names no hub (architecture.md §11 Front door).

  • A syslog Source needs a match (a CEL condition over the variables): only matching messages are stored as events; the others are counted per Source (excubio_syslog_unmatched_total) and not stored, because syslog carries logs, not only events. A match that fails to evaluate doesn't match. A message goes to the first Source in name order whose allowFrom contains the sender, and only to it; a sender outside every Source's allowFrom is rejected and counted.
  • Parsing. RFC 5424 gives every variable, - an empty string, and its time stamp the event's occurred_at. RFC 3164 gives host after an optional Mmm dd hh:mm:ss or RFC 3339 time stamp, app and procid from a TAG[PID]: or TAG: prefix, and the rest as message; its Mmm dd time stamp has no year or zone and sets no occurred_at. A message without a host name (no time stamp in RFC 3164, - in RFC 5424) has the sender's address as host; one without a valid priority is user.notice (facility 1, level 5) and its whole text the message. A message cut at pipeline.maxSyslogBytes has truncated set. A field's cost grows with the strings its string functions read (spec-format.md §3.1), so a long message bounds how many string operations on message a field may use.
  • TCP and TLS messages are stored before the next one is read; UDP messages, which are never retried, go to the same bounded spool as SNMP traps when the database can't take writes (architecture.md §4).

14. Inventory sources​

The types of InventorySource (spec-format.md §3.10) and what each reads. Every type maps its classes to Excubio's (pipeline.md §15) with built-in mappings that the InventoryModel can override. All types read only; their accounts need no write rights.

TypeReadsAccess
sqlThe queries of spec-format.md §3.10 against Microsoft SQL Server or PostgreSQLA read-only database user
csvUploaded files with the columns of the sql queriesUpload through the API
servicenowTable API: cmdb_ci and the classes listed in classes, cmdb_ci_service and its subclasses, svc_ci_assoc (service maps), sys_user_group (assignment groups as grp)A user with read access to those tables (OAuth client credentials or basic)
ucmdbUCMDB or OBM's RTSM: the CIs, services and service memberships in the results of named TQL queriesAn integration user
  • Each type sets the identity kinds it knows: FQDNs, host names and IPs from every type; serials and VM UUIDs from the CMDBs that hold them; and ref for a CMDB's reference to another system's ID (a ServiceNow CI's correlation_id). sql and csv sources name the kind of each alias.
  • Every FQDN alias also gives the host alias of its first label.
  • servicenow reads, in pages of 1,000 records, cmdb_ci records whose sys_class_name is one of classes: sys_id (the ID), name, sys_class_name (the class), fqdn, host_name, ip_address, serial_number, correlation_id (ref) and support_group (its group's name from sys_user_group); cmdb_ci_service records with busines_criticality (1 - most critical is criticality 4, 4 - not critical 1), support_group, parent and their sys_id as itsm_ref; and the links of svc_ci_assoc. It authenticates with Basic or with OAuth client credentials at the Secret's token_url. Through a relay (§15) the token_url must be on the host and port of baseUrl: the hub's connections to the source go to that target only.
  • ucmdb signs in at /rest-api/authenticate and runs each query of queries at /rest-api/topology. CIs of the serviceTypes are services, the others CIs of their type as class, with display_label (else name) as name and the aliases primary_dns_name (fqdn), name (host), ip_address, serial_number and bios_uuid (vm-uuid); support_group is the group, a service's business_criticality its criticality. A relation from a service to a CI links them, one from a service to another makes it the other's parent.
  • sql reads each query in a read-only transaction (on SQL Server one rolled back at the end); its columns are named as in spec-format.md §3.10, and values of other types are read as their text. The DSN's host must be one of its Secret's hosts.
  • Built-in class mappings, besides each of Excubio's classes mapping to itself:
TypeSource classes → Excubio class
servicenowcmdb_ci_server, cmdb_ci_linux_server, cmdb_ci_win_server, cmdb_ci_unix_server, cmdb_ci_aix_server, cmdb_ci_solaris_server, cmdb_ci_computer → host; cmdb_ci_vm_instance, cmdb_ci_vmware_instance → vm; cmdb_ci_esx_server, cmdb_ci_hyper_v_server → hypervisor; cmdb_ci_cluster, cmdb_ci_vcenter_cluster → compute-cluster; cmdb_ci_kubernetes_cluster → k8s-cluster; cmdb_ci_kubernetes_node → k8s-node; cmdb_ci_kubernetes_namespace → namespace; cmdb_ci_kubernetes_workload → workload; cmdb_ci_docker_container → container; cmdb_ci_appl → application; cmdb_ci_app_server, cmdb_ci_web_server → middleware; cmdb_ci_db_instance, cmdb_ci_db_mssql_instance, cmdb_ci_db_ora_instance, cmdb_ci_db_postgresql_instance, cmdb_ci_db_mysql_instance → database; cmdb_ci_netgear, cmdb_ci_ip_switch, cmdb_ci_ip_router → network-device; cmdb_ci_lb, cmdb_ci_lb_bigip → load-balancer; cmdb_ci_ip_firewall → firewall; cmdb_ci_storage_device, cmdb_ci_san → storage; cmdb_ci_storage_pool, cmdb_ci_vcenter_datastore → datastore; cmdb_ci_cloud_service_account, cmdb_ci_vm_object → cloud-resource; cmn_location → site
ucmdbnode, host_node, unix, nt → host; vmware_esx_server, hypervisor → hypervisor; cluster, vmware_cluster → compute-cluster; k8s_cluster → k8s-cluster; k8s_node → k8s-node; k8s_namespace → namespace; k8s_workload → workload; docker_container → container; business_application, running_software → application; application_server, j2eeserver, webserver → middleware; database, oracle, sqlserver, postgresql, mysql → database; net_device, switch, router → network-device; lb, load_balancer → load-balancer; firewall → firewall; storagearray → storage; datastore → datastore; location → site
  • Imports page through the source and stop at inventory.maxCis; a truncated import is rejected.
  • A SaaS source (a ServiceNow instance) is read from the hub through the forward proxy; nothing is sent to it but the queries.

15. Through a relay​

A relay (architecture.md §13) carries intake from its network to the hub and the hub's connections to targets in it.

  • Channels. Senders address a relay's listeners (operations.md §12) as they would the hub's, and every channel works as at the hub: Sources, intake tokens, allowFrom (the sender's address as the relay forwards it), SNMP communities and USM users, syslog TLS client certificates, SMTP recipients and sizes. HTTPS intake (https, or plain HTTP to the relay, http), syslog over TCP and TLS and SMTP are connections that the relay copies to the hub, so the sender gets the hub's answer and retries as at the hub; SNMP traps and syslog over UDP go through the relay's spool and are stored once, with the relay's receive time as spooled_at. The OBM REST and opcmsg paths are HTTPS intake and work the same. An email Source's IMAP mailbox in the relay's network is a target (below), not intake.
  • Targets. The hosts that Settings relay.networks names are reached through a relay, whatever the protocol: sql inventory sources (PostgreSQL and SQL Server), servicenow instances and ucmdb, TicketProfiles (sm9 and webhook), write-back (OBM, the Icinga API), Webhooks, the SMTP relay of notify, IMAP mailboxes of email Sources, OBM upstream, the fallback channel's SMPP account and audit sinks. TLS to them is the hub's, verified as for any target (architecture.md §11), and their Secrets are sent only to the hosts they declare, as named in the spec, not as the relay resolves them. A target that the relays can't reach fails like an unreachable one, with the reason (architecture.md §11 Egress): an action retries (pipeline.md §10), an import is rejected and the merge keeps the source's last good import, a mailbox reader tries again, the fallback channel retries its send.