What you will learn in this TP
- Apply a go-live checklist
- Set up monitoring and backup
- Troubleshoot an incident methodically
Introduction #
What you will learn in this section
- Apply a go-live checklist
- Set up monitoring and backup
- Troubleshoot an incident methodically
Context. A new server must host the internal application. You apply the team's go-live checklist, then an incident occurs: the disk fills up although nobody can find a large file.
Prerequisites: the VM from the previous labs (the app service and key-based SSH in place) · Estimated time: 90 min
Hands-on #
Guided steps, with their solution.
1. Measure the starting point
Why? A before/after audit makes hardening work measurable.
Install Lynis and note the initial hardening index and main suggestions.2. Update automatically
Why? Most compromises exploit already-patched vulnerabilities.
Apply updates, enable automatic security updates and check whether a reboot is required.3. Secure access
Why? Key-based SSH, a firewall and fail2ban form the first line of defence.
Check the SSH configuration from the networking lab, open only SSH and the application port, install fail2ban for SSH and apply sysctl hardening settings.4. Monitor
Why? An unmonitored server fails silently; node_exporter exposes system metrics for Prometheus.
Install node_exporter, check disk and memory metrics, and add a disk-space check to the health timer.5. Back up with restic
Why? restic encrypts, deduplicates and handles retention; the restore test validates the whole chain.
Initialise a local restic repository (simulating remote storage), back up/etcand/srv, apply retention and restore/srv/app/wwwto a temporary directory.6. Incident: the disk is filling up
Why? A deleted but still open file keeps its space: du no longer sees it, df does.
Run the incident scenario below, then troubleshoot: comparedfanddu, find the culprit withlsofand free the space without rebooting the server.7. Measure and document
Why? Measuring progress and writing a report turns an incident into learning for the team.
Re-run Lynis to compare the index, run the quick check from the best-practices article and write a short post-mortem (symptom, cause, resolution, preventive actions).
Difficulty level : ●●●●○ (4/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Packages, systemd services, logs and scheduled tasks
Install and update software with apt and dnf, manage services with systemctl, write a systemd uni...
Linux vs Unix: the complete guide to commands and distributions
Understand the differences between Linux and Unix, explore distributions (server, desktop, lightw...
Monitoring, upgrading and troubleshooting Elastic Agent
Operate an Elastic Agent fleet: states in Fleet, agent monitoring, batch upgrades, diagnostics, l...
Linux system architecture: kernel, boot and directory tree
Understand how a Linux server works: kernel and user space, the UEFI, GRUB, initramfs and systemd...
Windows networking: IP, DNS, DHCP, firewall and remote access
Configure and troubleshoot Windows networking with PowerShell, deploy a DHCP server, master Windo...
The Bash shell and files: navigation, redirections, pipes and text processing
Master the Linux command line: paths, file handling, wildcards, redirections, pipes, searching wi...
Users, groups, sudo and permissions on Linux
Manage Linux accounts (useradd, usermod, passwd, chage), groups, sudo and visudo, rwx and octal p...
Bash scripts for administrators: writing robust scripts
Automate Linux administration with Bash: variables and quoting, conditions, loops, functions, exi...
Windows administration best practices
The production checklist for Windows and Windows Server: installation, identity and Active Direct...