The NEX dashboard
By Roberto Arato of aratoingegneria.it
The dashboard shows the state of the cluster in a browser: nodes, load,
memory, space, storage, processes, jobs, devices and logs. It is
read-only: looking changes nothing. To act, you use the commands (nex,
nexsh, nexctl).
Every node serves it, and the data is always that of the whole cluster: if a node is switched off, open the one of another node.
https://node-a:7443 (or node-b, nex-stor, ...)
Contents
- First time: preparing the PC
- Logging in and out
- The header
- Overview
- Nodes
- History
- Processes
- Jobs
- Storage
- Devices
- Logs
- When something is wrong
- For the administrator
1. First time: preparing the PC
The dashboard uses HTTPS with the cluster's certificates, signed by a CA (certificate authority) of the cluster itself, not by a public authority. The browser accepts them after two steps, to be done only once per PC.
1.1 Getting the cluster CA
It is the file /etc/nex/pki/ca.crt, the same on all nodes. It is not a
secret: it contains only the public part. From the PC, with ssh access to a
node:
scp node-a:/etc/nex/pki/ca.crt nex-ca.crt
or ask the administrator for it.
1.2 Installing it
Windows (Edge, Chrome), from the Command Prompt or PowerShell, for your user only:
certutil -user -addstore Root nex-ca.crt
Windows asks for confirmation: answer Yes. Alternatively: double-click
nex-ca.crt → Install Certificate → Current User → Place all
certificates in the following store → Trusted Root Certification
Authorities → Finish.
Firefox has its own store: Settings → Privacy & Security →
Certificates → View Certificates → Authorities → Import → choose
nex-ca.crt → tick Trust this CA to identify websites.
Linux (Debian, Ubuntu):
sudo cp nex-ca.crt /usr/local/share/ca-certificates/nex-ca.crt
sudo update-ca-certificates
Close and reopen the browser.
1.3 Node names
Each node's certificate carries its name (node-a), not the IP
address: https://10.20.0.10:7443 gives a certificate error,
https://node-a:7443 does not. If the network has no DNS with the node
names, add them to the PC's hosts file.
Windows: open Notepad as administrator, then
C:\Windows\System32\drivers\etc\hosts, and add at the end:
10.20.0.10 node-a
10.20.0.11 node-b
10.20.0.12 nex-stor
Linux: the same lines in /etc/hosts (with sudo).
Test: ping node-a must answer from the right address.
2. Logging in and out


Open https://node-a:7443 (or another node) and log in with the name and
password of your cluster user: the same as for ssh and nex passwd.
Cluster users and root can log in; a node's local users cannot.
What you see depends on who you are, as with the commands:
| Who | Processes and jobs | Logs |
|---|---|---|
| cluster user | only yours | only yours (your programs and your jobs) |
| root | everyone's | all |
Nodes, space, storage and devices are visible to everyone.
Possible messages
| Message | What it means |
|---|---|
| invalid user or password | wrong name or password, locked user, or a user who is not a cluster user. The message is deliberately the same in all cases |
| too many attempts: try again in a few minutes | 5 wrong attempts in 5 minutes from the same PC: wait 5 minutes |
| session expired | you were inactive for more than 30 minutes, or 12 hours have passed since login: log in again |
Logging out: Log out at the top right. Closing the browser is not enough to close the session on the server: it expires by itself after 30 minutes without use.
The session is valid for that node: opening the dashboard of another node, you log in again.
3. The header
At the top there is always the same bar:
- NEX and a pill with the state of NEXFS, the distributed filesystem of
/nex: green NEXFS ok, yellow NEXFS warning (warnings, the cluster works), red NEXFS error (something is wrong: look at the Storage tab), grey NEXFS ? (state not available); - the tabs: Overview, Nodes, History, Processes, Jobs, Services, Storage, Devices, Logs;
- on the right who you are (with (administrator) if you are root), on which node the dashboard is open, and Log out.
Below the header, in small print, updated at 09:26:38: the open tab refreshes by itself every 5 seconds (except Logs, see below). If some node does not respond, in place of the time you see in red not responding: ... with the node's name and the reason.
At the bottom of the page: versions of nex-dashd and of the library,
read-only, refresh rate.
4. Overview


The start page answers "how is the cluster doing?".
Tiles at the top
| Tile | Meaning |
|---|---|
| Reachable nodes | nodes that respond out of those known; below, how many have the compute role |
| CPU | total CPUs of the nodes that respond |
| Free memory | memory available in the whole cluster, out of the total |
| Running jobs | programs started with nex run that are running |
| Shared filesystem | free space on /nex (NEXFS), with used and total |
| NEXFS | data nodes that respond out of the total; below, the meta nodes and the number of copies |
| Edition | Free, Trial, Base or Enterprise; below, the nodes in use out of the limit (for example "3 of 4 nodes"), the expiry of the license or of the trial, or "30-day trial available" (see nex license) |
One tile per node, with the role at the top right:
- compute: runs programs and has
/nexmounted; - compute, detached (yellow): has the role but
/nexis not mounted (for example after anexctl leave): it receives no jobs; - storage: only disks for NEXFS;
- red with the reason: the node does not respond.
The bars show CPU, memory, /nex and system disk. The colour warns when the
limit is getting close: blue normal, yellow above 75%, red above
90%. Below: load average (1, 5 and 15 minutes), how long the node has been
up, running jobs.
5. Nodes


