LXRAY
The X-ray for Linux servers. All Linux Flavours Servers Diagnostics.
Versions
The apt, dnf and zypper repositories always install the latest version; a system update moves existing machines to it. The current version is also downloadable from GitHub.
I have done Linux support for years, and I kept repeating the same checks by hand: disks, network, services, security, logs. LXRAY does them for me. It reads the machine as it really is, then writes an HTML report with a score, the evidence for each problem and the fix to apply.
Why the name. L for Linux, XRAY for the X-ray: like a radiograph, LXRAY looks inside a running server without touching it, and shows what is healthy, what is failing and why.
$ sudo lxray run collect 13 modules ........ ok analyse 318 files ......... ok score 64/100 C critical 1 filesystem mounted read-only warning 3 no active host firewall info 4 report /var/tmp/lxray-srv01/report/lxray-report.html
What sets it apart
- It reads your real system. Every finding comes from what the machine actually holds: configuration files, kernel state, services, disks. Nothing is guessed.
- No external dependency. No agent, no account, no cloud service. It installs from a package, with nothing to configure.
- It does not need the Internet. It works on an isolated server and sends nothing anywhere. The report stays on your disk.
- Read-only. It changes nothing on the machine it examines.
What it checks
Thirteen modules: system, CPU and memory, storage and RAID, network, firewall, kernel, services, packages, security, logs, databases, containers and applications. The report is a self-contained HTML file, scored out of 100, with findings ranked critical, warning or info.
It runs on Debian, Ubuntu, RHEL and derivatives, SUSE, Alpine and Arch. It detects the family, the package manager, the firewall and the init system, and falls back to /proc and /sys when a tool is missing. Secrets, MAC addresses, UUIDs and e-mail addresses are masked at collection time; --redact-ips masks IP addresses too.
Installation
The packages are published in the UpStream package repository, which holds every package coded by El Mehdi Jouan. It is signed: once the key is installed, apt and dnf verify and update the packages like any other.
Debian, Ubuntu and derivatives
sudo install -d -m 0755 /etc/apt/keyrings curl -fsSL https://eljouan.com/upstream/packages/jouan.gpg | sudo tee /etc/apt/keyrings/jouan.gpg >/dev/null curl -fsSL https://eljouan.com/upstream/packages/jouan.sources | sudo tee /etc/apt/sources.list.d/jouan.sources >/dev/null sudo apt update sudo apt install lxray
RHEL, Oracle Linux, AlmaLinux, Rocky, Fedora
sudo curl -fsSL -o /etc/yum.repos.d/jouan.repo https://eljouan.com/upstream/packages/jouan.repo sudo dnf install lxray
On first use, dnf shows the key fingerprint and asks for confirmation, once.
openSUSE and SLES
The same RPM installs with zypper: it was installed and run on openSUSE Leap 15.6 and 16.0 and on Tumbleweed, and its dependencies resolve on SLES 15 SP6 (not yet run on SLES). Add the repository, then install:
sudo rpm --import https://eljouan.com/upstream/packages/jouan.asc sudo curl -fsSL -o /etc/zypp/repos.d/jouan.repo https://eljouan.com/upstream/packages/jouan.repo sudo zypper install lxray
Alpine, Arch Linux and other distributions
Without a native package, LXRAY installs from the signed archive. It needs bash, python3 and tar (Alpine: apk add bash python3 tar; Arch: pacman -S python). Tested on Alpine 3.22 and Arch Linux.
curl -fsSLO https://eljouan.com/upstream/packages/download/lxray-1.3.2-linux.tar.gz tar -xzf lxray-1.3.2-linux.tar.gz sudo ./lxray-1.3.2/packaging/install.sh sudo lxray deps --install
The archive does not update itself: for a new version, repeat these steps. packaging/uninstall.sh removes LXRAY.
Usage
sudo lxray run # snapshot + HTML report sudo lxray collect -p full # detailed snapshot lxray analyze <snapshot> # analyse an existing snapshot lxray deps # missing diagnostic tools lxray plugins # collection modules
The report is written to /var/tmp/lxray-HOST-DATE/report/lxray-report.html. As root the snapshot is complete. Without root it still works, and the report says exactly what it could not read, why, and how to read it; those checks do not count as passed.
Downloads
| File | For |
|---|---|
| lxray_1.3.2_all.deb | Debian, Ubuntu and derivatives |
| lxray-1.3.2-1.noarch.rpm | RHEL, Alma, Rocky, Fedora, Oracle Linux, openSUSE, SLES |
| lxray-1.3.2-linux.tar.gz | Archive for Alpine, Arch and other distributions |
| SHA256SUMS | Checksums |
This table gives the latest version. Every version, with its signatures and checksums, is on the GitHub releases.
License
LXRAY is free for everyone: personal and professional use, without limit, on all your machines. The code is not published and the software may be neither modified nor redistributed. No sign-up, no telemetry. The full license text is installed with the package.
Verify the packages
Every package and repository is signed by El Mehdi Jouan. Public key: jouan.asc.
Fingerprint: 2045 3DAF 3BD4 BDC9 B035 1D19 3F70 F7EA 1C48 682C
gpg --import jouan.asc gpg --verify lxray_1.3.2_all.deb.asc lxray_1.3.2_all.deb
GitHub
Manual download.
The packages are also published on GitHub, with their signatures and checksums, for manual download.
Download on GitHubNode.js SDK
Build it into your applications
The official npm package runs audits and returns the reports from any Node.js application: monitoring, admin consoles, managed-services portals, CI pipelines.
npm install @ejouan/lxray
Support
A bug, a question?
Write to ej@eljouan.com with the version, your distribution and what happened. Every message is read and answered within a few days. For a security issue, put “SECURITY” in the subject.