Skip to content

Alerting

Alert quality is a first-class concern in Yagra. The goal is not to send alerts. It is to send the right alerts: one page per real incident, no flood when a site drops, no 3 a.m. noise from a metric grazing its threshold for a single sample.

Hysteresis, flapping detection, and deduplication are always in the delivery path. They are not optional extras you switch on later, and there is no way to bypass them to “just send the alert”.

Outage grouping is in the same path, at a strength you choose. It starts off (see Dependency suppression).

Escalation and on-call scheduling are deliberately delegated to external tools (PagerDuty, Jira Service Management). Yagra emits a clean fire/resolve lifecycle signal and holds no escalation scheduler of its own.

Three things can raise an alert:

  • a liveness failure — a device stops answering its ICMP probe (or a URL/DNS monitor stops succeeding). This is a seeded alert rule, not built-in behavior: its breach count is editable, it can be overridden per profile, folder or node, and deleting it stops node-down paging (see Monitoring);
  • a threshold breach — a gauge metric crosses a rule’s warning or critical bound (see Monitoring for the threshold model);
  • a matching event rule — a passive event (syslog, trap, webhook) matches an operator-defined rule (see Event-raised alerts below).

Whatever the trigger, every check on every node carries a committed state:

State Meaning
ok The check is healthy
warning A threshold rule’s warning bound is breached
critical A threshold rule’s critical bound is breached
unreachable Liveness has failed — the node does not answer
unknown Yagra has no current opinion (no recent samples)
maintenance The node is inside a maintenance window

Only the problem states — warning, critical, unreachable — carry a severity and produce an alert. ok, unknown, and maintenance never do. A node Yagra can’t see yet, or one under planned work, is not an incident.

An alert’s severity is one of four, from low to high: info, warning, critical and unreachable. Since v0.3.94, unreachable has a severity of its own: only a node that does not answer at all raises it. critical is everything else that is serious — a threshold’s critical bound, SNMP not responding, a poller pool with no poller. An event rule can use info, warning or critical, because a log line or a trap means the node is answering. Alerts recorded before v0.3.94 keep the severity they had, so an older node-down alert in History reads critical.

You will see unknown briefly on newly added nodes and right after a core restart, before the alert engine has formed an opinion on every node. It resolves itself as samples arrive.

An alert is raised when a check commits a problem state, after the hysteresis below, and clears when the check recovers through the same path.

Three other things clear an alert, and none of them means the fault is fixed. A node entering a maintenance window clears the alerts already open on it. Deleting a threshold rule clears the alert that rule had raised. And an alert clears when the series behind it has gone six hours with no sample while the node itself is demonstrably still reporting — read that one as Yagra can no longer measure this, not as a recovery. The last two are swept once every five minutes. Each is written to alert history as an ordinary resolve, so the incident in PagerDuty or Jira Service Management closes with it.

An interface utilization or traffic alert is not closed by its readings stopping. A port whose values stop arriving keeps its alert open: an SNMP agent that died while the device still answers ping, a walk cut short, or a Meraki window the Dashboard never filled all look like that, and the open alert is what tells you. The alert clears when a reading shows the port back under its bound, through the rule’s dwell. An alert on an interface that was removed stays open until you delete its rule or its node.

Repeated fires of the same problem are deduplicated and grouped into one incident rather than delivered as a stream of duplicates. Every fire and clear is recorded in an append-only alert history, with the measurement that caused it captured at fire time.

A raw sample crossing a threshold does not flip the committed state. The breach must persist for a configured number of consecutive samples — the dwell — before the state commits and an alert fires.

Any sample that returns to the committed state resets the candidate, so an interrupted streak starts the count over.

This is what keeps a metric that grazes its bound once, or a single dropped ping, from paging anyone. A dwell of three, for instance, means three breaching samples in a row at the node’s poll interval. One recovery sample in between and the count starts again.

Interface utilization alerts and alerts on computed metrics (memory and disk used %) are evaluated once a minute. On a node polled less often than that, their count covers that many polls, not that many minutes. Nodes polled faster keep counting minutes.

Counting in samples rather than wall-clock time also has an architectural consequence. Alert evaluation always runs against the live sample stream. History backfilled later — for example after a remote poller reconnects and replays its buffer — is never re-evaluated into alerts.

Replaying a backlog would fabricate transitions for incidents that already resolved. So metrics fill in, and alerts resume from now.

A link that goes up and down every few minutes generates a technically-correct alert each time, and each one is noise.

