From 31dffa82c5e658f425afebfe6313f8e82691576f Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 9 Oct 2024 02:15:12 +0100 Subject: [PATCH] Add server stats project --- src/data/projects/server-stats.md | 38 +++++++++++++++++++++++++ src/data/projects/static-site-server.md | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 src/data/projects/server-stats.md diff --git a/src/data/projects/server-stats.md b/src/data/projects/server-stats.md new file mode 100644 index 000000000..ad83b14db --- /dev/null +++ b/src/data/projects/server-stats.md @@ -0,0 +1,38 @@ +--- +title: 'Server Performance Stats' +description: 'Write a script to analyse basic server performance stats.' +isNew: true +sort: 0 +difficulty: 'beginner' +nature: 'Server Stats' +skills: + - 'linux' + - 'bash' + - 'shell scripting' +seo: + title: 'Server Performance Stats' + description: 'Write a script to analyse server performance stats.' + keywords: + - 'Server Stats' + - 'Server Performance Stats' +roadmapIds: + - 'devops' +--- + +Goal of this project is to write a script to analyse server performance stats. + +## Requirements + +You are required to write a script `server-stats.sh` that can analyse basic server performance stats. You should be able to run the script on any Linux server and it should give you the following stats: + +- Total CPU usage +- Total memory usage (Free vs Used including percentage) +- Total disk usage (Free vs Used including percentage) +- Top 5 processes by CPU usage +- Top 5 processes by memory usage + +Stretch goal: Feel free to optionally add more stats such as os version, uptime, load average, logged in users, failed login attempts etc. + +
+ +Once you have completed this project, you will have some basic knowledge on how to analyse server performance stats in order to debug and get a better understanding of the server's performance. \ No newline at end of file diff --git a/src/data/projects/static-site-server.md b/src/data/projects/static-site-server.md index 6a93bbb5d..c57009867 100644 --- a/src/data/projects/static-site-server.md +++ b/src/data/projects/static-site-server.md @@ -4,7 +4,7 @@ description: 'Setup a basic linux server and configure it to serve a static site isNew: false sort: 5 difficulty: 'beginner' -nature: 'CLI' +nature: 'Nginx' skills: - 'nginx' - 'SSH'