Skip to Content
UNS ManagerUNS Monitor

UNS Monitor — /uns/monitor

The Overview: health strip, the eight indicators with sparklines and the problems now
The Overview: health strip, the eight indicators with sparklines and the problems now

The Monitor answers whether the UNS is healthy: whether the UNS process and the connections are up, whether telemetry is arriving, whether the Delivery messages are being applied, whether there is a stale variable or one with bad quality and whether any alert rule is firing.

The UNS Monitor item is the first one in the UNS Manager group of the menu. It only shows up with the UNS module in the license and for whoever has the /uns/monitor Tool.

Variable lists and counts are scoped by the UNS roles of whoever is looking (UNS access); in that case the screen warns “Lists filtered by your UNS roles.” The screen refreshes by itself every 10 seconds, and the time of the last reading sits next to the tabs.

The health strip

At the top, always visible, the strip sums up the overall status — Critical, Warning or All good —, with how many problems there are now and how many are critical. Next to it, each connection (Process, Stream, Broker, Source), marked as disconnected when it went down; clicking leads to the Sources and connections tab. If the historian maintenance failed, the strip says so too.

The attention icon in the menu

With any problem now, the UNS Monitor item in the menu gets a triangle: red if there is a critical problem, amber if only warnings. With the UNS Manager group closed, the triangle moves up to the group, so the warning does not disappear with the list. Hovering lists each problem, with the same text as the “Problems now” list. It is the same yardstick as the screen and the external monitoring, like the attention icon of the other monitors.

Tabs and period

TabShows
OverviewThe indicators with the period’s history and what is wrong now
Plant healthThe namespace tree as a heat map
Sources and connectionsThe state and availability of each connection, and the historians
Problem variablesStale, BAD, uncertain and out-of-schema variables
TransactionsApplied and rejected messages, with the rejection reasons
AlertsOngoing alerts, timeline and acknowledgement

Each tab shows a number when there is something in it: red for critical, amber for warning. On Overview, Sources and connections, Transactions and Alerts, the Period picker chooses the history window: Last hour, 24 h or 7 days. Tab and period stay in the address (?aba=, ?periodo=), so you can send the link directly.

The indicator history is recorded every minute and kept for 7 days. Right after installing, the sparklines do not show yet: they appear as the history builds up.

Overview

The indicators

IndicatorWhat it measures
TelemetryTelemetry values stored per second, adding up all sources, and how many sources there are
TransactionsMessages from UNS_PUBLISH Deliveries applied in the period, and how many were rejected
Telemetry latency p95From the source timestamp to the value reaching the UNS, over the last 5 minutes (with p50 below). High = edge equipment clock running late or congested broker
Transaction latency p95From the message being processed by the integration engine to the value stored in the UNS, over the last 5 minutes
Stream lagTransactional messages waiting for the UNS process to read them, and how many were read without acknowledgement. Growing non-stop = process stopped or slow
Pending publicationValues not yet published to the publishing MQTT broker, and how long the oldest has been waiting
Stale variablesVariables with no new value beyond the attribute’s expected interval (only those with an expected interval)
BAD qualityVariables with a BAD current value, including out of schema; the uncertain ones show below

Each indicator has a sparkline for the period; hovering shows the value and the time. Below, the Transactional messages chart separates applied and rejected, and the footer shows the size of the UNS database.

Problems now

The Problems now list gathers what is out of the ordinary, from most to least severe:

ProblemSeverityWhen it shows up
Connection downCriticalThe UNS process, the publishing broker or a telemetry source went down
Rule in alertCriticalAn active alert rule is firing
Variables with BAD qualityCriticalAt least one BAD variable
Stale variablesWarningAt least one variable stale beyond the expected interval
Rejected messagesWarningThe UNS rejected messages in the last 15 minutes
Variables out of schemaWarningA value that does not follow the attribute’s current schema
Stream lagWarningMore than 1,000 entries waiting
Pending publicationWarningA value waiting for the broker for more than 5 minutes
Uncertain qualityWarningThe source marked the reading as UNCERTAIN
Rule that cannot be evaluatedWarningInvalid filter, or dashboard or SPC chart deleted

With none, the screen says “Nothing out of the ordinary now”. Clicking a problem opens the tab where it is, already filtered.

How to fix

How to fix for stale variables, with shortcuts to Telemetry, Sources and Asset Model
How to fix for stale variables, with shortcuts to Telemetry, Sources and Asset Model

The How to fix button of each problem explains what it means and what to check, and brings shortcuts to the screen where it is fixed. The same box shows up on the Problem variables tab, when filtering a status.