Yagra counts committed state transitions per check inside a sliding time window. A check reaching the transition threshold within the window is flagged as flapping on its transitions.

The window follows the node’s poll interval. It is 20 polls long, and never shorter than 10 minutes. Five state changes inside it mark the check as flapping. A fixed ten-minute window could never hold five changes on a node polled every five minutes.

Flapping checks surface on the Flapping watchlist dashboard widget, which names the node (the id is on hover) and shows what the flapping check measures. The unstable link then gets fixed as one problem, instead of being re-triaged on every bounce.

For deeper digging, the Troubleshoot catalog includes a flap analysis that scans a node, a group, or the whole fleet for reachability and link-state churn. A companion analysis finds event rules repeatedly firing and clearing on the same node.

When a site router dies, everything behind it goes dark. Without grouping, every one of those nodes pages you.

Yagra keeps no dependency graph. A node has no parent or upstream to set, and nothing has to be drawn in advance. Since v0.3.67, Yagra groups an outage at the moment it happens, from the links it already knows (see the network map).

When nodes go down together, the down nodes that are linked to one another form one outage:

  • A down node with a live neighbour is on the outage’s border. That is where reachability actually stopped, so it is a cause, and its alert pages on its own.
  • A down node none of whose linked neighbours is alive is inside the outage. Its notification is rolled up into a border node’s, and only the border pages.

A live node is the evidence. The poller polled it and it answered, so the poller reaches it. That is why no poller placement has to be configured.

The same rule covers a single-exit branch, a dual-exit branch and a data centre. A site with two ways out that loses one keeps answering through the other, so nothing is grouped. A site that loses both goes dark as one outage.

When an outage has more than one border node, the alerts inside it are rolled up into one of them. A router or firewall is chosen first, then a switch that routes, a switch that does not, an access point, and anything else.

Grouping only ever withholds a notification:

  • The rolled-up alert still fires. It stays open, on Active alerts and in the history. The roll-up is shown on its row, so one incident reads as one incident with its blast radius attached.
  • It pages on its own if the border recovers first. When the border comes back, every node still down is judged again.
  • An outage that grows regroups the alerts already open. A node that paged on its own and is now inside the outage has its standalone page closed under the border’s incident.

The worst a wrong judgement can do is delay a page, not lose it.

The border’s notification says what the outage holds:

  • It names every node grouped into it. Its title ends (+2 nodes grouped). A text body (email, Jira Service Management) lists the nodes under “Grouped:”. A JSON body (webhook, PagerDuty custom_details) carries grouped, grouped_count and grouped_nodes. At most 200 are named.
  • Nodes that join later reach the same incident. Yagra waits a minute after the first new node, then sends one update to each channel that received the outage’s fire. Jira Service Management gets a note on the open alert, and a webhook a POST whose event is update. Email and PagerDuty send nothing for it: PagerDuty can add to an alert only with another trigger, which would re-open an incident someone had resolved.
  • History keeps the trail. Open an outage’s row in Alerts ▸ History to list the nodes it held, and, for an Admin, what the row sent and whether it arrived. An alert that had paged on its own and was then grouped gets a row of its own, marked grouped, and so does a grouped node that moves into a wider outage. The Event filter offers grouped beside fired and cleared.

Two deliberate limits keep grouping honest:

  • Only liveness alerts are rolled up into a border. Threshold alerts are not, since a reachable node with a real threshold breach deserves its page.
  • Alerts raised by passive events are not rolled up into a border either, because a device that just emitted an event is evidently reachable.

A node’s own other alerts follow its outage. While it is down, its SNMP not responding and ping-loss alerts are part of that outage and page nobody. When it answers again they stay part of it, and close without a page once their check answers. One pages on its own only after its check has stayed bad for its rule’s dwell since the node came back, so an SNMP agent that stays dead on a device that pings still pages. An event alert that was open before the outage becomes its own alert again when the node is back, without a page.

How strongly to group is your choice. A stronger level sends fewer notifications. It also raises the risk that a missing link makes a real fault look like it sits behind another one.

Set it at Alerts ▸ Notification delivery ▸ Alert grouping. There are four levels:

Level What links count
Off None. Every node pages on its own. The default
Certain only CDP/LLDP links and pinned links. A node that reported a neighbour no node matched, or that hears several switches on one port through a hub, is never put inside an outage
From links CDP/LLDP links where a node has them, otherwise shared subnets and routing adjacencies
Whole site As From links, and every node down in the same Site folder joins the outage, whether or not a link connects them

Each level shows how many of the nodes down now would page at it. So the trade can be judged against the current outage, not in the abstract.

Exceptions set a different level for some nodes. An exception picks its nodes by folders and tags, the same way a routing rule does (see Notification delivery), so a level can be set for every device carrying no-lldp, wherever it is filed. When several exceptions reach a node, the weakest level wins. A change takes effect on the outage already open: its alerts are grouped again at once.

Waiting for a neighbour that is still failing

Section titled “Waiting for a neighbour that is still failing”

Devices do not commit as down in a fixed order. An access point behind a switch often commits first, and for that moment it looks like the border of the outage. Left alone, it pages, and the page closes when the switch commits.

Set When a neighbour is failing to Wait for the neighbour to hold that page. While a linked neighbour is failing but has not committed, the node’s alert is open and marked waiting for a neighbour. Nothing is sent or recorded yet. Then one of three things happens:

  1. The neighbour commits. The node is rolled up into the outage and pages nobody.
  2. The neighbour recovers. The node pages as usual.
  3. The wait runs out. It lasts the neighbour’s remaining samples times its poll interval, plus 30 seconds. The node pages as usual.

With the default dwell and a 5-minute interval, a page can arrive about 10½ minutes late. Switching the setting off sends whatever is held at once. A wait that runs out during an upgrade is held until the upgrade ends. It is one setting for the whole deployment, and it starts off.

The section also replays the last seven days of node-down alerts against today’s links. It shows how many would have paged at the chosen level, how many with waiting, and the longest wait. It is an estimate, because the links are today’s.

Changing the levels needs Manage the deployment, which only an Admin holds. The same settings are served at GET /api/v1/alert-grouping and by the MCP tool get_config(kind=alert_grouping).

Where the network map gets a link wrong, record the decision rather than working around it. A link can be pinned into existence or hidden, and both always beat what was derived on every recomputation.

A maintenance window is the one way to silence alerts. Mutes were removed in v0.3.67.

A node inside an open window observes the maintenance state. That state carries no severity, so nothing fires, and an alert that was already open resolves.

This is how you say this is not a fault: planned work, a scheduled reboot, a site being rewired. Opening and closing windows is an Operator-and-up action (the manage-maintenance permission).

Maintenance window
Alert is raised No
Node’s displayed state maintenance
Appears on Active alerts No
Written to alert history No
Notification delivered No
Scope A node, a device profile, or a folder group (recursively). A tag is never a scope
Timing Scheduled: named, with a start and an end, and can be created in advance

The choice matters most a month later. Availability figures and the alert history are built from what was recorded.

A maintenance window keeps planned work out of the incident record entirely.

A fault someone is already working on keeps paging through your incident tool. Acknowledge it there: Yagra keeps no acknowledgement of its own. To stop its pages altogether, open a window on the node. The time it spends in the window is then not recorded as an outage.

One detail worth knowing:

  • Maintenance silences event-raised alerts too. A syslog message or trap arriving from a node inside an open window raises nothing, exactly as a poll result would not.

Windows are first-class, audited objects with their own page — Alerts ▸ Maintenance windows — not a notification filter bolted on at the end.

A window can be changed after it is made. Edit in its row opens the add dialog filled in from the window, and Save replaces its target, work, start and end. The fleet-wide window an upgrade opens cannot be edited.

Setting and releasing suppression from the tree

Section titled “Setting and releasing suppression from the tree”

A window can be set straight from the inventory. Right-click a node or a folder group in Nodes ▸ All nodes and pick a duration, or Custom… for the full form.

A row under maintenance carries a 🔧 marker, and the marker is a button.

Clicking it opens a panel naming what is silencing that row: the window’s name, whether it comes from the row itself or from a folder group above it, and when it stops. A row can be covered by more than one window at once, and the panel lists each separately.

On a node, the panel offers one action: Take this node out of maintenance. It works the same whatever covers the node:

  • Every window that names the node is ended now rather than deleted. Its end time moves to the current moment, so it stays on the Maintenance windows page as a record of the work that actually happened, and is swept later by the “clear ended” button. A window due to begin within the minute is cancelled too; one planned for later is kept.

  • A window the node only inherits — from a folder, its profile, or the whole fleet — is not ended, because that would release every other node under it. The node is carved out of it instead. It returns to normal alerting while the rest stay covered.

    The release expires by itself when the window it was carved out of ends, including when that window stops earlier than planned. A release can therefore never outlive its reason and silently exclude the node from the next window.

Release maintenance in the right-click menu does the same at once, for the row or for every selected node.

  • A group covered by an ancestor shows the cause read-only and names the group to release it on. Ending an ancestor’s window from a child row would unsilence a set you cannot see from there.

The markers distinguish the two states. A window in force is a filled blue chip. A row released from one is drained of the colour and outlined in a dashed border instead.

So a released node is visibly not the same as an unsuppressed one. It is still inside a window’s reach, and one click puts it back.

Once an alert survives hysteresis, outage grouping, and maintenance checks, notification delivery decides where it goes. Yagra delivers to:

Channel Notes
Webhook Generic HTTP webhook, with retry
Email (SMTP) With retry; relay, sender, and credentials configurable
PagerDuty Events API v2
Jira Service Management Alerts API

Every channel receives the full lifecycle — fire and resolve both. The external tool’s incident therefore closes when Yagra’s alert clears, instead of leaving stale incidents to be tidied by hand.

PagerDuty and Jira Service Management have fewer levels than Yagra’s four severities, so Yagra maps them. Since v0.3.94, node-down (unreachable) is PagerDuty’s critical and JSM’s P1. A critical alert is PagerDuty’s error and JSM’s P2. warning is warning and P3, and info is info and P5. A webhook and a template see Yagra’s own word, unreachable.

Yagra keeps no acknowledgement. Acknowledge an incident in the tool that paged you. Routing rules choose which channels are notified, managed on the notification-routing settings page.

Delivery runs off the result-ingest path. A slow or unresponsive notification endpoint can delay its own notifications, which retry, but it can never stall metric ingestion or alert evaluation behind it.

Outbound webhooks are SSRF-guarded the same way monitoring probes are. Loopback, link-local, and cloud-metadata targets are refused.

A node’s tags ride out with the alert, into the field each vendor already provides for them: PagerDuty’s payload.custom_details.yagra_tags (a list) and Jira Service Management’s own tags. “Page the Japan rota for anything tagged JAPAN” is then written once, in those tools’ own routing rules, rather than duplicated in Yagra’s. The tags sent are the node’s effective ones — its own plus everything its inventory folder chain supplies. Webhook and email carry them only if a template asks; see below.

A tag decides no alert in Yagra. No threshold rule and no maintenance window is scoped by one. It is a description that rides on the notification, for the incident tool to route on.

The one exception is a routing rule. Its Applies to is All nodes or Only these. Under the second you pick folders (each brings every folder beneath it) and tags, from a list of the tags nodes carry with how many nodes carry each. When you pick both, a switch joins them: or reaches a node inside one of the folders or carrying one of the tags, and and reaches only a node that is both. Since v0.3.90, two or more tags show Has any or Has all under the tag list. Has any (the default) reaches a node carrying one of them. Has all reaches only a node carrying every one. Between two tags the line says “or” or “and”, and the tags are bracketed when folders stand beside them: “Tokyo or (core and 24x7)”. A tag that a rule or an exception needs all of cannot be deleted. A line under the lists says how many nodes the choice reaches. Tags are compared against a node’s effective tags, exactly, case included. A poller pool or Meraki organization alert never matches a rule that names folders or tags. Alert grouping’s exceptions pick their nodes the same way. A recovery still reaches every channel its alert was sent to, even after the node lost the tag. That holds until core restarts.

Jira Service Management accepts at most 20 tags per alert, each at most 50 characters. Yagra keeps within those limits. A longer tag is left out rather than shortened, because a shortened tag could match a different rule. Of the rest, the first 20 are sent, the node’s own tags before the ones its folders give it. Keep the tags your JSM rules route on short and few.

Set the address you open Yagra at in Settings ▸ Monitoring defaults ▸ Notification links. Every notification about a node then links to that node’s page:

  • Email and Jira Service Management text end with a Yagra: line.
  • Jira Service Management’s details carry a node_url entry.
  • PagerDuty shows a View in Yagra link (client_url).
  • The built-in alert JSON of a webhook or PagerDuty gains a node_url key at the top.

Alerts about a poller pool, a Meraki organization or the Git destination carry no node link. With no address set, the default, every notification is exactly what it was. A webhook receiver that rejects unknown keys sees node_url once an address is set.

