Wallboard and Monitoring — /settings/cockpit

The top of the screen has one card per destination, each with a sentence on what it shows. Clicking the card opens the list of tokens for that destination:
| Card | For whom | The token opens |
|---|---|---|
| Applications Panel on TV | The shop-floor TV, the wall panel, the kiosk | Only the Cockpit |
| UNS dashboards | The TV next to the line | Only one UNS dashboard — see UNS TVs |
| External monitoring | Zabbix, Grafana, Nagios or another monitoring system | Only the monitoring API — see External monitoring |
| UNS Monitor | The control room TV | Only the UNS Monitor in TV mode — see UNS TVs |
The two UNS cards only appear with the UNS module in the license, and each one only for whoever has
the Tool of the source screen: /uns/monitor for the Monitor and /uns/dashboards for the
Dashboards.
The first two are the same record with different purposes, and one token does not open the other’s door. The split is deliberate: the TV token lives on a shop-floor device and may arrive through the URL; the monitoring one lives in a server’s configuration. Revoking a replaced TV must not take monitoring down, and a leaked TV token must not open the API.
A TV hanging on the shop floor has nobody signed in to it. The first card creates the tokens that let that TV open the Cockpit — and only the Cockpit — with no user credential.
Until August 2026 the Cockpit was simply anonymous: anyone who reached the address saw the code of every integrated Application, the status of each one, today’s message volume and the last activity. The product decision has not changed — the TV still opens without a login. What changed is that “no login” now means “with a token”, not “with no credential at all”.
Two ways into the board
| Path | Who uses it | What shows up |
|---|---|---|
| User session | Whoever is working in the CMS | Opens /cockpit directly, with no token, and sees the Applications they already see everywhere else — the ones behind their own Interfaces |
| Wallboard token | The TV, the wall panel, the kiosk | Opens with no login, and shows the Applications on that token. With no scope set, all of them |
Neither one, and the screen does not open.
Scoping by session fixed, in passing, an asymmetry nobody had noticed: the Cockpit showed every Application even to a user restricted to a single Interface. It was the only screen in the product with no scoping.
Creating a token

Description
“Warehouse 2 TV”, “Reception”, “Supervisor’s office”. It exists so you know which TV to revoke later — it shows in this screen’s list, never on the board itself.
Expires on
Empty means no expiry. A date here is useful for a construction-site TV, a trade-show one or a pilot: the token dies on its own when its reason does.
Applications this TV shows
The field that decides the token’s reach. The list comes grouped by the same categories as Applications — Applications, Industrial Protocols, Databases, SAP, Files —, with a search by code or name (whoever sets up the warehouse TV tends to remember the system’s name, not the three-letter code), and a Select all that adds to the current selection instead of replacing it: with the search filled in, it ticks only what is in view.
Create
The token is generated right away, and the screen shows the value and the TV-ready URL once.
Selecting all is not the same as leaving everything unticked. Selecting all freezes the scope on today’s Applications — an Application created tomorrow will not join this TV. Leaving everything unticked means “all of them, future ones included”. For a general board, ticking nothing is the right answer; selecting all is for when today’s list is exactly the list you want.
The TV URL
https://your-cms/cockpit?token=YOUR_TOKENOpen that address in the TV browser and go full screen. On the first load the TV stores the token
and wipes the parameter from the address bar — the URL of a browser in kiosk mode sits in plain
view, lands in the history and leaks in a support screenshot. From then on, opening /cockpit is
enough.
The URL offered on screen is built from the base URL configured in the system, not from the address you happen to be using: the TV browser almost never reaches the CMS by the same path as whoever administers it.
The token value is never shown again. The CMS stores only a hash — the same design as MCP tokens. If the token is lost, the way out is to create another one and revoke the old.
A TV that has no token yet

With no session and no token, /cockpit shows Restricted board, with a box to paste the token by
hand — handy when the TV has no keyboard for a long URL but does have a remote.
The screen tells two cases apart, and the difference saves a trip to the shop floor:
| What the screen says | What happened |
|---|---|
| This wallboard needs an access token | There was never a token in this browser |
| The token stored in this browser was not accepted | There was one, and it was revoked or expired |
The API answers with a single 401 for a non-existent, revoked or expired token. Three different answers would turn the route into an oracle of valid tokens. The distinction above comes from the browser, which knows whether it stored a token — not from the server.
Revoking
Each token switches on and off on its own in the list, and can be deleted for good. Revoking one does not affect the other TVs nor any user account: the TV using it loses the board on the next refresh and goes back to asking for a token.
That is what makes the per-Application scope a good deal: a leaked token from the Shipping TV exposes the status of those Applications, not the whole plant inventory — and revoking it does not take the other screens down.
The list shows each token’s last use, which is the piece of information that answers “does this TV still exist?” before you go revoking whatever nobody recognises.
Every mutation is audited — COCKPIT_TOKEN_CRIADO, COCKPIT_TOKEN_ALTERADO, COCKPIT_TOKEN_REVOGADO
and COCKPIT_TOKEN_REMOVIDO in the Audit Log. In an incident, the revoked one
is what matters: when that TV stopped seeing.
External monitoring

