Skip to content

Metrics, logs and System Health

eaxScadaReferenceStarterProEnterpriseView as Markdown

Migrated page, not yet verified against the current code. Treat values, paths and examples as indicative until this notice is removed.

eaxScada reports its health three ways:

  • GET /metrics: the Prometheus text format (version 0.0.4), for Prometheus or any compatible scraper.
  • The operational log: one structured log (JSON lines in the log file, logs/eaxScada.log unless logging.file says otherwise; text on the console; the /api/logs table) with a request id on every line a request produced. It can also go to a syslog collector.
  • The System Health workspace in eaxScada Studio, with a short history kept in eaxScada’s own historian.

All three are in every edition.

/metrics is never open to anonymous callers by default.

Caller Access
A signed-in Lead_Engineer or Administrator session 200
Any other signed-in role (operator, supervisor, auditor, AI co-pilot) 403
Authorization: Bearer <token> with the metrics token (metrics.token_file) 200. The token reads /metrics only; every other route refuses it (401).
No credential, from 127.0.0.1 or ::1, with metrics.allow_localhost: true 200. Refused (401) when the request carries X-Forwarded-For, Forwarded or X-Real-IP: a reverse proxy on the same machine would make every client look local.
Anyone else 401
  • Only GET and HEAD are allowed; other methods get 405.
  • With metrics.enabled: false the endpoint answers 404.
  • Refused requests are counted in eaxscada_metrics_scrapes_refused_total.
  • The token is compared in constant time. A token file that cannot be read, or holds fewer than 24 characters, is refused at start-up: /metrics then accepts sessions only, and the log says why.

Example Prometheus job:

scrape_configs:
- job_name: eaxscada
scrape_interval: 15s
authorization:
type: Bearer
credentials_file: /etc/prometheus/eaxscada.token # same content as metrics.token_file
static_configs:
- targets: ['scada-01.plant.local:8080']

The embedded NATS server has an HTTP monitoring port (nats.http_port, default 8222) with no authentication.

  • It now listens on 127.0.0.1 by default (nats.http_host, env NATS_HTTP_HOST), even when the client port listens on every interface (NATS_HOST=0.0.0.0 in the containers).
  • Its figures are read in process and included in /metrics (eaxscada_nats_*), so the monitoring port never needs exposing.
  • Set nats.http_port: 0 to turn the monitoring port off.

Labels are bounded by design: never a tag name, a user name or a raw URL path.

  • route is the registered route pattern (/api/dev/screens/), never the requested path.
  • channel is a driver channel id from the configuration.
  • A label set that would pass 1,000 series in one metric is counted under the value other.

Counters count from the process start and restart at 0 with it; Prometheus rate() and increase() handle that.

Metric Type Labels Meaning
eaxscada_tag_updates_total counter source (driver, plc, script, simulator, operator, recipe, mcp, nats, system, other) Tag value changes accepted by the tag engine.
eaxscada_tags gauge quality (good, uncertain, bad) Tags by quality.
eaxscada_driver_channel_up gauge channel, protocol, simulated 1 when the channel is enabled and online.
eaxscada_driver_channel_enabled gauge channel, protocol 1 when the channel is enabled.
eaxscada_driver_errors_total counter channel, kind (read) Failed or bad-quality reads.
eaxscada_driver_reads_total counter channel Good reads.
eaxscada_driver_poll_duration_seconds histogram channel Duration of one poll cycle of a channel.
eaxscada_uns_ingest_refused_total counter reason (TELEMETRY_SUBJECT_MISMATCH) UNS telemetry messages a NATS channel (or the registry of simulated PLCs) did not ingest: the payload’s path is not the tag its subject names. Each source and device is also logged, at most once every 10 seconds.
eaxscada_mqtt_ingest_refused_total counter channel, reason (UNMAPPED_TOPIC, PAYLOAD_PATH_NOT_MAPPED, OTHER_CHANNEL_TAG, UNMAPPED_PATH, NO_MAPPINGS) MQTT messages, or Sparkplug B metrics, an MQTT channel refused to write: no tag of the channel is mapped to the topic (UNMAPPED_TOPIC), the payload’s path is not a tag the channel maps to the topic (PAYLOAD_PATH_NOT_MAPPED), the path is another channel’s tag (OTHER_CHANNEL_TAG), a Sparkplug metric’s path is not mapped by the channel (UNMAPPED_PATH), or the channel’s driver runs without the server’s mappings, so nothing can be checked and nothing is written (NO_MAPPINGS). A warning is logged at most once every 10 seconds per channel and reason, with the count dropped since. See MQTT and Sparkplug B.
Metric Type Labels Meaning
eaxscada_alarms gauge state (NORMAL, UNACK_ALARM, ACK_ALARM, RTN_UNACK, SHELVED), priority (CRITICAL, HIGH, MEDIUM, LOW, INFO) Alarms by ISA-18.2 state and priority. All 25 combinations are always present. Every alarm is counted, whatever its priority is called. The priority is normalised as in GET /api/alarms/counts: URGENT and HIGHEST count as CRITICAL, any other name as HIGH (Priority names).
eaxscada_alarm_activations_total counter priority Alarm activations (trips). increase(...[10m]) is the ISA-18.2 alarm rate.
eaxscada_alarm_journal_lost_events_total counter Alarm journal events the alarm store refused: in the live history only, missing from the stored journal after a restart (ALM-SYS-ALARM-JOURNAL-LOST). Alert on any increase.
eaxscada_alarm_store_write_errors_total counter kind (definition, shelve) Writes the alarm store refused: definition saves and deletes (definition), shelves and unshelves (shelve). A refused definition change or shelve was not made (ALM-SYS-ALARM-STORE).
eaxscada_alarm_unshelves_not_saved gauge Alarms unshelved whose stored shelve the alarm store has not removed yet; retried in the background. Above 0, ALM-SYS-ALARM-STORE stands.

