This project was proposed in the DevOps Path from roadmap.sh, with the objective of understanding and practicing methods to collect performance statistics from Linux servers, such as:
- CPU Usage
- Memory Usage
- Disk Usage
- Optional information, including:
- Hostname
- OS Version/Distribution
- Uptime
- Load Average
- Logged-in Users
- Failed Login Attempts
awk-scripts/
βββ cpu/
β βββ total.awk
βββ disk/
β βββ free.awk
β βββ total.awk
βββ memory/
βββ free.awk
βββ total.awk
server-stats.sh
Ensure that the awk tool is available on your Linux terminal by running:
awk --versionNote: If awk is not installed, refer to the Installing gawk (GNU) documentation
To execute the script, run the following command:
./server-stats.shMake sure the script has execute permissions. If not, you can grant them using:
chmod +x server-stats.sh