InfraDB documentation
How InfraDB works, what it needs, and how to install, connect and run it. Everything here describes InfraDB 0.14.
On this page
What InfraDB is
InfraDB is a self-hosted NOC monitoring platform: inventory, polling, alarms, graphs and reports for networks, servers and the services on them. It is one Go binary (the mc command), one PostgreSQL + TimescaleDB database and one React UI, on amd64 or arm64 Linux. It is built for network operations teams, and replaces the poller and the alarm console while keeping NetBox as the source of truth.
- Alarm console: live and deduplicated, with acknowledge, suppress, ticket and notes, the full event history and a wallboard mode. Sources: the built-in poller, Nagios, Prometheus Alertmanager and any webhook.
- Hosts and interfaces: SNMP and ICMP polling, graphs from one hour to five years (several interfaces at once), live status, Ping, Traceroute and SNMP check, and hardware health from vendor MIBs and from BMCs over Redfish. Application metrics from Prometheus exporters or an existing Prometheus server.
- Reports: availability and SLA, 95th-percentile utilisation, alarm MTTA and MTTR, and capacity forecasts, all exportable as CSV.
- Inventory with a full audit trail; sign-in with local accounts, OpenID Connect or LDAP, and group-based roles.
- AI: explainable anomaly detection (AI Insights) and a read-only assistant (Ask AI) that answers from live data through a model API you choose.
- Imports from what was there before: NetBox, a Nagios or Checkmk site over Livestatus, and MRTG's RRD history.
- Alarm e-mails through your SMTP relay, with preview and redirect modes for a safe roll-out.
mc, the server's admin tool is mcctl, backups run as mc-backup, and settings are MC_* environment variables.Requirements
| Item | Requirement |
|---|---|
| Server OS | RHEL, Rocky Linux or AlmaLinux 9.5+ or 10 with podman 5 (quadlets); Debian 12 or 13, or Ubuntu 22.04 or 24.04, with Docker CE and its compose plugin |
| CPU | amd64 or arm64. Intel and AMD, AWS Graviton, Ampere, NVIDIA Grace and 64-bit Raspberry Pi 4 or 5 run the same image |
| Memory | 4 GB; 8 GB or more for a few thousand hosts |
| Disk | 20 GB or more free |
| Time | NTP |
| Database | PostgreSQL 18 with TimescaleDB 2.30 (timescale/timescaledb:2.30.1-pg18). It needs the Timescale License build, for compression and rollup policies |
mc command | Linux and macOS, amd64 and arm64. On macOS it runs mc setup and the compose quick start only |
| Poll worker VM | 2 vCPU, 2 GB RAM, 20 GB disk; RHEL, Rocky or AlmaLinux 8–10, Debian 12–13 or Ubuntu 22.04/24.04, x86_64 or aarch64 |
Network
| Port | Direction | For |
|---|---|---|
| 80, 443 TCP | Inbound to the server | The reverse proxy (nginx or Caddy), the only network listener |
| 127.0.0.1:18080 | Loopback | InfraDB itself, behind the proxy |
| 127.0.0.1:8080 | Loopback, try mode | The compose quick start (or the next free port, 8080–8179) |
| 161 UDP, ICMP | Collector or worker to devices | SNMP polling and ping |
| 22 TCP | Collector to poll workers | SSH |
| 6557 TCP | Collector to Nagios or Checkmk | Livestatus |
| HTTPS | Collector to BMCs | Redfish |
| 8765 TCP | Collector to Cumulus switches | NVUE REST API |
| 9400 TCP | Collector to GPU nodes | NVIDIA dcgm-exporter |
Offline and air-gapped sites
InfraDB can be set up without internet access: the bootstrap reads a local directory (MC_DOWNLOAD_BASE=/path), the server installs from an image archive (--bundle), and upgrades take a bundle too. AI Insights runs locally, Ask AI can use a local vLLM or Ollama, and TLS can use an internal ACME CA. Bring the TimescaleDB image (pull it or podman save it elsewhere) and the OS packages and container engine in separately: they are not in the bundle.
Architecture
Everything ships as one container image used for every role: distroless, static and non-root, with a multi-arch manifest for amd64 and arm64. Installs run podman quadlets (RHEL family) or Docker compose (Debian, Ubuntu).
mc serve- The REST API, the live stream (server-sent events) and the UI, plus NetBox sync and reports. Stateless, so it scales horizontally.
mc collect- The poller: SNMP v1/v2c/v3 and ICMP, counters turned into rates, alarm rules and AI Insights. Several collectors can share the estate, each with its own host filter.
mc all- Both in one process, for small installs. This is what the installers run.
- Database
- PostgreSQL 18 + TimescaleDB 2.30: inventory, alarms, audit, and time series in hypertables with rollups. Live status lives in a separate latest-value table, so dashboards never scan time series.
- Reverse proxy
- nginx or Caddy terminates TLS on 443; the app listens on 127.0.0.1 only.
Writes are batched and idempotent, the write queue is bounded (500,000 by default), advisory locks keep jobs single, and shutdown is graceful. The collector polls every 60 seconds by default (MC_COLLECTOR_INTERVAL), with up to 128 polls at once (MC_COLLECTOR_WORKERS).
Getting access
InfraDB is proprietary software from KazLabs Pte Ltd, used under a written agreement, which can allow you to run it on your own infrastructure. There is no public download: the release images and the installer kit are private, and we give you access to them when we start working together.
Open-source components keep their own licences. They are listed in THIRD_PARTY_NOTICES, which ships with every build.
Talk to us about your network, or take the tour first.
The mc setup wizard
mc setup installs InfraDB on one machine. It is a terminal wizard that needs no configuration and no database: it is what creates them. It does one of two things:
| Mode | For | What it runs |
|---|---|---|
| Try it on this machine | A laptop, a lab or an evaluation; macOS or Linux, your own user | The compose quick start, as a project of its own, on 127.0.0.1 |
| Install a server | One Linux server, as root | The server installer, with your answers as its flags |
The screens are: welcome, host checks, mode, the mode's questions, review, apply with live progress, and done. Nothing changes before the review. The host checks look at the system and architecture, root or not, the container runtime and its compose tool, the Podman machine on macOS, systemd, the ports (and 80 and 443 for a server), whether the container subnet is free, free disk, SELinux and firewalld on the RHEL family, and any proxy in the environment (a password in it is hidden).
Try mode asks for a project name, a port (8080, or the first free one after it) and your organisation, and picks a free /24 for its network. It listens on 127.0.0.1 only, and several projects can run side by side.
mc setup # the wizard
mc setup -yes -project lab -port 18080 # try mode, unattended
sudo mc setup -dry-run -mode server -name infradb.example.net # what a server install would do
sudo mc setup -yes -mode server -name infradb.example.net \
-org "Example Networks" -tls acme -acme-email [email protected]
mc setup -demo # every screen with sample data; reads nothingHow it runs
- In a colour terminal of at least 70 × 19 cells, as the full-screen wizard.
- With
NO_COLOR, or without a terminal, each screen prints once as plain text and the questions come one per line. Typed secrets never echo. -yesasks nothing: values come from the flags, then a preset, then the install being reconfigured, then defaults. Without-modeit is try mode.-dry-runprints every action and changes nothing.-demoshows every screen with sample data, and reads nothing from the machine.
Options
| Group | Flags |
|---|---|
| General | -yes -dry-run -demo -reconfigure -preset FILE -kit DIR -mode try|server |
| Try mode | -project -port -subnet -org |
| Server | -name -org -timezone -holiday-region -admin-user |
| TLS | -tls self-signed|byo|acme|external -cert -key -acme-email -acme-ca -trusted-proxies |
| Sign-in | -auth local|oidc|ldap -oidc-preset -oidc-slug -oidc-issuer -oidc-client-id -oidc-client-secret-file -oidc-cloud -oidc-allowed-domains -ldap-preset -ldap-domain -ldap-url -ldap-bind-dn -ldap-bind-password-file |
| Network and backups | -http-proxy -no-proxy -backup-dir |
| Runtime and image | -runtime auto|podman|docker -image -registry-user -registry-token-file |
| Collector | -collector-mode snmp|simulate |
Running mc setup again on a machine with an install updates it and keeps the configuration: a server goes through mcctl upgrade, and a try-mode project checks the new release against its database before switching. -reconfigure runs the wizard again, starting from the install's settings.
Server installer
On a server, as root, the installer from the installer kit sets up podman quadlets (RHEL, Rocky, AlmaLinux 9.5+ and 10) or Docker compose (Debian, Ubuntu), with TLS, backups and mcctl. mc setup's server mode runs the same script with your answers.
deploy/install/install.sh --name infradb.example.net --org "Example Networks" \
--timezone Europe/Amsterdam \
--registry-user USER --registry-token-file /root/registry-tokenIt works through twelve steps, from its checks to mc doctor. Before changing anything it refuses a container subnet already in use, a podman older than 5, and single sign-on or a directory without its secret or service account.
| Option | What it sets |
|---|---|
--name --org --timezone --holiday-region --admin-user | Where users reach it, whose it is, its time zone and the first administrator |
--runtime | podman or Docker |
--image | --bundle | --source | Where the image comes from: a registry, an image archive, or a source checkout |
--registry --version --registry-user --registry-token-file | The release registry and its sign-in (the token is read from a file) |
--db-image | The TimescaleDB image |
--tls --cert --key --acme-email --acme-ca --acme-ca-root --trusted-proxies --ca | How the server gets its certificate (see TLS) |
--auth local|oidc|ldap | Sign-in, with the OpenID Connect or LDAP options |
--http-proxy --http-proxy-file --no-proxy | The outbound proxy |
--subnet --port --backup-dir --collector-mode | Container subnet, app port, backup folder, real or simulated polling |
--yes --dry-run | No questions; or print every step and change nothing |
First sign-in and day to day
There are no default passwords: the stack will not start without generated secrets, and the first administrator must choose a new password at the first sign-in. Day to day, the server is run with mcctl:
mcctl status | logs | run | doctor | stop | start | restart | upgrade | export-secrets | uninstallmc doctor checks an installation read-only: the database, TimescaleDB, migrations, the clock, ping, certificates and the proxy.
Upgrades
mcctl upgrade X.Y.Z # a release from your registry
mcctl upgrade --bundle FILE # an image archive, for offline sites
mcctl upgrade --image REF
mcctl upgrade --source DIR # from a source checkout- Checks that the new image accepts the database (
mc migrate -check); downgrades are refused. - Takes a pre-upgrade backup.
- Switches to the new image.
- Verifies the running version.
There are no automatic updates, by design. To roll back, run the previous image with the pre-upgrade backup. TimescaleDB minor upgrades use mcctl upgrade-db; PostgreSQL major versions move by dump and restore.
mcctl upgrade-db has not yet been run against a newer TimescaleDB image.Backups and restore
mc-backup takes physical base backups (pg_basebackup, WAL included) with a configuration archive, a MANIFEST and SHA256SUMS, every night at about 01:30. It keeps 7 daily, 5 weekly, 6 monthly and 3 pre-upgrade sets.
- Secrets are never in a backup set.
mcctl export-secretswrites an encrypted copy, with a passphrase or age. - A backup folder can be required to be a network share, and a post-backup hook can copy sets elsewhere (rsync and restic examples are included).
- A restore keeps the current data aside first. Logical dumps move between architectures or PostgreSQL major versions.
- System shows the backup history and a Back up now button, and InfraDB raises a self-alarm when there has been no backup for 36 hours.
TLS and the reverse proxy
InfraDB speaks HTTP on 127.0.0.1, and TLS is handled by the reverse proxy, with TLS 1.2 and 1.3 and HTTP/2. Four modes:
- self-signed
- nginx with a generated certificate (397 days, EC P-256).
- byo
- Bring your own certificate and key.
- acme
- Caddy obtains certificates over ACME: Let's Encrypt, or an internal ACME CA such as step-ca.
- external
- An external load balancer terminates TLS.
Query strings, which can carry tokens and sign-in codes, never reach the access logs.
Polling, SNMP and vendor profiles
InfraDB polls with SNMP v1, v2c and v3, and ICMP. SNMPv3 authentication: MD5, SHA, SHA-224, SHA-256, SHA-384 and SHA-512; privacy: DES, AES, AES-192 and AES-256. Vendor spellings of these names are accepted.
Hardware and platform health come from data-driven vendor profiles: Cisco IOS, IOS-XE and NX-OS; Juniper Junos; Huawei VRP, firewalls, OLTs, OptiX RTN and FusionServer iBMC; Brocade and Huawei SNS SAN switches; Fortinet FortiGate; Check Point Gaia; A10 Thunder; Dell iDRAC and OS10; HPE iLO, Comware, Aruba CX and ProCurve; TP-Link; D-Link; FS.com; Aviat radios; CTC Union; PTP grandmasters; Linux net-snmp; NVIDIA Cumulus; Windows and HOST-RESOURCES, ENTITY-SENSOR and UPS-MIB devices; and a Synology DSM module.
Profiles were checked against real devices (Cisco ISR and Catalyst, Huawei firewalls, FusionServer iBMC, SNS switches, Synology, Linux) and against recorded walks (FortiGate, Check Point, A10, D-Link, TP-Link, FS); the rest follow their MIBs. A test resolves every OID the profiles use against about 68,000 MIB objects.
mc discover -host edge-dc1-core-01 -dry-run # what would be found, and one poll of itFor Linux servers, a per-host setup script installs net-snmp (v2c or v3 authPriv) and NRPE with firewalld or ufw rules, on Rocky, Alma, RHEL, CentOS, Debian and Ubuntu. On every host page, Ping and SNMP check take the host's polling path (through its poll worker when it has one), and Traceroute runs from the server.
Retention and rollups
Raw samples go into TimescaleDB hypertables. Hierarchical continuous aggregates roll them up, and every query is planned onto the coarsest tier that still gives the resolution asked for, so a one-year graph reads about 365 pre-computed rows instead of 500,000 samples.
| Tier | Bucket | Kept for | Used for |
|---|---|---|---|
| Raw | The poll interval (60 s) | 14 days | 1H–1D graphs, live tiles |
| 5-minute | 5 minutes | 400 days | 3D–2W graphs, 95th-percentile reports |
| Hourly | 1 hour | 5 years | 1M–3M graphs, availability, capacity trends |
| Daily | 1 day, from midnight in your time zone | Forever | 1Y and 5Y graphs |
Rollups are real-time (recent raw data is merged in at query time) and are compressed once they stop changing. Measured on the demo data: graph queries 4–14 ms from 1H to 5Y, the overview 26 ms, and a 30-day 95th percentile across all interfaces about 0.5 s.
The daily boundary follows MC_TIMEZONE, which is fixed when the database is created, so set it at install time.
Alarms
The alarm console is live and deduplicated, ordered critical, major, minor, warning, info, cleared. Operators can acknowledge, suppress, open a ticket or add a note, and every event is kept.
| Source | How alarms arrive |
|---|---|
| Built-in collector | Unreachable; interface down, utilisation, errors and discards; CPU and memory. With debounce, hysteresis and per-object severity |
| Nagios and scripts | POST /api/v1/ingest/alarms |
| Checkmk / Nagios | The Livestatus bridge (see Nagios and Checkmk) |
| Prometheus Alertmanager | POST /api/v1/ingest/alertmanager |
| AI Insights | In active mode only (see AI Insights) |
| Self-monitoring | system.* alarms about InfraDB itself |
Ingest needs an API token with the ingest scope:
mc token create -name nagios -scopes ingestOne outage, one alarm
Interface alarms are suppressed while their host is unreachable, so a host that drops off raises one alarm, not one per interface.
Alarm filters and contact groups
Alarms are routed to alarm filters, and operators act only on objects routed to their filters. Contact groups record a default on-call contact, a team leader, working hours (09:00–17:30 by default) and escalation details, shown on alarm and host pages.
Scheduled work
Maintenance windows cover hosts, interfaces or whole sites. While work is active, no new alarms are raised, open ones are suppressed, and AI Insights pauses scoring.
Alarm e-mails
InfraDB sends alarm e-mails through your SMTP relay, to recipients chosen by Nagios-style routing. Four modes make the roll-out safe:
- Off
- Nothing is sent.
- Preview
- The default: e-mails are composed and kept in the outbox, and sent to nobody.
- Redirect
- Every e-mail goes only to your test addresses instead, with the real recipients listed in its footer.
- Live
- E-mails go to their recipients.
A two-minute hold (the default) means a blip e-mails nobody. Acknowledged and suppressed alarms are skipped, sending is capped per hour, and the outbox shows each e-mail's status and reason. Notifications are e-mail only: InfraDB has no SMS, chat or paging integrations.
Reports
- Availability: fleet and per-host availability against an SLA target, with downtime and outages.
- Utilisation: the 95th percentile of 5-minute averages per interface or aggregate, with peaks.
- Alarm performance: alarms raised, mean time to acknowledge (MTTA) and to resolve (MTTR).
- Capacity forecast: a linear trend of each aggregate's daily busy hour, forecasting when load crosses 80% and 100% of capacity.
Ranges: 24 h, 7 d, 30 d, this month, last month, 90 d and 1 y. Every report exports as CSV.
AI Insights
AI Insights is explainable anomaly detection: small statistical models, each of whose decisions can be stated in a sentence. It needs no GPU and no external service, and runs inside the collector in well under a millisecond per poll.
| Model | What it learns |
|---|---|
| Seasonal baseline | For each of the 168 hours of the week, the median and a robust spread |
| Volatility | Series that suddenly fluctuate far more than they normally do |
| Level shift | Sustained moves to a new level (CUSUM) |
| Flap detection | Objects that change state too often |
Models train nightly at 03:30 on the last 28 days of 5-minute rollups (MC_AI_TRAIN_AT, MC_AI_TRAIN_DAYS). The 3,500 busiest series of a real network trained in about 16 seconds, at about 3 KB per series.
Every finding stores its explanation: what was observed and expected, the normal range, the highest value seen before, how long it has lasted, and the factors behind its confidence. Severity is never above major.
Modes
- off
- No scoring.
- shadow
- The default: findings are recorded and never raise alarms.
- active
- Findings with a confidence of 0.8 or more raise alarms.
Feedback
Operators mark findings, and each verdict tunes that series only: Expected behaviour widens its threshold by 12.5%, Real incident tightens it by 6.25%, Planned work changes nothing, and Not sure records the verdict without tuning. Sensitivity can also be set per series: Off, Low, Normal or High. The Operator-confirmed figure is real incidents divided by real plus expected, over 30 days.
Backtest before you trust it
mc ai backtest -days 7 -train-days 28
mc ai backtest -set seasonal_band.k=5 -set level_shift.threshold=8 # try parameters firstThe backtest trains on the history before a window and replays the window through the models without writing anything.
| Data | Series | Findings per 100 series per day |
|---|---|---|
| Demo estate (simulated, no anomalies) | 768 | 0.00 |
| A real network's imported MRTG history, one week (30-minute history) | 3,551 | 7.0 with the 0.14 defaults (76.8 before they were tuned) |
Ask AI
Ask AI answers NOC questions from live data, such as "what is down at POP East, and since when?". It works with any OpenAI-compatible chat API: a hosted service, or vLLM or Ollama on your own hardware. No provider is bundled or preferred.
| Setting | Meaning |
|---|---|
MC_LLM_BASE_URL | The API's base URL |
MC_LLM_API_KEY, MC_LLM_API_KEY_FILE | Its key, directly or from a file |
MC_LLM_MODELS, MC_LLM_DEFAULT_MODEL | The models offered, and the default |
MC_LLM_PROVIDER | Only a display name |
Each request to the model times out after 180 seconds (MC_LLM_TIMEOUT), and an answer makes up to six rounds of lookups (MC_LLM_MAX_STEPS).
How it answers
It retrieves first, then makes read-only, bounded lookups: an estate snapshot, inventory search, host, host health, interfaces, an interface, traffic history, the busiest interfaces, alarms, AI Insights, scheduled work, the change log and sites (13 kinds). It talks to the model with a text tool protocol, so a server without native function calling works too.
- Every lookup is listed under its answer, with its timing.
- Hosts and interfaces in the answer link to their pages, and answers stream in.
- Conversations are per user, with thumbs up and down.
What leaves the server
Questions and the results of the lookups go only to the model API you configure. Lookups never select SNMP communities, passwords, tokens or contact details, and credential-like text is scrubbed from notes. With a model on your own hardware, nothing leaves; with a hosted model, the host names, addresses, alarm and traffic data in those lookups do. To see exactly what the model would see:
mc assistant tool host '{"host": "edge-dc1-core-01"}'NetBox
NetBox owns identity and documentation; InfraDB owns monitoring. NetBox-owned fields are read-only in InfraDB, and an empty value in NetBox never erases local data.
- Existing hosts are adopted by name, then by primary IP: no duplicates, and their history is kept.
- A full sync runs every 15 minutes, plus HMAC-SHA512-signed webhooks from NetBox event rules.
- A prune guard refuses to decommission more than half the estate in one run.
- Drift detection lists where NetBox and the network disagree: monitored hosts missing from NetBox, interfaces on devices but not in NetBox and the other way round, different speeds or enabled states.
- Custom fields steer monitoring from NetBox:
mc_alarm_filter,mc_contact_group,mc_severity,mc_monitor,mc_snmp_profile.
Tested against NetBox 4.7 (with v1 and v2 tokens) and NetBox 3.x field names.
Nagios and Checkmk
InfraDB reads Nagios Core, Naemon, or Checkmk Raw / OMD through Livestatus over TCP. It only ever reads: it never writes to the site. Credentials never leave it: host custom variables are never requested, and literal credentials in command lines are redacted.
mc import nagios -livestatus nagios.example.net:6557 -dry-run # exactly what a real run would do
mc import nagios -livestatus nagios.example.net:6557- The import (hosts, services, commands, contacts, contact groups) runs in one transaction, and running it again changes nothing.
- Objects that have long been dead are listed, or decommissioned with
-decommission-after 365d. - The live bridge reads the site every 60 seconds: HARD states raise alarms, SOFT states are ignored, and performance data is kept with 5-minute and hourly rollups. About 7,000 services are read in well under a second.
- Nagios can also send its notifications to the ingest API.
InfraDB does not run Nagios check plugins itself; the bridge keeps an existing site's results flowing in.
MRTG history
InfraDB reads MRTG's RRD files directly, with its own parser: no rrdtool is needed, and nothing has to run on the old poller. The parser is verified value-for-value against rrdtool fetch.
mc import rrd -dir /var/lib/mrtg -dry-run # match rates first
mc import rrd -tar mrtg.tar.gz # or a directory- Interface, CPU and memory files are matched by name to hosts and interfaces already in the inventory.
- Each file's archives are stitched into one timeline, finest resolution first, and MAX archives become peak values.
- The default layout is a directory per host (
{host}/{host}_{kind}_{name}.rrd);-pattern '{host}_{ifindex}.rrd'reads cfgmaker's default names. - The import is idempotent. It adds history from before InfraDB's own, so import every file in one run, soon after installing.
- 64-bit little-endian RRD files only.
Prometheus
InfraDB scrapes the Prometheus exposition format itself, from exporters or from a Prometheus server's /federate. Profiles: mysql, tomcat, jvm, node, dcgm and generic.
- Every 60 seconds by default (10–3,600), up to 16 targets at once.
- Stored like everything else: raw 14 days, 5-minute 400 days, hourly 5 years, daily forever. Counters are stored as per-second rates.
- Caps with visible warnings: 2,000 series per scrape (limit 50,000), 50,000 samples (limit 500,000), a 64 MB answer.
- A target-down alarm after three failed scrapes; rules can raise on an event or a counter increase.
- Alertmanager sends alerts to
POST /api/v1/ingest/alertmanager.
InfraDB's own metrics are at GET /api/v1/metrics, for a token with the metrics scope. InfraDB does not run PromQL.
Redfish hardware
InfraDB reads server BMCs (iLO, iDRAC, XCC, OpenBMC and others) over DMTF Redfish: power supplies, fans, temperatures, voltages, drives, RAID volumes, memory, processors, NICs, the BMC itself and its event logs, with alarms, also while the host OS is down. It is read-only and never changes anything on a BMC.
- Health every 300 seconds, components every 30 minutes (sooner when not OK), rediscovery every 6 hours; about 12 requests per healthy poll, at most 2 in flight per BMC, and
Retry-Afterhonoured. - Lockout guard: two rejected sign-ins pause the endpoint for an hour, so a rotated password never locks the BMC account.
- Certificates are pinned and accepted by an operator before any credential is sent; BMC connections only reach the profile's allowed networks and never use the proxy.
- Firmware updates and replaced, added or removed parts go to the host's change log.
- Vendor modules: HPE iLO 4–7, Dell iDRAC 8–10, Lenovo XCC 1–3, Supermicro X11–X13 and H13, AMI MegaRAC, NVIDIA HGX/DGX and BlueField-2/3, and Huawei iBMC.
mc discover -host lnx-dc1-db-01 -bmc # find a host's BMC and switch API endpoints
mc bmc test -address 203.0.113.40 ... # sign in once; show identity, certificate, requestsBMCs that only speak IPMI over LAN keep their SNMP profiles.
NVIDIA GPUs and switches
- GPUs through NVIDIA's dcgm-exporter, as a Prometheus target with the
dcgmprofile (a counters file ships asdeploy/dcgm/mc-counters.csv). A GPU split into MIG instances is stored as one GPU, and Kubernetes pod labels are dropped. - Alarms: GPU hot (83 / 90 °C), near the slowdown temperature, memory hot (85 / 95 °C), XID errors (critical for 48, 63, 64, 74, 79, 92, 94, 95, 119 and 120), uncorrectable ECC, row remapping, NVLink errors, PCIe replays, hardware slowdown, and fewer GPUs than installed. A full framebuffer and high utilisation raise nothing.
- HGX/DGX baseboards and BlueField DPUs (mode, host privilege, boot progress) over Redfish.
- Spectrum switches on Cumulus Linux over SNMP and the NVUE REST API: fans, power supplies, temperatures, LEDs and transceivers.
Poll workers
Some devices accept polls only from certain addresses. A poll worker is a small VM in that segment running mc agent: polls leave from the worker's address, while the collector keeps the inventory, the database, alarms and AI. A worker holds no database access, no inventory and no stored credentials.
- The collector connects with a built-in SSH client (no ssh binary needed), an Ed25519 key and pinned host keys: no trust on first use.
- The worker's key is a forced command: only the agent runs, with no shell, terminal or forwarding.
- Rendezvous hashing shares the load, with the best path per host and failover; a 15-second keepalive means a hung worker fails over in about 30 seconds.
- Workers carry BMC polls too. About 60 KB/s reaches the collector for a thousand hosts.
- Packages: tarballs,
.deband.rpm, for amd64 and arm64.
mc workers -host acc-pop2-agg-01 # check the workers answer, and poll one host through eachSign-in
Local accounts
Passwords of 12 characters or more, hashed with Argon2id. Five failed sign-ins lock an account for 15 minutes.
Single sign-on (OpenID Connect)
Authorization code flow with PKCE. Presets for Microsoft Entra ID (public, US Government and China clouds), Okta, Keycloak and Google Workspace, and any standard provider, such as Authentik, Zitadel, Dex, ADFS 2016 and later, PingFederate, Auth0 or JumpCloud.
- Accounts are matched on issuer and subject, never on e-mail, and a local account is never taken over by single sign-on.
- Single-use state and nonce, the RFC 9207
isscheck, and asymmetric signatures only; multi-tenant Entra issuers are refused. - Single sign-on sessions last at most 12 hours. Break-glass local administrators stay available with
MC_LOCAL_LOGIN=break-glass. mc sso list | test | disablemanages providers from the command line.
OpenID Connect is the single sign-on protocol; SAML is not supported.
LDAP
LDAP v3, with presets for FreeIPA / Red Hat IdM, Active Directory (and Samba AD) and OpenLDAP. Directory servers can be found in DNS (SRV records, or mc ldap discover); LDAPS and StartTLS; nested Active Directory groups and NIS netgroups. Membership is checked again every 15 minutes, and a removed user's sessions end.
Roles and tokens
Four built-in roles, Viewer, Operator, Engineer and Administrator, plus custom roles. Directory and identity-provider groups map to roles. Operators act only on objects routed to their alarm filters.
API tokens are for wallboards, alarm ingest and Prometheus scraping:
mc token create -name wallboard -role viewer
mc token create -name prometheus -scopes metricsChange log and audit forwarding
Every change is recorded by row triggers, with the values of created and deleted rows; secrets appear only as "set" or "changed". Alarm actions, cleanups and exports are recorded too, and so is every refusal: 401s and 403s, failed sign-ins and lockouts. Changes made from the command line are attributed.
- Append-only: the audit log refuses UPDATE, DELETE and TRUNCATE.
- Kept for 60 days by default, and never dropped before a sink has received it.
Forwarding
| Sink | Format |
|---|---|
| syslog (RFC 5424) | UDP, TCP or TLS; JSON or ArcSight CEF |
| HTTP | JSON or NDJSON |
| Splunk | HTTP Event Collector |
| TAXII 2.1 | STIX 2.1 |
Events are delivered in order and at least once, retried from 2 seconds to 5 minutes, with idempotent event UUIDs.
Download configuration exports every setting, mapping, role, filter and profile as JSON, never secrets.
Security and privacy
What leaves the server
- Only what you configure: the model API for Ask AI, NetBox, single sign-on, audit sinks, Prometheus targets and the SMTP relay.
- Outbound requests follow
HTTPS_PROXYandNO_PROXY; private ranges always go direct, and cloud metadata addresses are never reached directly when a proxy is set. - AI Insights uses no external service, and self-telemetry stays in your database.
Accounts and secrets
- Argon2id passwords; hashed session and API tokens; HttpOnly, SameSite cookies; CSRF protection; a strict CSP; sign-in rate limiting.
- Secrets entered in the UI are sealed with AES-256-GCM under
MC_SECRET_KEY, which is kept outside the database. The API never returns them and the audit log never records them. - No default passwords, and backups never contain secrets.
Platform
- A distroless, static, non-root image (uid 65532) with no capabilities and a read-only root.
- The app publishes on 127.0.0.1 only; the reverse proxy is the only network listener.
- Query strings never reach access logs.
- Poll workers: forced-command SSH keys, pinned host keys, nothing stored. Nagios: read-only Livestatus with credential redaction. BMCs: read-only, with pinned certificates accepted by an operator first.
Operations
Self-monitoring
InfraDB records its own telemetry every 30 seconds (process, API, collector, database, pipelines), kept raw for 30 days and hourly for 400 days, under System → Performance. It raises self-alarms when the collector falls behind, the write queue fills, a TimescaleDB job fails, the database pool runs short, there has been no backup for 36 hours, or a poll worker has been down for 5 minutes.
Organisation
One installation holds one organisation: its name, a footer line, a sign-in hint and a holiday region for seasonal decorations (global, SG or none), set under System → Organisation or with mc org. InfraDB is not multi-tenant: several copies on one machine run as separate compose stacks, and teams within one installation are separated by alarm filters and roles.
Inventory hygiene
Decommissioning hosts that have been offline for 6 months, a year or two years deletes nothing, and Restore or Undo puts their settings back exactly. Silenced interfaces can be removed for good, with markers that stop them being rediscovered.
FAQ
How do I get InfraDB?
Through an agreement with KazLabs. There is no public download; talk to us and we will arrange access to the release images and the installer kit.
Can I try it before installing it on a server?
Yes, once we have given you access to the release: mc setup's try mode runs InfraDB on your own machine (macOS or Linux) on 127.0.0.1, and mc seed demo can fill it with Example Networks, a fictional internet provider with 79 hosts and simulated history. Until then, take the tour.
Does InfraDB update itself?
No. Upgrades happen only when you run mcctl upgrade, which checks the database, takes a backup first and confirms the new version.
Does it run without internet access?
Yes, with the offline paths in Requirements: a local directory for the bootstrap, an image bundle for installs and upgrades, local AI Insights, and Ask AI on a local model. The TimescaleDB image and OS packages come in separately.
Is there an on-call rota or paging?
No. Contact groups record who is on call, and alarm e-mails go through your SMTP relay; InfraDB does not page by SMS or chat.
Does it draw network maps?
No. Topology is a site, host and interface tree with rolled-up status, and the overview has a heatmap of sites or hosts.
Questions this page doesn't answer?
Tell us about your network and we will reply within 1–2 business days.