tier names the storage tier: duckdb (the columnar engine of the release server, in every edition) or hive_csv (partitioned CSV files, in builds without the embedded database).

Metric Type Labels Meaning
eaxscada_historian_ingest_points_total counter tier Points handed to the historian.
eaxscada_historian_written_points_total counter tier Points written by the ingestion worker.
eaxscada_historian_ingest_dropped_total counter tier Points that found the ingest queue full: kept in memory, not stored on disk. Alert on any increase.
eaxscada_historian_write_errors_total counter tier Batches the store refused.
eaxscada_historian_future_clamped_total counter tier Samples stamped more than 5 s after this server’s clock, stored at its receive time instead. The first one per tag is logged. An increase means a source’s clock runs ahead.
eaxscada_historian_queue_points gauge tier Points waiting in the ingest queue.
eaxscada_historian_ingest_lag_seconds gauge tier Age of the last write while points wait; 0 when the queue is empty. The worker writes every 2 s, so a healthy value stays under 2.
eaxscada_historian_last_write_timestamp_seconds gauge tier Time of the last write (Unix seconds).
eaxscada_historian_storage_bytes gauge tier Size of the historian directory on disk, refreshed every minute.
eaxscada_historian_size_bytes gauge The size historian.max_size counts: the CSV day partitions plus the blocks in use in the columnar store (its file does not shrink when rows are deleted; new history reuses the freed blocks).
eaxscada_historian_growth_bytes_per_day gauge Average size of the last closed days (up to 7).
eaxscada_historian_store_file_bytes gauge Size of the columnar store’s file on disk.
eaxscada_historian_volume_free_percent gauge Free space on the volume holding the historian.
eaxscada_historian_logging_paused gauge 1 while the disk guard pauses historian logging (disk critically full).
eaxscada_historian_paused_points_total counter Points kept in memory only, not stored, while logging was paused.
eaxscada_historian_store_state gauge The columnar store’s state: 0 ok, 1 isolating a point it refuses (ALM-SYS-HISTORIAN-ISOLATING), 2 down (ALM-SYS-HISTORIAN-STORE-DOWN). See The store’s state. Builds with the columnar store only.
eaxscada_historian_quarantined_points_total counter Points the store refused for good, kept in the spool quarantine, counted since this server started. Alert on any increase. Builds with the columnar store only.

Read from the operating system on Windows and Linux (absent elsewhere). See Keep the historian within its disk budget.

Metric Type Labels Meaning
eaxscada_host_cpu_percent gauge CPU in use on the machine, all cores.
eaxscada_process_cpu_percent gauge CPU used by the eaxScada server, as a share of all cores.
eaxscada_host_memory_total_bytes gauge Physical memory of the machine.
eaxscada_host_memory_available_bytes gauge Physical memory available.
eaxscada_process_resident_bytes gauge Memory the server holds in RAM (working set on Windows, resident set on Linux).
eaxscada_process_threads gauge Operating-system threads the server’s runtime created.
eaxscada_volume_free_bytes gauge volume, roles Free space on each volume the server writes to (roles: historian, export, audit, logs, data).
eaxscada_volume_total_bytes gauge volume, roles Size of that volume.
eaxscada_system_condition gauge condition 1 while a system alarm condition is active: DiskLow, DiskCritical, CPUHigh, MemoryLow, HistorianPaused, HistorianPurged, HistorianExportFailed, HistorianPointsLost (ALM-SYS-HISTORIAN-LOST), HistorianStoreDown (the columnar store does not take writes, points wait in the spool: ALM-SYS-HISTORIAN-STORE-DOWN), HistorianIsolating (the store refused a batch but takes other writes, and the historian is finding the point it refuses: ALM-SYS-HISTORIAN-ISOLATING; never 1 together with HistorianStoreDown), HistorianBackupFailed (the nightly snapshot failed or was skipped: ALM-SYS-HISTORIAN-BACKUP), BackupFailed (a scheduled backup failed or is overdue: ALM-SYS-BACKUP), HAQuorumLost (a node of an HA cluster without quorum for 10 s: ALM-SYS-HA-QUORUM), AlarmJournalLost (ALM-SYS-ALARM-JOURNAL-LOST), AlarmStoreFailing (ALM-SYS-ALARM-STORE), AuditTrailDown (the audit trail does not open or take writes, actions that must be recorded first are refused: ALM-SYS-AUDIT-DOWN), AuditTrailDiskLow (the audit trail records, or must, and its volume has less than 10 GB free: ALM-SYS-AUDIT-DISK), BatchRecordNotWritten (a batch’s state or log entry is kept in memory but not written: ALM-SYS-BATCH-RECORD).
Metric Type Labels Meaning
eaxscada_ha_enabled gauge 1 when this node is part of an HA cluster (its broker has cluster routes configured). A single server runs the lease manager too, but reports 0.
eaxscada_ha_role gauge (one-hot) role (primary, standby, witness, standalone) This node’s role.
eaxscada_ha_is_primary gauge 1 when this node holds the primary lease.
eaxscada_ha_has_quorum gauge 1 when this node sees cluster quorum.
eaxscada_ha_accepts_control gauge 1 when the node accepts control commands: primary with quorum (the same condition as the control-write guard).
eaxscada_ha_term gauge Current lease term.
eaxscada_ha_lease_replicas gauge Replicas of the lease bucket as last confirmed (3 in a healthy three-server cluster).
eaxscada_ha_active_routes gauge Cluster routes seen by HA.
eaxscada_ha_lease_expiry_seconds gauge Seconds until the current lease expires.
eaxscada_ha_failovers_total counter direction (promotion, demotion) Role changes of this node.

