This Bash script generates comprehensive system reports for Linux servers, including hardware information, user and security data, and disk I/O performance using FIO. Reports are generated in text, HTML, CSV, and JSON formats for easy readability and integration.
- π Collects CPU, RAM, and Disk information
- π€ Lists user password change dates and account statuses
- π Checks MFA (Multi-Factor Authentication) status on SSH
- βοΈ Runs FIO benchmarks for random read/write performance
- π Generates reports in multiple formats:
- Plain Text
- HTML (with styled headers and sections)
- CSV (structured data)
- JSON (FIO output)
All reports are saved to:
/tmp/system_reports/
You can change this path in the REPORT_DIR variable.
- Bash (Linux shell)
fio(Flexible I/O Tester) β Install Guidejq(for parsing JSON output) βsudo apt install jqon Debian-based systems
-
Make the script executable:
chmod +x system_report.sh
-
Run the script:
./system_report.sh
- View reports in
/tmp/system_reports/