The External monitoring card serves a monitoring system, which polls the CMS every minute and raises an alarm when something goes out of the ordinary. There are two endpoints:
| Endpoint | Access | Answers |
|---|---|---|
GET /api/health/ready | Public, no token | Whether the CMS is up: 200 when the API, the database and the engine respond; 503 when any of them does not. In the body, api, banco and motor as 1/0 |
GET /api/monitoring/status | Monitoring token in a header | The full state: the CMS, each connection and each Interface, as JSON |
GET /api/monitoring/uns | The same token, in a header | The UNS Manager summary — see UNS summary. Only with the UNS module in the license |
Why the engine is part of the keep alive. With the API and the engine in separate processes,
the API can be answering while the engine is stopped — and nothing gets processed. The
/api/health/ready endpoint really asks the engine, through the same channel the screens use to
command it. The usual /api/health, which the load balancer polls, still looks only at the API and
the database: taking the machine out of rotation because the engine went down would also take down
reception, which keeps working and queuing.
The monitoring token
Created on the External monitoring tab, it starts with cms_mon_ (the TV one starts with
cms_wall_) and follows the same rules: description, optional expiry, per-Application scope, value
shown only once and revocation one by one. On creation, the screen shows the header ready to
paste into the Zabbix item:
Authorization: Bearer cms_mon_...The X-Monitoring-Token header is accepted too. In the URL (?token=) the token is refused: a
token in the query string gets written to the server access log and to the history of whoever tested
it in the browser.
The per-Application scope narrows the whole response — the connections and also the Interfaces, which are included through the Application they belong to.
What the API returns
{
"geradoEm": "2026-10-29T14:00:00.000Z",
"cms": { "api": 1, "banco": 1, "motor": 1, "papel": "api" },
"resumo": { "conexoes": 31, "conexoesOff": 2, "interfaces": 88, "interfacesBloqueadas": 0,
"interfacesAcimaDoLimite": 0, "mensagensEmFila": 4,
"mensagensErroAbertas": 12, "mensagensErroHoje": 1 },
"conexoes": [ { "id": 13, "aplicacao": "MES", "tipo": "HTTP", "status": 1, "statusTexto": "ON", "desde": "…" } ],
"interfaces": [ { "id": 160, "sigla": "MES_QUEUE_1", "aplicacao": "MES", "ativa": 1, "bloqueada": 0,
"agendadorAtivo": 1, "mensagensEmFila": 0, "mensagensErroAbertas": 0,
"mensagensErroHoje": 0, "mensagensProcessadasHoje": 0,
"limiteAcumulado": 500, "acimaDoLimite": 0 } ]
}| Field | Means |
|---|---|
status (connection) | 1 ON, 0 OFF — the result of the Application’s Keep Alive. 2 is maintenance (statusTexto = MAINTENANCE, with manutencaoAte): neither ON nor OFF, and a trigger that alarms on 0 does not fire. A deactivated Application is not in the list |
bloqueada | 1 when the Interface is blocked (manually, by a business error or by a Transformer error) |
ativa | 0 marks an Interface with no Delivery or Collection switched on — filter it out in discovery so nothing switched off on purpose raises an alarm |
mensagensErroAbertas | Failed messages nobody has reprocessed or cancelled, from any date. This is the number that should raise the alarm: it does not reset when the day turns |
mensagensErroHoje / mensagensProcessadasHoje | The day’s volume, in the CMS configured time zone |
acimaDoLimite | 1 when the queue went past the Interface’s accumulated-messages limit — the same count as the CMS accumulated-messages alert |
Every state comes out as 1/0, because Zabbix triggers and graphs work with numbers. No error text, host or port goes out this way: the detail stays on the CMS screens. The response is built at most every 15 seconds per scope, so several pollers do not weigh on the database.
The View response now button shows the same JSON through your session — with the Applications your user can see —, to check the format without pasting the token into a terminal.
UNS summary
With the UNS module in the license, the card also has the UNS Manager block, with the endpoint
GET /api/monitoring/uns. The same monitoring token (cms_mon_) reads the UNS Monitor summary,
with the same criteria as the screen’s Problems now:
{
"geradoEm": "2026-11-09T14:00:00.000Z",
"situacao": "ATENCAO",
"situacaoCodigo": 1,
"problemas": { "criticos": 0, "atencao": 1, "lista": [ { "tipo": "PARADAS", "gravidade": "ATENCAO", "descricao": "…" } ] },
"processo": { "online": 1, "conexoesTotal": 2, "conexoesFora": 0, "conexoes": [ { "chave": "…", "nome": "…", "conectado": 1 } ] },
"telemetriaPorSegundo": 42,
"variaveis": { "bad": 0, "uncertain": 0, "foraDoSchema": 0, "paradas": 3 },
"recusas": { "ultimos15min": 0, "ultimas24h": 0 },
"regras": { "ativas": 4, "emAlerta": 0 }
}| Field | Means |
|---|---|
situacaoCodigo | 0 OK, 1 warning, 2 critical. This is the field for the Zabbix trigger |
problemas | How many critical and how many warning problems, and the list. Critical: UNS process down, connection lost, rule in alert, BAD variables. Warning: stale variables, messages rejected in the last 15 minutes, variables outside the schema, consumption lag, publishing pending for more than 5 minutes, UNCERTAIN quality and a rule that cannot be evaluated |
processo | The UNS process up (1/0) and each connection, with conectado as 1/0 |
telemetriaPorSegundo | Values received per second; null with the process down |
variaveis | BAD, UNCERTAIN, outside-the-schema and stale variables |
regras | Active alert rules and how many are in alert |
The monitoring token has no role in the UNS. That is why the response is narrowed by the UNS role of whoever generated the token, checked on every call: if that person is deactivated, the endpoint answers 401. View response now, in the block, shows the same JSON through your session.
Setting it up in Zabbix
The step-by-step guide is also under the help icon in the tab title. The idea is one item that fetches the whole JSON, and everything else comes from it, with no request per connection:
Master item
Type HTTP agent, URL https://your-cms/api/monitoring/status, header
Authorization: Bearer <token>, 1-minute interval, type of information Text and a short history
(1 hour is enough).
Discovery rules
Type Dependent item of the master item, JSONPath preprocessing $.conexoes, macros
{#ID} = $.id and {#APLICACAO} = $.aplicacao. A second rule for $.interfaces, with
{#ID} = $.id and {#SIGLA} = $.sigla.
Item prototypes
Also dependent on the master item, with JSONPath
$.conexoes[?(@.id == "{#ID}")].status.first() — and, for Interfaces, bloqueada,
mensagensEmFila, mensagensErroAbertas and acimaDoLimite.
Triggers
Connection with status = 0; Interface with bloqueada = 1, acimaDoLimite = 1 or
mensagensErroAbertas > 0; and an HTTP agent item on /api/health/ready, with no token, raising
an alarm when the response code is not 200.
UNS TVs
With the UNS module in the license, the UNS Monitor and UNS dashboards cards follow the same layout as the Applications Panel on TV: indicators (tokens created and active), the token list, the new token button and the Turning a TV on block, with the address to copy.

| UNS Monitor | UNS dashboards | |
|---|---|---|
| What the TV shows | The health of the UNS: problems, sources and alerts | A dashboard built in the Dashboards of the UNS Manager |
| TV address | /uns-monitor-wall?token=… | /uns-wall?token=… |
| The token starts with | cms_unsm_ | cms_unsw_ |
| Where it is created | Here, in New Monitor token | Here, in New dashboard token (choosing the Dashboard), or on the dashboard screen itself |
| What the TV sees | What whoever generated the token sees in the UNS, by their role, checked on every refresh | The token’s dashboard |
| Button alongside | Open the Monitor in TV mode, to see through your session what the TV will show | See the dashboards |
The new token asks for Description and Expires on (empty for no expiry), like the others. The value appears only once, already built into the Address for the TV. On the first load, the TV stores the token and removes it from the address bar, as with the Cockpit.
The list shows each token’s status (Active, Revoked or Expired), the last use and when it was created. Revoke and Reactivate switch the token off and back on; the bin deletes it, and the TV using it stops immediately. Each person sees and revokes the tokens they issued; whoever sees the whole UNS sees all of them.
The Monitor token inherits the access of whoever generated it. If that person loses access to the UNS or is deactivated, the TV stops immediately. For a TV that stays on the wall for years, generate the token with a user that will keep existing.
The content size on the TV adjusts as in the Cockpit — see TV mode and on-screen size.
Permission for the screen
The screen is a Tool of its own, /settings/cockpit, granted under Profiles.
It is not the same as administering users: creating a wallboard or monitoring token creates no
account and grants access to no screen beyond the board and the monitoring API.
Whoever administers tokens does not necessarily have the Applications Tool. Without it the scope picker disappears and the screen says why — the token is born showing all of them — instead of displaying an empty list and creating a token with a silently wrong scope.