Read from the embedded server in process.

Metric Type Meaning
eaxscada_nats_core_connected gauge 1 when eaxScada’s own client is connected.
eaxscada_nats_connections gauge Client connections.
eaxscada_nats_connections_total counter Connections accepted since start.
eaxscada_nats_subscriptions gauge Active subscriptions.
eaxscada_nats_routes gauge Connected cluster routes.
eaxscada_nats_leafnodes gauge Connected leaf nodes.
eaxscada_nats_in_msgs_total, eaxscada_nats_out_msgs_total counter Messages received and sent.
eaxscada_nats_in_bytes_total, eaxscada_nats_out_bytes_total counter Bytes received and sent.
eaxscada_nats_slow_consumers_total counter Clients disconnected as slow consumers.
eaxscada_nats_jetstream_memory_bytes, eaxscada_nats_jetstream_storage_bytes gauge JetStream memory and file storage in use.
Metric Type Labels Meaning
eaxscada_auth_logins_total counter result, method (local, ldap, oidc, saml) Sign-in attempts.
eaxscada_auth_lockouts_total counter Accounts locked after repeated failures (sign-in or signature).
eaxscada_esignatures_total counter result, cosigned (true, false) Electronic signature verifications. cosigned="true" is a second person’s co-signature.
eaxscada_tag_writes_total counter origin (http, nats, mcp_approve, alarm_manager, genealogy_capture), result (ok, denied, signature_required, failed), reason_code User-originated tag writes by outcome.
eaxscada_write_policy_denials_total counter code, origin Writes refused by the screen write policy.
eaxscada_ai_tool_calls_total counter tool, result (ok, denied, error) MCP tool calls. An unknown tool name is counted as unknown.
eaxscada_ai_staged_actions_total counter result (staged, approved, approved_write_failed, rejected) AI setpoint proposals and the human decision.
eaxscada_metrics_scrapes_refused_total counter reason (unauthenticated, forbidden) Refused /metrics requests.
eaxscada_websocket_refused_total counter reason (origin, per_session, per_ip) Refused /ws WebSockets: a cross-site or cookie-only handshake without an Origin, or past a concurrent socket cap (server.ws_max_per_session, server.ws_max_per_ip).

eaxscada_auth_logins_total{result}:

result Meaning
ok Session opened (password or single sign-on).
bad_password Wrong password (counts toward the lockout).
unknown_user No such account.
locked The account is locked.
disabled The account is disabled.
default_password_refused An account still on a published default password (a sample account of an earlier version, or a development account) or on its first password, outside developer mode.
rejected Single sign-on refused by the local account status.

eaxscada_esignatures_total{result}: verified, bad_password, unknown_user, no_password, locked, disabled, rejected.

eaxscada_tag_writes_total{reason_code} is the code of a refusal or a failure:

Code Origin Meaning
WRITE_DENIED http, mcp_approve No write permission on the tag.
UNAUTHENTICATED http No signed-in user.
HA_NOT_PRIMARY http, nats This HA node is not the primary with quorum. For nats: a command that reached a node that may not dispatch, refused and answered.
runtime_stopped nats The runtime is stopped.
VALUE_MISSING http The request has no value.
PLC_PATH_UNKNOWN, PLC_READ_ONLY, PLC_TEXT_REFUSED http An eaxPLC path that names no value, a variable that is not writable, a text sent to a number.
OUT_OF_RANGE http Outside the tag’s range.
AUDIT_NOT_WRITTEN http, mcp_approve, alarm_manager, genealogy_capture The record that must come first could not be written: nothing was sent.
MANUAL_OVERRIDE_REFUSED http The device or the tag’s owner refused (result failed).
SIGNAL_DROPPED_ALARM_ENDED alarm_manager An alarm-handshake signal dropped because its alarm ended first.
WRITE_FAILED, READ_ONLY alarm_manager, genealogy_capture The handshake write failed, or its tag is read-only (result failed).
NATS_COMMAND_PASSWORD_REJECTED nats A command that carries a password.
The write-policy codes every origin WRITE_DENIED_UNKNOWN_TAG, WRITE_DENIED_SCREEN_ACCESS, WRITE_DENIED_SCREEN_PARAMETERS, WRITE_DENIED_OUT_OF_RANGE, WRITE_DENIED_OUT_OF_ENG_RANGE, WRITE_DENIED_INTERLOCK, WRITE_DENIED_SIGNATURE_REQUIRED (result signature_required), WRITE_DENIED_SIGNATURE_REJECTED, WRITE_DENIED_CONFIRMATION_REQUIRED, WRITE_DENIED_SYSTEM_SIGNATURE_INVALID.