The same data in a table, one per row, handy for comparison:
| Column | Meaning |
|---|---|
| State | ok or the reason why it does not respond |
| Role | compute or storage |
| /nex | mounted, not mounted, - for storage-only nodes |
| CPU | average CPU usage and number of CPUs |
| Load | load average of the last minute (above the number of CPUs the node is saturated) |
| Memory | used / total |
| Jobs | nex run programs running |
| Up for | time since the last boot |
| Response | response time of the node's agent (high = node or network under strain) |
6. History


The other tabs say how the cluster is now; History says how it was. Each node saves one measurement per minute and the cluster keeps them for 30 days.
- Range: the menu at the top chooses last hour, last 6 hours (the initial choice), last 24 hours, last 7 days or last 30 days. Next to it, the start and end time and how often there is a point: each point is the average of the measurements in that stretch of time.
- One tile per node, with four charts: CPU and memory (as a percentage, fixed scale from 0 to 100), network ↓ and network ↑ (bytes per second, scale up to the maximum of the period). Above each chart, minimum, average and maximum.
- A gap in the chart means that in that period the node measured nothing: it was off, or the agent was restarting.
- Refresh: the tab reloads once a minute, when the new measurement arrives, and immediately when you change the range.
The same data: nex history from the terminal, the History page
of NEX Monitor on the desktop, GET /api/v1/metrics for scripts
(api.md).
7. Processes


