Skip to content
dateoPublic

About

Tyr takes inventory of the hardware of Linux servers and workstations, checks each part against its own limits, and stress-tests it to one verdict per machine.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

tyr by dateo

Know your hardware. Then put it to the test.

CI License: Apache-2.0 OpenSSF Baseline Level 1 Linux amd64 and arm64

Tyr takes inventory of the hardware of Linux servers and workstations, checks each part against its own limits, and stress-tests it to one verdict per machine. It reads every CPU, DIMM, disk, RAID set, port, transceiver, GPU, PSU and fan, with vendor, part number, serial and firmware, and loads CPU, memory, storage and network under a guard that watches temperatures, machine checks and ECC errors. It is one static binary with a terminal UI: copy it to a host, run it, and take the report home.

Overview: module cards and every finding, worst first Stress tab: the form, the engines and recent runs

What it does

Know what is in a machine

  • Every component with its identity: system, chassis, board, BMC, CPUs (PPIN), DIMMs, disks, RAID controllers and drives, NICs (PCI VPD), transceivers, GPUs, NPUs, PSUs and FRUs, the operating system and kernel.
  • Search and topology: a list with search across all fields and category chips, a tree with status rolled up into every branch; c copies a serial.
  • Linux first: sysfs, hwmon, procfs and /dev/kmsg, its own SMBIOS, NIC and BMC readers; external tools only where they add data, the BMC's Redfish service only where Linux has no answer.

Find what is wrong

  • Every reading against the part's own limit: hwmon, SMART, the transceiver, AMD's Tjmax per CPU family; else a configurable default.
  • CPU, memory, storage, network, GPU/NPU, power, system and events: machine checks across boots, ECC errors per DIMM, SMART and I/O errors with the kernel lines naming each disk, RAID, filesystems and encryption at rest, iSCSI / NVMe-oF sessions and Longhorn, link and loss counters, VPN peers, PSU redundancy, the BMC's event logs in one timeline.
  • Every alert explained: i says what an alert means, where it happens (controller, port, bay) and which commands check it; sources Tyr could not read are listed with the reason.

Put it to the test

  • Stress tests for CPU, memory, storage and network, one at a time or as a full test: baseline, load under a safety guard, a second snapshot, a verdict. Built-in engines verify every result, among them a Prime95-style torture test; stress-ng, mprime, memtester and iperf3 when installed.
  • A guard that keeps the machine safe: a CPU may run at its own limit and is stopped 5 °C beyond; drives, DIMMs and GPUs stop at their critical temperature; a new machine check or uncorrectable ECC error stops the run.
  • Acceptance and burn-in: tyr accept judges a machine against a limits profile (PASS, REMARKS, FAIL); the Tyr ISO boots from BMC virtual media or a USB stick and runs the burn-in by itself.

Keep the record

  • Reports in text, JSON and Markdown, with Mermaid charts of stress runs; a history across any number of saved runs: status over time, trends, hardware and firmware changes.
  • NetBox: the device, its ports, an inventory item per component and the test result as a journal entry, with tags from your own rules.
  • Webhooks when a test starts, a step fails and the verdict is in: generic JSON, Slack, Mattermost, Rocket.Chat, Microsoft Teams, Discord, Google Chat.
CPU Memory Storage
Every core by socket and thread Slot map per socket and channel Disks with SMART, RAID, filesystems
Inventory An alert explained Reports
Topology tree with serials Where, meaning, causes, commands Host report, stress result or history

All screens show the recorded server-degraded host at 120x40 (make demo); every tab and key is in docs/tui.md.

Quick start

From a release (amd64 or arm64), with the checksums verified:

v=1.0.1 arch=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
curl -LO https://github.com/dateo/tyr/releases/download/v$v/tyr_${v}_linux_$arch.tar.gz
curl -LO https://github.com/dateo/tyr/releases/download/v$v/SHA256SUMS
sha256sum --ignore-missing -c SHA256SUMS
tar xzf tyr_${v}_linux_$arch.tar.gz
sudo install -m 755 tyr_${v}_linux_$arch/tyr /usr/local/bin/tyr
sudo tyr                      # the TUI on this machine

From source:

git clone https://github.com/dateo/tyr.git
cd tyr
make install                  # static binary to /usr/local/bin/tyr