Each channel can override the subject and body it sends, written as a Jinja2 template over a fixed set of alert variables — node name, address, group, profile, severity, metric, threshold, the observed value, the node’s effective tags, the name of the table row the alert is about (row_name, such as a memory pool), and which point of the alert’s life this is (event: fire, resolve, suppress for a roll-up, or update). Four more are written for people: title is the alert’s name (SNMP not responding rather than snmp_up), if_name is the name of the port a per-port alert is about, node_label is the node’s name with its address in brackets when the two differ, and alert_label is the alert’s name followed by the port or row. Two carry links once an address is set (above): node_url is the node’s page, and yagra_url is the address itself. Two describe an outage’s border: grouped_count is how many nodes are grouped into it, and grouped_nodes names them. Conditionals work, so wording can differ by severity, by lifecycle event, or by tag:

{% if event == 'resolve' %}Recovered{% else %}{{ severity | upper }}{% endif %}: {{ node_name }} ({{ group }})
{% if 'JAPAN' in tags %}[JP rota]{% endif %} tags: {{ tags | join(', ') }}

A channel with no template sends Yagra’s built-in wording, unchanged. Every kind of channel gets the same title. It names the device and the alert, such as core-sw-01 (192.0.2.11) is critical: SNMP not responding, and a per-port alert also names its port (… : Inbound utilization on GigabitEthernet0/7). The rest depends on who reads it:

  • Webhook and PagerDuty are read by a program, so the body is the alert as JSON. The title is PagerDuty’s summary.
  • Email and Jira Service Management are read by a person, so the body is text. The body repeats the title, then gives one fact per line: node, folder, profile, the alert’s name, metric with its value and threshold, port or row, severity, state, since when, tags, and the alert key.

Jira Service Management also receives those facts as extra properties (details), whether or not the channel has a template. JSM shows them as a table, and its rules can match on them.

Two properties are worth knowing before you write a template:

  • A broken template never costs you a notification. If it cannot be rendered when an alert fires, that field falls back to the built-in wording and the notification still goes out. Causes include a bad filter, an oversized output, or a body that stopped being valid JSON on a channel that sends JSON.

    The fallback is a plain string substitution, not a second trip through the engine that just failed.

    A field whose template renders to nothing, or only to spaces, also keeps the built-in wording. So a template can give the resolve its own text while the fire keeps Yagra’s.

  • Templates are sandboxed. A template can reach nothing but the variables it is handed: no files, no includes, no other templates. Execution is bounded, so a runaway loop cannot stall the notification worker.

The editor lives at Alerts ▸ Notification delivery ▸ a channel ▸ Edit notification template. Its fields follow what the channel sends. Jira Service Management has a title and a body, email a subject and a body, PagerDuty a summary and custom_details, and a webhook one JSON body and no subject.

A channel with no template opens on Yagra’s built-in text, read-only, so you see exactly what is sent today. From there, Edit a copy of this text starts from it and Start from empty fields starts from nothing. A channel with its own template says so at the top. Go back to built-in text… deletes the template after a confirmation.

For email and Jira Service Management, the editor is visual. Variables appear as tags in the text, with a name and an explanation in the operator’s language. The fire, the update when more nodes are grouped, the resolve and the roll-up into an outage each have a tab; a tab you leave alone sends the fire text. A channel that sends nothing at one of those points says so on its tab. A template the tags cannot show opens in the code editor, with the reason. Webhook and PagerDuty bodies must be JSON, so those channels always use the code editor. In the code editor, Free layout makes line breaks and indentation for reading only: they are not sent. Either way, a live preview renders against four sample alerts. The dialog can be resized from its edges.

To check a channel end to end, use its Send test notification action on the same page. Yagra sends one sample alert through that channel, with [TEST] at the start of the subject, and shows whether it was delivered. A PagerDuty or Jira Service Management test opens a real incident, so the on-call is notified once. Yagra closes that incident a few seconds later. The test does not retry, and it works on a disabled channel.

A routing rule can be edited after it is made: its Edit rule action changes the name, the severity, the tags and the channels, and leaves the rule enabled or disabled as it was.

The delivery log is the Notifications view of Alerts ▸ History, shown to Admins. It was a page of its own through v0.3.90, and /alerts/deliveries now redirects there. It holds one row per notification sent to a channel: fire, update, resolve, roll-up, and test sends. Each row says whether the notification arrived. When it did not, the row says where it failed:

Where it failed Meaning
Yagra Stopped before anything was sent. For example, the target address was refused.
Network Sent, but nothing answered: a timeout, a refused connection, DNS, or TLS.
Receiving service The service answered and refused.

A failed row carries the status the service answered with and the first 512 characters of its answer. The channel’s URL, host and key are replaced by <redacted>. Open a row to see every retry.