ProblemWhat to checkShortcuts
Stale variable“Never received” is almost always mapping: does some topic of the source point to the variable? Does the Delivery that publishes to the UNS include it? If it received and stopped, is the source connected? If the reading is spaced out on purpose, raise the attribute’s expected intervalTelemetry, Sources and connections, Asset Model
BAD qualityThe value does not match the attribute’s type or limits, the source sent BAD, or the schema rejected it. Fix it at the source, or adjust type and limits in the Asset Model if the rule is wrongBAD variables, Asset Model
Uncertain qualityIt is the source saying the reading is doubtful (sensor being calibrated, unstable communication). The CMS only passes it on: check the equipment or the driverSources and connections
Out of schemaEither the source changed the format, or the schema is out of date — publish a new versionAsset Model
RejectionsNonexistent topic, no write permission or invalid value. Fix the Delivery or the Asset Model and reprocess the messageTransactions
Connection downSource: the broker or the External Connection and credentials. Process: the cms-uns container must be upSources and connections, Telemetry
Process downWithout cms-uns, nothing goes in or out of the UNS. Check the container and the Installation page of UNS SettingsSources and connections, Installation
Stream lagA short spike is normal. Growing non-stop, the process is stopped or overloadedSources and connections
Pending publicationIs the publishing broker up? Are the credentials in UNS Settings › MQTT publishing right?MQTT publishing
Rule in alertSee the cause shows what fired. Fix it, or acknowledge the alert if it is already being handledAlerts
Rule with errorEdit or deactivate the ruleAlerts

Plant health

Each tile is a branch of the namespace tree, with the status of its variables: BAD, stale, uncertain, no value and OK, the OK percentage and the total. Clicking goes down one level, and the path at the top (Namespace › …) goes back. Sort puts the Worst first or By name. See problem variables opens the next tab filtered by the branch. On a node with variables, their list shows below, with the status of each one.

For a very large role scope, only the first 200 thousand variables go into the count, and the screen warns you.

Sources and connections

The Connections table carries each connection with its Now state, the Rate, the Last message, the Available percentage in the period and the History in bars: green = up the whole time, amber = down briefly, red = down for a while, gray = no measurement (the API was down). Hovering a bar shows the time and how many minutes it was down. A connection that left the configuration shows as no longer configured.

Below, Historian and external historians: the last historian maintenance, the events removed by retention and the status; and each external destination with its variables, what is Queued, Sent, Dropped, the last send and the error.

Problem variables

Lists the variables by status — Stale, BAD, Uncertain, Out of schema —, with the topic, the status, the last value (or never received), the expected interval and the Reason. The status buttons filter; clicking the topic of a variable filters by its node (Branch), and the x removes the filter. The search looks up topic or reason. The list shows 50 per page and goes up to the first 20 thousand.

The icon at the end of each row opens the probable cause of the variable: what it depends on that also has a problem right now — the disconnected source, the Application OFF, the Collection turned off.

Transactions

The chart of applied and rejected messages in the period, Rejections by Delivery and Rejection reasons: the Delivery, the reason, how many Times, the Last one and the message, with a link to it. From the message you fix and reprocess. With many rejections in the period, the count uses the 5 thousand most recent.

Alerts

The Alerts tab: rules in alert now, timeline, firings and the shortcut to the rules
The Alerts tab: rules in alert now, timeline, firings and the shortcut to the rules

In alert now lists the rules firing, with the value, for how long, a line on how to fix it and See the cause (or Open the chart, on an SPC chart rule). The alert leaves this list by itself when the condition stops holding.

Acknowledge records that someone is taking care of it, with an optional comment (“What was done”). Acknowledging does not silence: to stop warning without fixing, deactivate the rule.

The Timeline shows one band per rule with the stretches in alert during the period, and Firings and recoveries lists each event with the value, the threshold and who acknowledged it. Only unacknowledged filters what still needs handling. Events are kept for 90 days.

The rules behind these alerts are on another screen: the bottom of the tab has Open alert rules, which goes to Alert rules.

Alert rules

UNS Manager › Alerts: the list of rules, with the Active column to turn them on and off
UNS Manager › Alerts: the list of rules, with the Active column to turn them on and off

The rules are in UNS Manager › Alerts (/uns/alerts), a screen that uses the same Tool as the Monitor (/uns/monitor). Each row shows the type, the condition, the status and the last evaluation, and the Active column turns the rule on and off right there.

Rules are evaluated every minute and fire through the Alerts module (bell, e-mail, webhook). The alert text does not mention a topic — whoever receives it may not have a role to read those variables —; the details stay on this screen. The rule warns again when it recovers.