WRITE_DENIED_SIGNATURE_REJECTED is a wrong electronic signature on a tag that did not require one: the write is refused 403 signature_rejected and journaled like the required case, also on POST /api/mcp/approve. Earlier versions answered it 401 and counted it as SIGNATURE_REJECTED, which no refusal uses any more. Each write-policy refusal also has its row in the audit trail.

Metric Type Labels Meaning
eaxscada_http_request_duration_seconds histogram route, method, code HTTP request duration. WebSocket upgrades are not timed. Buckets 5 ms to 10 s.
eaxscada_ws_clients gauge Connected WebSocket clients.
eaxscada_log_records_total counter level Log records written.
eaxscada_syslog_dropped_total counter Records not exported to syslog (queue full or collector unreachable).
eaxscada_build_info gauge version, tier Always 1.
eaxscada_uptime_seconds gauge Seconds since start.
process_start_time_seconds gauge Start time (Unix seconds).
go_info gauge version Go version.
go_goroutines, go_threads gauge Goroutines, OS threads.
go_memstats_heap_alloc_bytes, go_memstats_heap_inuse_bytes, go_memstats_sys_bytes gauge Memory.
go_memstats_alloc_bytes_total, go_gc_cycles_total, go_gc_pause_seconds_total counter Allocation and garbage collection.

One logger (Go’s log/slog) receives every line:

Output Format
Console (stdout; logs/service.log for a Windows service) Text (key=value), or JSON with logging.console_format: json
The log file: logging.file, default logs/eaxScada.log under the work directory; none with logging.file_enabled: false JSON lines, rotated at 10 MB, 5 files kept
The log table (GET /api/logs, POST /api/logs/query) the columnar store in every edition; memory in builds without the embedded database
Syslog (optional) RFC 5424, see below

Every line has time, level, msg, component and node_id. JSON lines also have caller (file:line).

The log file is set in config.yaml or the environment (the environment wins):

Key Environment variable Default
logging.file EAX_LOG_FILE logs/eaxScada.log (relative paths are under the work directory; the Linux packages use /var/lib/eaxware/eaxscada/logs/eaxScada.log)
logging.file_enabled EAX_LOG_FILE_ENABLED true; false writes no log file, the console, the log table and syslog stay
logging.console_format text

A log file that cannot be written stops the server at start, with the path and the fix in the console. See Log file.

  • Every HTTP request gets a correlation id. A client may send its own in X-Request-ID (1 to 64 characters of A-Z a-z 0-9 . _ : -); anything else is replaced. The response always carries X-Request-ID.
  • Every line logged for the request carries request_id. The log table stores it in its trace_id column.
  • The id is passed on to the PLC with the calls made for the request (PLC API over NATS or HTTP, MCP PLC tools) as the X-Request-ID header; the eaxPLC runtime logs under it.
  • A command on NATS uns.command.write takes the sender’s X-Request-ID NATS header, or gets a new id. Its write-policy decision and its log lines carry it.

The 21 CFR Part 11 audit trail stays the only record of a write. A log line about a write says that it happened and points to the audit record by its sequence number (audit_seq). It never repeats the tag’s old and new values, the reason or the signature.

{"time":"2026-10-02T08:31:12.4Z","level":"INFO","caller":"write_policy.go:497","msg":"tag write",
"component":"tag_write","origin":"http","result":"ok","audit_seq":4182,
"request_id":"5f0c2a9e1b7d4c3a8e6f1a2b3c4d5e6f","node_id":"scada-a"}

The logger removes secrets from every line before any output sees it:

  • An attribute whose name means a secret is written as [REDACTED]: password (and any *_password), token (and *_token), secret, ticket, seed, authorization, cookie, api_key, private_key, sig.
  • Free text is scrubbed: messages, error texts and string values. The scrubber removes ?token=, ticket=, password= and similar URL parameters, Bearer and Basic credentials, password: ... / "token": "..." pairs in text or JSON, NATS NKey seeds, JWTs and PEM private keys.

A test (TestRedaction) checks each of these.

Optional, off by default. Each record is sent as one RFC 5424 message:

  • PRI = facility × 8 + severity (error 3, warning 4, info 6, debug 7);
  • APP-NAME = app_name, PROCID = the process id, MSGID = the component;
  • no structured data; MSG is the record as one JSON object, which SIEMs parse without a custom pattern.