An opened row also says where the notification went and why:

  • Where: a webhook’s or vendor API’s host, or an email’s recipients. Never a key.
  • Why: the routing rule that decided, the catch-all, a hold that could not be stored, a close through the rules that match now or for the incident the channel still holds, the default route, or a test. The Rule column names the rules, and a deleted channel keeps the name it had.

Filter by channel, kind, result, where it failed, and time. The environment default route has a filter entry of its own. A channel’s row menu has Show delivery log, which opens the log filtered to that channel.

Reading the log needs Manage the deployment, which only an Admin holds. The same rows are served at GET /api/v1/notification-deliveries and by the MCP tool get_notification_deliveries. They are kept for the alert-history retention window: Settings ▸ Monitoring defaults ▸ Data retention, “Notification delivery log”.

Recording never makes a notification wait. If PostgreSQL falls behind, rows are dropped and counted in yagra_notification_delivery_log_dropped_total. A duplicate the dispatcher suppressed is not recorded, because nothing was sent.

For a fixed deployment-wide route without touching the UI, two environment-level channels exist. YAGRA_WEBHOOK_URL defines an always-on default webhook that fires for every alert alongside the configured channels. The YAGRA_SMTP_* variables define a default email route. See the configuration reference.

Alerts ▸ Notification delivery keeps pages inside the hours a site keeps. Since v0.3.84 the hours belong to each routing rule. Outside them, the alert opens, shows and is recorded as usual. Only the notification is decided by the hours.

A rule’s When is one of three:

  • Always — the rule is always open.
  • During a weekly window — the weekdays it opens on, and a From and Until such as 08:30–17:20. A start later than the end spans midnight.
  • Outside that window — the rule is open at every other time.

So “weekdays 08:30–17:20 to NOC mail, outside that to On-call” is two rules. Holidays are not taken into account.

Order. Since v0.3.85, rules are read top to bottom. Only the first open rule that matches an alert decides where it goes, and the rules below it do not hear that alert. A closed rule is passed over, unless its Other times is Hold (since v0.3.90). Then, while it is closed, the alert is held at that rule, and neither the rules below nor the catch-all hear it. It goes out when a rule that sends opens, if it is still open. The choice is offered for a rule with hours that sends. To change the order, drag a rule by the grip at the left of its row. The grip shows only while the table is neither filtered nor sorted. The catch-all stays the last row. After upgrading from an earlier version, check the order of rules that overlap: until then, every open rule sent.

Severity. Since v0.3.94, a rule’s severity is the lowest it takes: the rule takes that severity and every one above it. The choices are Unreachable, Critical or above, Warning or above and Any severity. An existing “critical to PagerDuty” rule therefore keeps paging for node-down. To send node-down somewhere else, put an Unreachable rule above it. Because the first matching rule decides, a lower rule placed above a higher one takes the higher one’s alerts first on the nodes both reach. The rule list marks the rule that loses them Taken first. Pressing the mark names the rule above and how many nodes it takes first. A rule saved with Info takes every alert, so it is stored and shown as Any severity.

Hold. In place of channels, a rule can Hold. While it is the first open rule that matches, the alert is kept back. It goes out when another rule takes over, if it is still open. To keep one site quiet at night, put a holding rule for that site’s nights above the rule for everything.

A rule’s hours are read in the local time of the node’s site. That is the time zone of the nearest folder above the node that names one, else the deployment’s default (set on the same page; UTC until set). Under a rule’s times, the dialog lists the zones its nodes keep time in and how many nodes each. A folder’s zone is set in its dialog. A NetBox Site’s own time zone is taken by the sync and shown read-only on its folder. Zone names are the ones NetBox offers, old aliases such as Japan included, and a name is kept in the spelling it was given.

The catch-all. The last row of the rule table sets the channels an alert goes to when no rule that matches it is open, or no rule matches it at all. A holding rule keeps an alert from the catch-all too. A rule or catch-all whose channels are all switched off counts as none, and such a rule is passed over.

Where an alert goes at a given moment:

  • The first open rule that matches it sends — to that rule’s channels.
  • No such rule is open, and a catch-all is set — to the catch-all.
  • The first open rule that matches it holds, the first matching rule is closed and holds while closed, or a rule matches but none is open and no catch-all is set — the fire is held. Its row on Active alerts reads held until …. When another rule takes over, a held alert that is still open goes out once, as it is then. An alert rolled up into an outage stays rolled up.
  • No rule matches and no catch-all is set — it reaches nobody.