Then:

tyr --fixtures testdata/fixtures/server-degraded   # look at a recorded server, no hardware needed
sudo tyr report --format markdown > host.md        # a report of this host
sudo tyr accept --profile quick                    # is this machine fit for production?
ssh admin@host sudo /tmp/tyr report                # on a remote host, after copying the binary

Every command, flag, exit code and environment variable, remote hosts and Kubernetes nodes, building and cross-compiling: docs/usage.md. What changed in each version: CHANGELOG.md.

Requirements

You need For
Linux on amd64 or arm64, any distribution running Tyr; the binary is static and CGO-free
root (recommended) serial numbers (SMBIOS, PCI VPD), SMART, the kernel log, the BMC; without root Tyr says what it could not read
Go 1.26 or newer building from source
Docker only for building the Tyr ISO (make iso)
A Redfish account on the BMC (optional) event logs, live power, drives behind RAID controllers, firmware inventory
smartctl, ras-mc-ctl, lldpctl (recommended) SATA/SAS SMART, rasdaemon's error history, the switch port

Tyr needs no other tool: dmidecode, ethtool and ipmitool are only fallbacks. Which tool adds what and how to install it: docs/tools.md.

How it fits together

Tyr architecture

Collectors read the host in parallel into one snapshot; thresholds turn readings into OK / WARN / CRIT findings. The TUI, the CLI and the stress engine all work from that snapshot, and the report renderer turns saved JSON into Markdown. docs/ has the deep dives: architecture, health checks, stress tests, acceptance and the ISO, reports, NetBox and webhooks.

Codebases

Tyr is this one repository: the binary (cmd/tyr, internal/), the live ISO (iso/), the recorded test hosts (testdata/fixtures/) and the documentation. The tools it can use (smartmontools, stress-ng, vendor RAID and GPU tools) come from their own projects and are never bundled with the binary; DEVELOPER.md explains the layout.

Security in short

Tyr runs as root on servers and talks to their BMC, so it is careful about what it changes: collectors only read, IPMI commands are read-only and Redfish requests are GETs. Everything that changes a machine (filesystem repair, stress tests, the offline-core test, package installs, writing a USB stick) asks for confirmation first. The Redfish account, the NetBox token and webhook secrets come from the environment or configuration files and are kept out of snapshots, reports and logs. Report vulnerabilities privately, as SECURITY.md explains.

OpenSSF Baseline Level 1

Tyr meets Level 1 of the OpenSSF Open Source Project Security Baseline (OSPS Baseline, version 2026.08.28): main changes only through pull requests, CI runs with read-only permissions and treats pull request input as untrusted, every commit is scanned for secrets, binaries stay out of Git, releases ship with checksums and the license, dependencies are pinned in go.mod, and the project documents its contribution process, defect reporting and security contact. The self-assessment shows how each of the 24 controls is met, with the scanner runs and the checks still due after the move to dateo.

Contributing

Bugs, fixes, new hardware support, fixtures from real machines and documentation are all welcome. Questions and bugs go into GitHub issues; CONTRIBUTING.md explains how to report a bug and how a change gets in.

git config core.hooksPath scripts/hooks   # format, binaries, secrets, commit messages
make lint test                            # gofmt, go vet, staticcheck; unit tests, golden screens, fixtures

CI runs the same checks and builds the static binaries for amd64 and arm64. DEVELOPER.md covers fixtures, golden screens, diagrams and releases; the mark and the terminal banners are described in docs/brand.md.

License

Tyr is licensed under the Apache License 2.0: use it, change it and pass it on, keeping the copyright and NOTICE. Releases up to v1.0.1 were published under the Mozilla Public License 2.0 and stay under it. NOTICE lists the libraries Tyr is built with, under their own licences; TRADEMARKS.md the third-party names Tyr uses descriptively.

Tyr is a dateo project, maintained by Noah Zeumer (noahzmr). Týr is the Norse god of law and courage, who put his hand in the wolf's mouth as a pledge that the binding was fair; Tyr binds a machine to a test under a guard that keeps it safe, and gives a verdict you can trust.

About

Tyr takes inventory of the hardware of Linux servers and workstations, checks each part against its own limits, and stress-tests it to one verdict per machine.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages