sysreport
v1.1.3
Published
Linux server audit and operations summary CLI
Maintainers
Readme
SysReport
SysReport is a lightweight Linux server audit CLI for sysadmins, DevOps engineers, and hosting operators. Run one command and get a practical summary of the server's health, identity, network, web stack, databases, security posture, and optimization signals.
sysreportHighlights
- Modular Bash architecture: each report area lives in
src/sysreport/modules/. - Safe by default: it does not install dependencies or change server configuration while reporting.
- Works on generic Linux servers and adds extra context when cPanel/WHM, PHP, MySQL, Redis, Memcached, or common firewalls are detected.
- Supports targeted checks with
--section. - Friendly to package managers: npm, deb/rpm layouts, and manual install scripts are included.
Installation
Manual
git clone https://github.com/amirkhateri/sysreport.git
cd sysreport
bash scripts/install/install.sh
sysreportnpm
npm install -g sysreport
sysreportDebian / Ubuntu and RPM
Download packages from the GitHub release page, or install the RPM directly with dnf:
VERSION=1.1.3
sudo dnf install -y "https://github.com/amirkhateri/sysreport/releases/download/v${VERSION}/sysreport-${VERSION}-1.noarch.rpm"Debian/Ubuntu users can install the .deb package from the same release:
VERSION=1.1.3
curl -LO "https://github.com/amirkhateri/sysreport/releases/download/v${VERSION}/sysreport_${VERSION}_all.deb"
sudo apt install ./sysreport_${VERSION}_all.debPackage templates are available under templates/, and release automation publishes .deb and .rpm artifacts.
For GitHub releases, download the sysreport-<version>.tar.gz archive, extract it, and run the installer:
tar -xzf sysreport-<version>.tar.gz
cd sysreport-<version>
bash scripts/install/install.shUsage
sysreport # run the full report
sysreport --list-sections # show available sections
sysreport --section system --section security
sysreport --no-color
sysreport --versionCurrent sections:
systemidentitynetworkserviceswebstackdatabasesecurityoptimization
You can customize network ping targets:
SYSREPORT_PING_TARGETS="1.1.1.1 github.com example.com" sysreport --section networkOptional Dependencies
SysReport runs without these tools, but it reports more detail when they exist:
curlfor public IP detectionjqfor IP geolocation parsingfastfetchfor an optional system profile blocksystemctl,ss,ip,ping,free,df,awk,sed,grepmysql,psql,php,nginx,httpdorapache2for stack-specific checks
Development
Run locally:
make run
make sectionsSyntax check:
make checkAdd a new report module by creating a file in src/sysreport/modules/:
report_example() {
sysreport_section "Example"
sysreport_item "Status" "ok"
}
sysreport_register_section "example" "Example report" "report_example"Philosophy
SysReport should be useful on the first run, readable by humans, conservative on production servers, and easy to extend. It reports what it can see and skips what is unavailable instead of failing the whole run.
License
MIT