UDP sends one message per datagram. TCP and TLS frame each message with its length (RFC 6587 octet counting). Records are queued and sent by one goroutine: a slow or absent collector never blocks eaxScada; what is lost is counted in eaxscada_syslog_dropped_total. A wrong syslog setting does not stop the server: it starts with the local log only and logs the error.

logging:
level: info
console_format: text
syslog: # keep this block last in logging:
enabled: true
network: tls # udp, tcp or tls
address: "siem.plant.local:6514"
facility: local0 # local0..local7, user, daemon, auth, authpriv, or 0-23
app_name: eaxscada
level: warn # the lowest level exported
ca_file: /etc/eaxscada/siem-ca.pem # optional, in addition to the system roots

The System Health workspace (Studio, activity bar) is for Lead_Engineer and Administrator. It reads GET /api/system/health?range=15m|1h|6h|24h|72h every 5 s and shows:

  • this server: HA role and quorum, the message broker, historian lag and queue, alarms by state and priority, security counters (sign-ins, lockouts, e-signatures, write-policy denials, AI tool calls), web and runtime;
  • the driver channels;
  • the connected eaxPLCs: their heartbeats on the broker (plc.<id>.status, .birth, .death), and their health read with the viewer’s own credential: the runtime’s health snapshot (GET /api/metrics/snapshot, schema eaxplc.metrics.v1) over plc.<id>.api, or GET /api/stats on an older runtime;
  • the history.

The alarms block has a store part (alarms.store): what the alarm store refused since the server started. Times are RFC 3339 (UTC), null before the first one; the reasons are the store’s errors, with secrets removed.

Field Meaning
journal_lost Alarm journal events the store refused (in the recent history from memory only).
last_journal_loss, last_journal_loss_reason When the last journal event was lost, and why.
definition_failures Definition saves and deletes the store refused.
shelve_failures Shelve and unshelve writes the store refused.
unshelves_not_saved Alarms shown again whose stored shelve the store still holds (retried in the background).
last_failure, last_failure_reason When the store last refused a definition, shelve or unshelve write, and why.

See Store before live for the system alarms ALM-SYS-ALARM-STORE and ALM-SYS-ALARM-JOURNAL-LOST.

The Audit trail card (in the first section, beside Security) shows the operations audit trail’s state from the answer’s audit_trail (fields):

Row Shows
Audit trail recording (green), down with the cause (rose), read-only (amber, the Free edition with a trail kept from a paid period) or none (Free). For none, the card has this row only.
File The trail’s file, audit.duckdb in the audit folder.
Size / records The file and its write-ahead log; the records in the trail.
Last append When the last record was committed since the server started.
Append p50 / p99 The time an append takes, from its transaction’s start to its commit, over the last 1,000 appends; amber when p99 is above 50 ms.
Encrypted Whether the file is encrypted with the historian’s key.
System requirements met, or the warnings found when the trail opened (removable media, less than 20 GB free, implausible sync times), amber.

The banner at the top of the page adds a line when the trail is down (“the audit trail is down: actions that need an audit record are refused (the Audit trail card has the reason)”), when the trail records with a requirement warning, and while ALM-SYS-AUDIT-DISK is active (“the audit trail’s disk has less than the 10 GB it needs”). See The trail’s state.

System Health, the Audit trail card of a Pro server: Audit trail “recording”, File data\audit\audit.duckdb, Size / records “20 kB / 6”, Last append, Append p50 / p99 “6.30 / 6.77 ms over the last 6 appends”, Encrypted “no”, System requirements “met”; beside it the Security and Web and runtime cards. System Health, the Audit trail card of a Pro server: Audit trail “recording”, File data\audit\audit.duckdb, Size / records “20 kB / 6”, Last append, Append p50 / p99 “6.30 / 6.77 ms over the last 6 appends”, Encrypted “no”, System requirements “met”; beside it the Security and Web and runtime cards.

The Audit trail card of System Health.

ALM-SYS-AUDIT-DISK (Medium, “Audit trail disk low - under 10 GB free”) is active while the audit trail records, or must record (it is down), and the volume of the audit folder (security.audit_data_dir) has less than 10 GB free. The trail keeps recording until the disk refuses a write; from then on every action that must be recorded first is refused (ALM-SYS-AUDIT-DOWN). Free space on that volume, or move the audit folder to a local disk with room (a restart). It clears at 10 GB free. It is never raised in the Free edition. The condition is AuditTrailDiskLow in eaxscada_system_condition.

ALM-SYS-BATCH-RECORD (High, “Batch record not written - batch held or record waiting”) is active while the state, a log entry or an integrity chain entry of a batch could not be written to the recipe store’s folder (data/recipes). Meanwhile:

  • a command that runs a batch (creation, START, RESUME, RESTART, RESET) or acknowledges its prompt is refused while its record cannot be written (503 BATCH_NOT_WRITTEN, refused);
  • PAUSE, HOLD, STOP and ABORT, a hold at runtime stop and a batch’s completion take effect anyway (503 BATCH_NOT_WRITTEN, applied, for a command);
  • a phase step whose record cannot be written holds its batch, and no setpoint is written until a RESTART, which needs its own record written (held);
  • while a chain entry of a batch waits, every forward step and every signature of that batch is refused (503 EBR_NOT_WRITTEN), and its EBR reads not_checked (entries_pending).