A problem that starts and ends while it is held is not sent at all. An alert that reached somebody at night is not sent again in the morning.

The end of an incident goes out at once, at any hour. It goes to the channels of every rule that matches the alert, whatever their hours, and to any other channel its fire reached. A channel whose rule was closed when the fire came may therefore receive a close for an incident it never opened. That is the cheaper mistake: the other way round, an incident could stay open with nothing left to close it.

Coverage. Under the rule table, every node is grouped by the rules that reach it and the zone it keeps time in. Each group gets a week of seven day bars, painted by where a node-down (Unreachable) alert goes: a rule’s channels, the catch-all, held, or nobody. A switch redraws it for Critical, Warning or Info. It was drawn for Critical until v0.3.94. A line above the week counts the nodes that are held or reach nobody at some time. Since v0.3.90 each stretch names the rule that decides it.

The rule’s own week. The rule dialog draws the same week for the rule as it stands, before it is saved, for the nodes it reaches. Each stretch is painted by the rule that decides it, and a legend names each rule and its channels. A line says where an alert would go now.

Selecting a site folder, or a node in it, shows the site’s clock on the line under its name, such as Local time 14:32 Asia/Tokyo (UTC +0900). The same line says where an alert goes now — Goes to NOC mail until 17:20, Catch-all (Ops chat) or Held until Mon 08:30 — in the site’s local time. Channel names are shown only to a person who may read the routing rules. Core judges this with the same rule the notifier uses, so the screen and the notifier cannot disagree.

Held notifications are kept in PostgreSQL, so a restart does not lose them. The MCP tool list_suppressions lists them, each with when it is due to go out.

Editing the rules, the catch-all and the default zone needs Manage the deployment, which only an Admin holds. The rules, the catch-all and the coverage are served at GET /api/v1/routing-rules, GET /api/v1/routing-catch-all and GET /api/v1/routing-coverage, and by the MCP tool get_config (kind=routing_rules, routing_catch_all and routing_coverage).

Alerts don’t only come from polling. Passive events — syslog messages, SNMP traps, and inbound webhooks — are matched against operator-defined event rules (substring or regex), and a matching rule can raise an alert.

Incoming SNMP traps have their trap OID resolved to a human-readable name, and a set of built-in trap event rules ships out of the box, so common traps arrive as named, alertable events without configuration. See Passive events for the ingestion side.

Event-raised alerts differ from poll-driven ones in two ways:

  • They clear on a TTL. A one-shot event has no “recovery sample” to observe, so each rule carries an auto-clear TTL. The alert closes when it expires, and there is no manual close.
  • They are not rolled up into an outage’s border. A device that just emitted an event is reachable, so rolling its alert up behind another node would be wrong.

A rule scoped to a single event stream stays scoped to it. A rule whose source kind this core version does not recognise is left out of the matching engine and logged, rather than silently widening to every stream.

Every alert above depends on poll results arriving. That makes the loss of a poller the one failure the alert engine cannot reason about.

When a poller pool loses its last live poller, its jobs are published to a subject nothing is subscribed to and discarded. The nodes then drift to unknown rather than down. An entire site stops being monitored while every dashboard stays calm.

Yagra watches for this directly. A pool that still holds nodes but has no live poller raises a critical alert of its own, delivered over the same notification channels and routing rules as any other, and closed automatically when a poller returns.

  • It is a full alert, not just a notification. It appears on Active alerts and in alert history, streams live, and renders through your notification templates.

  • It waits five minutes by default. A poller announces its own departure, so an ordinary rolling restart raises the condition instantly. The debounce is what stops that paging anyone. Tune or disable it with YAGRA_POOL_COVERAGE_ALERT_AFTER_SECS (configuration).

  • Its subject is a pool, not a node. This is the one alert that belongs to no device, so it never rolls into a node’s displayed state.

    API clients should branch on subject_kind before reading an alert’s node field as a node id.

  • Meraki-managed nodes are excluded. They are collected per organization rather than assigned to a pool’s ring, so they do not depend on one. The alert below is what covers them.

Two gauges are exported whether or not the alert is enabled — yagra_pools_without_live_poller (unlabelled, the one to alert on or drive a scale-up from) and yagra_pool_nodes_without_live_poller{pool}, which reports 0 for a healthy pool rather than disappearing.

A Cisco Meraki organization has the same problem for a different reason. Its devices are never pinged: what the Dashboard API reports is everything Yagra knows about them. A collect that fails — a revoked key, a Dashboard outage, rate limiting, a poller with no way out — used to publish nothing at all, so every device of the organization kept its last state and nothing alerted.

Yagra watches that directly too. After three availability collects in a row go unanswered, one critical alert is raised about the organization.

  • One alert, not one per device. Its subject is the organization, so it belongs to no node either.
  • It closes on evidence, never on silence. An answered collect closes it; reports merely ceasing to arrive does not. After a restart Yagra knows nothing yet, and knowing nothing closes nothing.
  • The devices keep their last collected state, because they did not fail. Each affected node’s Overview says the Meraki API is not answering, names the reason, and says when the state on screen was collected.
  • Only availability raises. An uplink or traffic collect failing while availability still answers costs readings, not liveness; it is shown on the organization’s page and raises nothing.
  • A group-scoped account sees the alert when one of the organization’s nodes is in a group it can see.

That makes three values an API client can meet in subject_kind: a node, a pool, and a Meraki organization.

  • Active alerts is the triage view. It lists every currently-firing alert as a table laid out like Alert history.

    • The columns are History’s, in History’s order: Severity, Site, Node, What and State. Notes and When follow, and Actions where Explain is available.
    • Site names the nearest folder of type Site above the node. It is blank when no folder above the node is a Site, and for a poller-pool alert. A Site nested inside another counts as its own.
    • Severity reads as a dot and a word. The node shows by its name; its id appears on hover.
    • What names the alert and how it breached, for example Ping response time above 100 (was 450).
    • Every column but Actions has a filter funnel beside its header. Site filters by one or more sites, Notes by the kind of note, and When by how long ago.
    • Every column sorts. Worst first is the default.
    • A scope picker on the left narrows the list to a folder or a node.
    • The notes on an alert stack one per line: the upstream node, part of this node’s outage, how many nodes an outage’s border holds (3 nodes grouped), what the SNMP request behind an SNMP not responding alert ran into, flapping, waiting for a neighbour, and held. The row grows to hold them.
    • The filters use History’s URL keys: severity, site, node_q, metric, state, range, node_id and group_id, plus notes. A link that used the old combined search q opens unfiltered.

    The dashboard’s Active alerts widget keeps its compact rows.

    Every metric Yagra knows has a name in English and Japanese. The raw metric stays at the end of the line, so it can be matched to its rule. A 0/1 check is named by its fault (SNMP not responding) and shows no condition, and a per-port alert names its port.

    The list is virtualized, so it stays smooth even with thousands of simultaneous alerts during a major outage. The notification bell in the top bar shows the active count and opens this view. Each node’s detail page also shows the alerts currently attached to that node.

    A quiet list is not always a healthy fleet. Above the list, three counts appear when they are above zero:

    • Silenced — rows rolled up into the outage they sit behind. Press it to see only those.
    • In maintenance — nodes inside an open window.
    • Not watched — nodes whose poller pool has no live poller, or that have reported nothing for 10 minutes.

    When no node you can see is being polled at all, every screen says so at the top, with a link to Settings ▸ Pollers. That appears at once, while the pool’s own alert still waits out its five minutes. The same counts are served at GET /api/v1/fleet/watch and by the MCP tool get_fleet_summary(kind=watch).

  • Yagra keeps no acknowledgement. There is no acked mark, column or filter. Acknowledge in your incident tool, which receives every fire and resolve. Roles and permissions are covered in Users and SSO.

  • Alert history is the append-only record of every fire and clear, and of each open alert grouped into an outage. Each entry keeps the metric and condition captured at fire time in its “What” column, so history stays truthful even after the threshold rule that raised it is edited or deleted. Its Site column and filter work as on Active alerts, and name the site the node is filed under now, not where it was when the alert fired.

    Active alerts and history render the measurement through the same formatter, so the two screens cannot disagree.

    A node’s own page has an Alerts tab, left of Events, with the same log for that node alone. It drops the Site and Node columns, and its filters stay in the page’s address (alerts.severity=…).

Operator actions — opening or ending a maintenance window, running an analysis — are recorded in the audit log like every other state-changing action, so who silenced what, and when, is always answerable.

The same actions are available to AI and automation clients through Yagra’s MCP tool surface, under the same permission checks and the same audit trail.

  • Monitoring — the checks and thresholds that feed this pipeline.
  • Passive events — syslog, SNMP traps, and webhooks, and the event rules that raise alerts.
  • Users and SSO — the roles behind the operator actions on this page.