The rule popup, with Browse the UNS in the topic filter and the search in Recipients
The rule popup, with Browse the UNS in the topic filter and the search in Recipients
FieldWhat it holds
NameShows in the alert and in the list
TypeWhat the rule counts (table below)
SPC chartSPC chart type only: the chart of a dashboard, chosen from the list
Topic filter (optional)Only on Stale variable, BAD quality and Transactional rejection. Browse the UNS opens the namespace tree to pick a whole branch (the filter becomes branch/#) or a variable. MQTT wildcards still work: + takes a level, # only at the end. Empty = all variables
From how many…The threshold: the rule holds when the count reaches it
For at least (seconds)The condition has to hold without interruption for this long before firing, up to 7 days. Keeps a 30-second spike from becoming an e-mail
RecipientsThe users who receive it. The list has a search by name, login or email, and the chosen ones show as chips. With the E-mail channel on, a user with no email on record is flagged: their alert only goes out through the bell
E-mail / Webhook/WhatsAppThe channels
ActiveOff, the rule is not evaluated
TypeCounts
Stale variableVariables in the filter with no new value within the attribute’s expected interval
BAD qualityVariables in the filter with BAD quality (outside the type or the schema)
Transactional rejectionMessages rejected by the UNS in the last 15 minutes (that touched the filter, if any)
Connection downWhat is down: the process, the publishing broker, the telemetry sources and the stream
Stream lagTransactional entries waiting for the UNS to read them
UNS database sizeSize in GB of the UNS database (state and historian)
SPC chart out of controlAmong the 5 most recent points of the chart, how many violate the Nelson rules turned on in the widget

The SPC chart rule uses the rules and limits (frozen or not) of the widget on the dashboard. To create one, first build the chart on a dashboard. If the dashboard or the chart is deleted, the rule switches to “cannot be evaluated”.

The search filters rules by name or topic filter, and the pickers by type and status (Alerting, Normal, Disabled). Evaluate now runs the evaluation without waiting for the minute. Creating, editing and acknowledging require edit permission on the /uns/monitor Tool.

TV mode

The Monitor in TV mode: health strip, last-hour indicators, problems, plant and alerts
The Monitor in TV mode: health strip, last-hour indicators, problems, plant and alerts

TV mode opens the Monitor in a new tab, full screen, with no menu and large type, for the control room wall. It shows the health strip, the eight indicators for the last hour, the problems now, the six worst first-level branches of the plant and the active alerts — nothing that needs a click. It refreshes by itself and exits with Esc. The address with ?tv=1 opens straight into it.

The size follows the screen width. In the bottom right corner, A− / A+ adjusts from 100% to 200% and Auto goes back to automatic. The setting is saved in the browser and also applies to the UNS dashboards and the Applications Panel.

On the TV without login

To leave the Monitor on a TV with nobody logged in, generate a token in Wallboard and Monitoring › UNS Monitor:

  1. New Monitor token: give it a description (e.g. control room TV) and, optionally, an expiry date.
  2. Copy the Address for the TV (/uns-monitor-wall?token=...). The token starts with cms_unsm_ and shows up only now.
  3. Open the address on the TV once. The token is kept in the TV browser and leaves the address bar. The Monitor opens in TV mode and refreshes by itself.

The TV sees what whoever generated the token sees in the Monitor today, through their UNS role, checked on every refresh. If that person loses access or is deactivated, the TV stops at once. To switch TVs or if the address leaks, revoke the token on the same screen. A revoked or expired token makes the TV ask for a new one.

External monitoring (Zabbix)

The same CMS monitoring token (cms_mon_..., created in Wallboard and Monitoring › External monitoring) reads the UNS Monitor summary:

GET /api/monitoring/uns Authorization: Bearer cms_mon_...

The X-Monitoring-Token header also works. The response follows the same yardstick as Problems now:

FieldWhat it carries
situacao / situacaoCodigoOK = 0, ATENCAO = 1, CRITICO = 2. To trigger in Zabbix, use the number
problemasHow many critical and warning, and the list with type, severity and description
processoProcess online (1/0) and each connection with conectado 1/0
telemetriaPorSegundoTelemetry values per second
atrasoStream, publicacaoPendente, publicacaoPendenteMaisAntigaSegThe stream and publication indicators
variaveisCount of BAD, uncertain, out-of-schema and stale
recusasRejections in the last 15 minutes and in the last 24 hours
regrasActive rules, in alert and with errors

The scope is the UNS role of whoever generated the token; if that person is deactivated, the address answers 401. On the External monitoring tab, View response now shows the JSON with your own scope.

The address only answers with the UNS module in the license. The other CMS monitoring addresses keep working without it.