What could not be written is kept in memory and written again every few seconds; it is lost if the server stops first. The server log names the batches and the error. Free space on that disk or fix the folder’s permissions; the alarm clears when everything is written. The condition is BatchRecordNotWritten in eaxscada_system_condition. See The batch record is written first.

The Database stores section (after the disks) shows the embedded database engine and every database file of this server, from the answer’s duckdb block. It only displays: nothing in it changes a store.

The line at the top names the engine, the newest file format it opens and the format new files are written in, then a pill: for example “DuckDB v2.0.1 - opens files up to the 2.0 format (999) - new files in the pinned v1.0.0 format” and all stores open (green) or 1 store not open (rose). A build without the embedded database says “This build has no DuckDB engine”.

The grid has one row per store, updated in place: historian, audit, security, alarms, recipes, logs, genealogy, genealogy_state, shiftlog_index and collab_archive, as far as this server’s edition and settings open them.

Column Shows
Store The store’s name.
File The file’s name (never its folder).
Format The file’s storage format as its header names it when it was opened: “v1.0.0 format (64)”, “1.5 format (68)” (an encrypted file), “2.0 format (999)”, or “newer format (N)”; “created at this start (pinned v1.0.0)” for a file the server created now.
Storage version The header’s number (hidden at first: Columns).
State open, reopening, down or refused.
Since When the store entered this state (shown in wide windows).
Reopens How often the store closed and opened its file again since the server started; amber when not 0.
Last reopen When it last did (shown in wide windows).
Last cause For an open store, why it last reopened; for a store not open, its error. Folders and secrets are removed.

A store that is not open carries a marker on its row, and the chip above the grid (“2 stores not open”) shows only those rows. Click the marker for the card: the cause, what it means and what to do.

State What it means What to do
reopening (“writes are held”) A write left the store’s database dead or suspect (a failed commit, a full disk, a write-ahead log or I/O error, out of memory), so the file is being opened again. Writes to the store are held and go in once it is open; the historian’s points wait in the spool. See When a write leaves the database unusable. Usually nothing: it clears within seconds. If it stays, read the server log for this store.
down (“writes are held and retried”) Opening the store again failed. Writes are held and retried with a growing delay (1 s, up to 1 min); nothing reaches the file until it opens. Check the free disk space and the permissions of the data folder, and that no other program holds the file. The server log has the full error.
refused (“written by a newer version”) The file is in a newer format than this eaxScada opens (it opens up to the 2.0 format). It was not opened and is left exactly as it is. Start the newer eaxScada again, or restore the backup taken before the upgrade. Do not delete the file.
refused (“the file is not readable”) The file cannot be read as a database file: empty, cut short, or another kind of file. It was not opened and is left as it is. Restore the file from a backup, or move it aside so a new one is created at the next start.

The security row shows the security store’s live state and its reopens (17 November). While it is reopening or down, every permission check refuses, the Administrator included, sessions are refused and sign-in fails with “sign-in refused: the security store is unavailable; try again in a moment”; as this page needs a session, it is the server log that tells meanwhile, and the row’s reopens and last cause afterwards. See When the security store reopens after a failed write.

The security store is checked before the server starts: if it is refused, the server does not start, and the log says why. The start log has the same information as this section: a “DuckDB engine” line (version, newest format it opens, pinned format of new files) and one “DuckDB store” line per store.

Field of duckdb Meaning
engine_version, engine_source The embedded engine’s version ("" in a build without it) and source id.
engine_max_storage_version, engine_max_storage_format The newest storage format the engine opens (999, “2.0 format (999)”).
pinned_storage_version The format new files are written in (v1.0.0).
stores[] name, file, storage_version (0 for a file created now), storage_format, created, state (open, reopening, down, refused), since, reopens, last_reopen, last_reopen_cause, last_error. Times RFC 3339 (UTC), null before the first one.

For an Administrator only, the answer also has alarm_store_import: what the alarm database’s one-time import of alarm_definitions.json did at this start (status, file, file_sha256, found, imported, refused with each id and reason, message). A Lead_Engineer gets the page without it. See Move alarm definitions to Pro or Enterprise.

