# System status

:::tip
Menu → Administration → System status

:::

The **System status** screen answers the question "is everything running?". On one page it shows the state of all parts of the OmniMES installation: the API, the databases, the background task queue, data collection from machines (the stream and the MQTT broker), email, the disk, the backup, the licence, the MCP server and Redash - together with open **system alarms**. The screen refreshes itself every 30 seconds.

## Access

The screen is available to the **Administrators** group and the superuser. The administrator grants it to other groups in [**Access permissions**](https://docs.omnimes.com/doc/administration-IPR8voQzB6). The requirement applies in every server-side permission mode, because the screen shows service addresses, database sizes and error details. The menu is stored at sign-in - the new item appears after signing in again.

## Tiles

Each tile has a rating: **OK**, **Warning**, **Error** or **No data** (the state cannot be read), a short description and details. Above the tiles you see the overall rating (the worst of the tiles), the number of tiles in each state and the time of the check.

| Tile | What it shows | When a warning or an error |
|------|---------------|----------------------------|
| **API** | server time and time zone, Python and Django versions | \-                         |
| **Database** | PostgreSQL and TimescaleDB versions, connections against the limit, database sizes | warning: at least 80% of the connection limit |
| **Task queue** | waiting and running tasks, the oldest waiting, results of the last 24 h, late schedules | error: schedules late by over 10 min (the task cluster is not running); warning: a task waits over 10 min or task errors within 24 h |
| **Stream (data collection)** | heartbeat of the data collection service, last message from machines, broker connection, database writes, disk buffer, Sparkplug nodes offline | error: heartbeat older than 2 min or the stream stopped; warning: no broker connection, data waiting on disk, nodes offline |
| **MQTT broker** | broker address and response time, whether the stream is connected | error: the broker does not respond; warning: the port responds but the stream is not connected |
| **Email** | server, emails and errors of the last 24 h, messages waiting for a retry, the last error | error: sending errors in the last hour; warning: email not configured, errors within 24 h, a message waits for a retry over 30 min |
| **Disk** | usage of the OmniMES server disks (file directory, API directory, system disk) | warning from 80%, error from 90% |
| **Backup** | last successful backup, last attempt, size, location | error: the last backup failed or no successful backup in the last day; no data: backups do not record their state |
| **License** | end date, days left, machine and signal limits | warning: 30 days left or fewer, error: 7 days or fewer |
| **MCP server**, **Redash** | address and response time | error: the service does not respond; no data: no address in the settings |
| **Version** | OmniMES and component versions | \-                         |

The **Check now** button refreshes the state at once. The **Refresh every 30 s** switch turns automatic refreshing off (the browser remembers the setting).


:::info
The OmniMES API has no access to Docker, so it cannot see the containers directly. The services' own responses show that a container works: the stream heartbeat, the MCP server `/health`, Redash `/ping`, the broker port, the database connection and the task queue schedule.

:::

## System alarms

Below the tiles there is a list of open **system alarms** - alarms from rules with the **System** scope (**Alarms** screen → Rules). Click a row to open the alarm details. The screen shows the state at this moment; to get a notification (bell, email, Teams, Slack), create a system rule:

| Rule type | When the alarm is raised |
|-----------|--------------------------|
| **No data from the stream** | the stream heartbeat is older than the given time (120 s by default), the stream has no broker connection, cannot write to the database or has had no messages for longer than the given time |
| **Low disk space** | disk usage above the threshold (e.g. 80%); optionally the database size above the given limit |
| **Backup failed or overdue** | the last backup failed or the last successful one is older than the given time (26 h by default) |
| **Task queue clogged** | a task waits in the queue longer than the given time, too many tasks are waiting or a schedule is late |
| **Email sending errors** | at least the given number of failed emails within the time window |
| **Service unavailable** | the MCP server, Redash or the MQTT broker does not respond |


:::warning
Alarm rules are checked by the background task queue. When the queue stops completely, no alarm - including "Task queue clogged" - is sent. The error is then visible on the **Task queue** tile; the installation administrator can also run the system rules from outside with `python manage.pyc alarmy_systemowe` (e.g. from the server scheduler).

:::

## Backup - how the screen knows its state

After each attempt the backup mechanism writes a state file in the OmniMES file directory (`media/system/kopia_zapasowa.json`) - for example with `python manage.pyc stan_kopii --wynik ok` or `--wynik blad --opis "…"`. Until the backup mechanism records its state, the tile shows **No data**.

---

**Documents**

- [OmniPlatform](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omniplatform-7z9SIECi68)
- [Omnienergy](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnienergy-56aRDgnYFZ)
- [Omnimes](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnimes-eGDa0U5cyr)
- [FAQ](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/faq-IFQjCNYt1Q)
- [Cybersecurity & Compliance (CRA)](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/cybersecurity-compliance-cra-pPJBcC6sBf)