The processes of all nodes together, like nex ps (a user sees their
own, root sees all).
- Filter: type part of the command, user or node (for example
python,mario,node-b): the table narrows as you type. - all nodes: restricts to one node.
- kernel threads: hidden by default (there are hundreds and they are nobody's programs); tick to see them.
- Sorting: click on a column title; a second click reverses the order. On opening they are sorted by CPU, the heaviest at the top.
- Command: long commands are cut with ...; hover the mouse over them to read them in full.
Columns: node, PID, user, state (R running, S waiting, D waiting for disk or network, Z terminated and not reaped), CPU %, resident memory, threads, how long it has been running, command. At most 1000 rows are shown: use the filter to find what you are looking for.
8. Jobs


Detached jobs (nex run -d): programs started so that they keep going
even when the terminal is closed.
| State | Meaning | What to do |
|---|---|---|
| running | it is running | nex attach NODE:JOB to see it, nex stop to stop it |
| finished N | it ended with code N (0 = all good) | nex attach shows its output |
| lost | the job's keeper is gone (node restarted abruptly) | start it again |
The Job column is the identifier to use with nex attach and
nex stop (for example node-b:dd3423).
Queue (nex submit): jobs waiting for room in the cluster. At the top
those still alive (waiting, started), then the others
from the most recent. Node says where they started and with which
job (node-b:871363). A waiting entry is cancelled with nex cancel.
Services


The Services tab (from version 1.2.0 of nex-dashd) shows the
programs kept running by nex service (servizi.md).
- Services: name, user, healthy instances out of those requested, revision and command. The pill is green if all instances are healthy, yellow if some are, red if none. Hovering over the name shows the description.
- Instances: one row per copy (
name@0,name@1...), with these columns:- state: running, starting, waiting to restart, moving during a drain, silent node...;
- node (with from NODE during a move) and job, to use with
nex attach; - how long it has been up and how many restarts it has made;
- address
node:port; - last message, for example
GET /ok.txt: 404orexited with code 1. An instance still on the old revision, during an update, carries its revision in the message.
- At the bottom: the leader node and the compute nodes, with those that are silent or being drained.
As in the other tabs, everyone sees their own services and the administrator sees them all. Services are read from the shared filesystem, so the tab works on the dashboard of compute nodes. On a storage-only node it says that the shared filesystem is not there.
9. Storage


The state of NEXFS, the distributed filesystem that forms /nex: the
meta nodes hold the metadata (names, folders, permissions), the data
nodes hold the file blocks, each in several copies and always encrypted.
The data comes from nexfsctl health and nexfsctl node list.
| Tile | Meaning |
|---|---|
| Health | ok, warning or error, with the time of the data (refreshed at most every 15 s) |
| Meta nodes | meta nodes that respond out of the total; below, majority present with the number of the node that leads (the leader), or no majority |
| Data nodes | data nodes that respond out of the total; below, how many copies new blocks get |
| Blocks | the file blocks: all with their copies, or how many have missing copies. After a failure the number rises and goes back to zero while NEXFS remakes the copies |
| Space | space used on the data nodes' disks, out of the total (every file counts once per copy) |
| Rebuild | appears only while NEXFS is remaking or moving copies (after a failure, during a drain): copies on the move and maximum speed |
| I/O | reads and writes in progress |
Storage warnings: each reason with its severity (warning or error), the code and the explanation; no warnings when everything is fine.
NEXFS metadata nodes: one row per metadata node, with its role (leader, follower or witness), whether it votes (a node added a moment ago or in maintenance does not), its NEXFS version and the highest state level it can apply. The State level tile says the level in use; when every metadata node knows a higher one it says so, with the command to raise it.
NEXFS data nodes: one row per data node (name and number), with the state (in-service working, maintenance stopped for maintenance, draining being drained, drained drained, quarantine waiting for a decision, not responding), the space used and the free space.
Storage over time: space used, reads and writes per second, blocks with
missing copies and copies to rebuild, from the last hour to the last 30
days. The leader of the cluster services takes one sample per minute from
nexfsctl health and keeps it in the control store for 30 days
(nex history --what storage shows the same in the terminal).
Local disks of the nodes: the system disk of each node, with the usage bar (same colours as the overview).

10. Devices
At the top are the printers of the cluster (see stampa.md): name, description and location, the state (ready, printing, stopped), the printer's alerts (paper out, toner low), who may print and how many jobs are waiting. Below, the jobs in the queue: everyone sees their own, root sees all. Example:
| Printer | Description | Location | State | Alerts | Who can print | Jobs |
|---|---|---|---|---|---|---|
office |
Office laser | Corridor | ready | everyone | 0 | |
plotter |
A0 plotter | Drawing room | printing | media-low | @design | 2 |
Below, the scanners of the cluster: network ones, USB ones of a node, and the nodes that share their SANE scanners.
Then the serial ports and other devices that the nodes export to the cluster
(/devnodes, see utente.md). Example:
| Device | Node | State | You can use it |
|---|---|---|---|
/devnodes/node-b/dev/ttyUSB0 |
node-b | ready | yes |
/devnodes/node-b/dev/plc |
node-b | missing | no |
- ready: the device is there; you use it from any node with that path;
- missing: the node exports it but right now it is not there (USB converter unplugged);
- You can use it: according to the rules of the node that exports it.
If the table is empty, no node exports devices.
Below, the cluster ports: every program listening on nex:PORT (the
common address 127.77.0.1, see utente.md), with the node that
holds it and the user's uid. From any node it is reached with the same
address; on the command line it is nex ss --cluster.
11. Logs


The system messages of all nodes, merged by time, most recent at the
top (like nex logs). A user sees the messages of their own programs and
jobs, root sees all.
This tab does not refresh by itself (the lines would scroll while you read them): choose the filters and press Search.
| Filter | Example |
|---|---|
| node | only node-b |
| unit | nexagentd, ssh, nex-job-dd3423 (the name of a detached job) |
| text to search | error, a file name, a user (searches the last 24 hours) |
| priority | all, info and above, warnings and above, errors |
Warnings are in yellow, errors in red. The unit name is cut if long: the mouse shows it in full. The last 300 entries are shown.
12. When something is wrong
| Problem | Cause | Remedy |
|---|---|---|
| The browser says "connection not secure" / "invalid certificate" | the cluster CA is not installed, or you used the IP address | 1.2, and open https://node-a:7443 with the name |
| "Can't reach this site" | name not resolved, node off, port 7443 closed by a firewall | ping node-a; try another node; ask the administrator |
| "invalid user or password" with the right password | user not in the cluster, or locked | ask the administrator (nexctl users) |
| "too many attempts" | 5 errors in 5 minutes from the same PC | wait 5 minutes |
| It goes back to the login page by itself | 30 minutes without use, or 12 hours since login | log in again |
| In red "not responding: node-b" | that node is off or unreachable | the data of the other nodes stays correct |
| "NEXFS ?" grey, Storage "not available" | NEXFS does not respond from the dashboard's node | try the dashboard of another node; tell the administrator |
| I can't see a colleague's processes | this is intended: you only see your own | the administrator (root) sees everything |
13. For the administrator
The service. On every node nex-dashd runs (unit nex-dashd.service,
enabled by nex-setup), as root, with the rest of the system read-only. It
listens on all interfaces, port 7443, with the node's certificate
(/etc/nex/pki/node.crt).
systemctl status nex-dashd
journalctl -u nex-dashd -n 50 # successful and refused logins, with the address
Different port or address, with a drop-in (it survives upgrades):
sudo systemctl edit nex-dashd
[Service]
ExecStart=
ExecStart=/usr/sbin/nex-dashd --listen 10.20.0.10 --port 8443
Firewall: open the port (7443/tcp) only towards the users' network.
Who gets in: root and the users listed in /var/lib/nex/cluster-users
(written by nexctl users apply), with the password from the node's shadow
file. A locked user (nexctl users lock) does not get in.
Security, in short: password checked in the same time even for
non-existent names; 5 wrong attempts per address in 5 minutes, then a wait;
session with a random 256-bit identifier in an HttpOnly, Secure,
SameSite=Strict cookie, expiring after 30 minutes of inactivity and in any
case after 12 hours; no action possible from the page; the storage state is
read with nexfsctl and the node's certificate, whose key never leaves the
node. Details in nex-dashd(8).
More nodes, more dashboards: each has its own sessions. A single name
(for example dashboard.cluster) can be published in front of several nodes
only with a certificate carrying that name: today the nodes' certificates
carry only the node's name.