GET /api/system/health/ha (Lead_Engineer and Administrator; another edition answers 403 with "status": "edition_required" and the panel shows the edition notice). Read only: nothing in the panel changes the cluster. It shows:

  • This node: node id, role, quorum and the routes it sees, whether it accepts control commands and engineering changes, its promotions and demotions, and its last demotion with the cause and the details.
  • Lease and terms: the lease holder, its term and since when, the highest term seen, the lease store replicas, the primaries reported by the nodes (more than one is marked), and the last takeover: when, which node took the lease from which node, with which term, and why. The reason comes from this node’s own promotion, or from the promoted node’s HA_PROMOTED audit record replicated here. When only the lease is known (this node was down when the promotion was recorded), the line says the reason is not recorded on this node.
  • Replication: the configuration store’s state, the revision read and the documents, the multi-document changes committed, abandoned and still open, the configuration documents refused for an older primary term, the replicated writes refused for an older term (alarms, audit records, batch state, signature tickets and nonces a replaced primary sent), and the state of each replicated store. Every store the server reports has its own row, those not in use first: Sign-in lockouts, View-only stations, Electronic batch records, Active alarms, Signature nonces, Signature tickets, Integration registry, Shift log drafts and Shift handovers. A store in use reads replicated; one not in use reads not used, and the note under the rows gives its reason. The configuration store’s replicas have no row of their own while they are fine: the card’s Configuration store row stands for them. When they are not, a Configuration store replicas row and its reason appear. When the sign-in lockouts store does not answer, its row reads per node: sign-ins still work, and each node uses its own counts and locks until the store answers again. See Lockout parameters.
  • Cluster nodes (grid): each node as heard over the cluster link, its role, the lease holder, when it was last heard (a node not heard for 15 s is not reachable), its configuration revision and lag, whether its configuration is in step, and the changes it has not applied. Problems are marked on the rows.
  • Replicated configuration, per domain on this node (grid): documents, last revision, term, changes not applied or in an open change, and whether the domain is seeded.
  • Lease, role and quorum changes observed (grid): the changes this server has seen since it started watching, each with what happened and Why: the cause of the change when it is known.

The panel refreshes every 5 seconds. The Cluster nodes and per-domain grids, and the backups grid of the Backup panel, update their rows in place on each refresh: filters, sort and scroll stay as they are, and the warning markers are drawn again only when a row’s warnings change.

The causes, as the panel and the audit trail name them:

Promotion cause Panel label Meaning
lease_expired Lease expired The lease holder stopped renewing it (it failed, was cut off or was demoted).
lease_released Lease released The lease holder stepped down and released it (its server was stopping).
lease_missing Lease key missing The lease key was missing for the full wait on a cluster that has terms.
lease_unreadable Lease unreadable The lease key held an unreadable value.
new_cluster New cluster No primary yet: a new cluster.
Demotion cause Panel label Meaning
quorum_lost Quorum lost The node lost cluster quorum.
lease_lost Lease not renewed The lease could not be renewed before its expiry.
term_superseded Newer term elsewhere Another node wrote the lease with a newer term.
shutdown Server stopping The server is stopping (operator or service stop).

In an HA cluster each promotion and demotion of a node is also written to the audit trail, once, the cluster’s first promotion included (cause new_cluster): category HA, action HA_PROMOTED or HA_DEMOTED, the node id as the resource, the user ha-node:<node id>, the old and new role with the term, and the reason <cause>: <details>. The records replicate to every node like any audit record. The log says “Node <id> PROMOTED to PRIMARY (Term N, Lease valid until <time>): <reason>” and “Node <id> demoted to STANDBY (<reason>)”.

A single server (no HA cluster) takes its own lease at every start and releases it at every clean stop. Neither is written to the audit trail: no HA_PROMOTED at start, no HA_DEMOTED at stop. The log says “Node <id> took its lease (no HA cluster, term N): accepts control” at start and “Node <id> released its lease (no HA cluster; <reason>): accepts no control” at stop. Only a lease lost while the server runs (it stops accepting control) is recorded, as HA_DEMOTED with its cause, and taking the lease back after it as HA_PROMOTED. Its HA panel shows this node holding its own lease with its term, and as last takeover the lease taken by this node (source “this node”), with no takeover record from the audit trail.

When the audit trail cannot be read in full. The panel reads the HA_PROMOTED records from the audit trail. When the audit trail’s database cannot be read, it never shows fewer takeovers as if that were all:

  • the Lease and terms card shows a rose Audit trail unreadable pill. It opens the server’s error, what may be missing (the last takeover, and the reasons of the lease and role changes) and the advice: run Verify in Security > Operations audit to find the damaged records;
  • with no takeover found, Last takeover reads “not known: audit trail unreadable” instead of “none observed”. The records read before the damaged ones are still used.
Field of GET /api/system/health/ha Meaning
audit_trail Always present. {"readable": true}, or {"readable": false, "error": "..."} with the reason when the older records cannot be read.
warnings Present when the trail is unreadable: a list of texts (“HA promotion records: the audit trail cannot be read in full …; the last takeover and the reasons of the changes may be missing”).

Monitoring that reads this answer must check audit_trail.readable before trusting an empty or old last_takeover.

GET /api/system/health/backup (Lead_Engineer and Administrator; Starter, Pro and Enterprise). Read only. It shows:

  • whether backups run on this node, and why not (an HA standby leaves them to the primary; a primary without quorum waits until it is regained);
  • whether this node accepts backup settings changes: a standby refuses them with 409, a primary without quorum with 503;
  • the backup alarm, and a restore that applies at the next start;
  • the destination, its free space, the recovery key’s fingerprint and when it was made;
  • one grid row per kind (project archive, server backup, historian): last success, size, verification, next run, last failure and its error. The historian is not in a scheduled backup; the panel says so and shows the last historian restore recorded in the audit trail.

When the audit trail cannot be read in full, the last historian restore is never shown as “none recorded”:

  • the Destination and key card shows Last historian restore with a rose unreadable pill. It opens the server’s error, the newest restore found before the damaged records when there is one (“a newer one may be missing”), and the advice to run Verify in Security > Operations audit;
  • the historian row of the backups grid is marked Restore record unreadable; its marker opens the same explanation.
Field of GET /api/system/health/backup Meaning
historian.last_restore The newest HISTORIAN_RESTORED or HISTORIAN_RANGE_REPLACED record (at, action, by, …), or empty when none was found.
historian.last_restore_readable true, or false when older audit records cannot be read: an empty last_restore then does not mean “none”, and a restore may be missing.
historian.last_restore_error Present when last_restore_readable is false: the reason.
warnings Present when the restore records cannot be read: a list of texts (“Last historian restore: the audit trail cannot be read in full …; a restore may be missing here”).

Before this release, an unreadable trail gave “none recorded”.

The warnings of the HA and Backup answers show as one compact chip above the cards (for example 1 warning), rose when the audit trail is unreadable. Clicking it opens the texts below it; there is no banner. The details you open, and the keyboard focus, stay as they are when the panel refreshes (every 5 seconds).

On a node that is part of an HA cluster, ALM-SYS-HA-QUORUM (High) trips when the node has reached fewer of the other cluster servers than its quorum needs for at least 10 seconds. A brief route flap, or the few seconds the routes take after a start, does not trip it. As the primary the node has stepped down and control commands are refused; as a standby it cannot take over. Check the network links between the servers and the witness. The alarm clears when quorum is back. A single server never raises it. The condition is HAQuorumLost in eaxscada_system_condition.

On the HA primary, ALM-SYS-HA-AUDIT-UNCONFIRMED (Medium) trips when a batch step went on without another node confirming that it holds the step’s audit record, although another SCADA node was seen running in the last 65 s (its audit catch-up request, or an audit record it published). That node runs but does not answer: usually it runs an earlier build. The step went on as on a server without a standby, and the primary’s log has the warning HA audit confirmation: a SCADA node seen running does not answer with the peer and the counters (unanswered, unasked, confirmed, unconfirmed). If the primary fails now, those steps’ entries can read not_anchored on the new primary until it comes back. Bring both nodes to the same build. The alarm clears with the next batch step another node confirms, or when the server is no longer the primary. A standby stopped on purpose less than 65 s before a step can raise it too. The condition is HAAuditUnconfirmed in eaxscada_system_condition. Redundant pairs

Every metrics.history_interval (10 s) the server writes its key figures to read-only tags under System/Health/<node>/:

Series Unit
HA/Primary, HA/Quorum 0/1
Broker/Connections, Broker/MsgRate count, msg/s
Tags/UpdateRate /s
Drivers/ChannelsUp, Drivers/ChannelsDown, Drivers/ErrorRate count, /s
Alarms/Active, Alarms/Unacked, Alarms/Shelved, Alarms/Activations count (activations per interval)
Historian/IngestRate, Historian/Queue, Historian/LagSeconds /s, points, s
Security/LoginFailures, Security/PolicyDenials, Security/ESignatures per interval
Web/RequestRate, Web/Errors, Web/WSClients /s, 5xx per interval, count
Runtime/HeapMB, Runtime/Goroutines MB, count
PLC/<id>/Online, PLC/<id>/CycleRate 0/1, cycles/s (from the heartbeat)
  • The tags go to the historian like any tag (the columnar store in every edition; CSV partitions in builds without the embedded database). They can be trended in Historian Trends.
  • System/Health/ is reserved: only the system writes or claims it; an operator, a script, a driver mapping or a command is refused.
  • Points older than metrics.history_retention (72 h) are deleted every hour, for these tags only.
  • <node> is the HA node id (-node-id, ha.node_id, or node-<tier>-<nats port>).

Alarm counts. Alarms/Active, Alarms/Unacked and Alarms/Shelved come from the eaxscada_alarms gauges, so every priority name is counted:

  • Alarms/Active is every alarm not in NORMAL, shelved alarms included. It matches the total of GET /api/alarms/counts.
  • Alarms/Unacked counts the alarms in UNACK_ALARM and RTN_UNACK.
  • Alarms/Shelved says how many of the active alarms are shelved.
  • System Health counts the whole server. GET /api/alarms/counts counts what its caller may see. The two are equal for a user who may read every alarm.
  • Before 21 November, an alarm with a priority name other than the five (for example URGENT, a lower-case name or a site’s own name) was missing from these counts.
Key Env Default Meaning
metrics.enabled true Serve /metrics (404 when false).
metrics.token_file EAX_METRICS_TOKEN_FILE File holding the read-only scrape token (at least 24 characters).
metrics.allow_localhost false Serve /metrics without credentials to loopback callers with no proxy header.
metrics.history_interval 10s System Health sampling; 0 turns the history off.
metrics.history_retention 72h How long the history is kept.
logging.level EAX_LOG_LEVEL info debug, info, warn or error.
logging.console_format text text or json (the file is always JSON).
logging.syslog.* off See Syslog export.
nats.http_host NATS_HTTP_HOST 127.0.0.1 Interface of the broker’s monitoring port.