Module 4 — System Health Monitoring
📖 MODULE 4 — SYSTEM HEALTH MONITORING
Welcome to Module 4
Imagine you’re responsible for protecting a Linux server.
How do you know if:
- the system is healthy?
- resources are running low?
- unusual activity is occurring?
- a security incident is developing?
The answer is monitoring.
System monitoring allows administrators and cybersecurity professionals to observe what is happening on a Linux system in real time.
By monitoring system activity, analysts can identify:
- performance issues
- suspicious behavior
- resource abuse
- malware activity
- unauthorized processes
Monitoring is one of the most important responsibilities in cybersecurity because threats often reveal themselves through unusual system activity.
By the end of this module, you’ll understand how to monitor Linux systems and identify signs that something may be wrong.
Section 1 — What Is System Monitoring?
System monitoring is the process of observing system activity and performance.
This includes monitoring:
- CPU usage
- memory usage
- disk usage
- processes
- network activity
- uptime
Monitoring helps administrators understand what a system is doing.
Why Monitoring Matters
Without monitoring:
- problems may go unnoticed
- attacks may remain undetected
- systems may fail unexpectedly
Monitoring provides visibility into system health and security.
Section 2 — Understanding CPU Usage
The CPU is often called the brain of the computer.
Every process requires CPU resources.
High CPU usage may indicate:
- heavy workloads
- software issues
- malware
- cryptomining activity
Viewing CPU Usage
Use:
top
Example:
CPU Usage: 25%
Why CPU Monitoring Matters
Unexpected CPU spikes may indicate:
- malicious software
- runaway processes
- denial-of-service activity
Analysts frequently investigate unusual CPU activity.
Section 3 — Understanding Memory Usage
Memory (RAM) stores information that programs need while running.
Every process consumes memory.
Viewing Memory Information
Use:
free -h
Example Output:
Total: 16G
Used: 8G
Free: 8G
Why Memory Matters
High memory usage may indicate:
- inefficient applications
- memory leaks
- malware
- excessive workloads
Memory monitoring helps identify problems before systems become unstable.
Section 4 — Understanding Disk Usage
Linux systems require storage space for:
- logs
- applications
- reports
- databases
- user files
When storage becomes full, systems may fail.
Viewing Disk Usage
Use:
df -h
Example:
Filesystem Size Used Available/dev/sda1 100G 60G 40G
Why Disk Monitoring Matters
Security logs can grow rapidly.
Attackers sometimes intentionally generate large amounts of data to consume storage resources.
Monitoring disk usage helps prevent outages.
Section 5 — Understanding Uptime
Uptime measures how long a system has been running.
Example
uptime
Output:
up 14 days
Why Uptime Matters
Unexpected reboots may indicate:
- crashes
- hardware failures
- software problems
- security incidents
Analysts often review uptime during investigations.
Section 6 — Monitoring Processes
Processes represent active activity on a system.
Use:
top
or
htop
to monitor:
- CPU consumption
- memory consumption
- active programs
Cybersecurity Example
An unknown process consuming:
99% CPU
may require investigation.
Possible causes include:
- malware
- cryptominers
- compromised software
Section 7 — Monitoring Logged-In Users
Administrators often review active users.
Use:
who
Example Output:
sarah pts/0
john pts/1
Why User Monitoring Matters
Unexpected users may indicate:
- unauthorized access
- compromised accounts
- suspicious activity
Monitoring user sessions is a common security practice.
Section 8 — Monitoring System Activity
Linux administrators often combine multiple tools:
top
free -h
df -h
uptime
Together these provide a quick overview of system health.
Section 9 — Recognizing Anomalies
An anomaly is something unusual.
Examples:
CPU Spike
95% CPU
Memory Spike
98% RAM Usage
Full Disk
99% Disk Usage
Unexpected User
Unknown Account Logged In
These situations may require investigation.
Why Anomalies Matter
Many cybersecurity incidents begin with unusual behavior.
Analysts often identify threats because something looks different from normal activity.
Section 10 — Monitoring in Security Operations Centers (SOCs)
SOC analysts spend much of their day monitoring systems.
They review:
- alerts
- logs
- processes
- connections
- performance data
The goal is to identify threats before they cause damage.
Monitoring is often the first line of defense.
Section 11 — Building a Monitoring Mindset
A good cybersecurity professional constantly asks:
- What is normal?
- What is unusual?
- What changed?
- Does this require investigation?
Monitoring is not just about commands.
It’s about understanding system behavior.
Module 4 Summary
In this module, you learned:
- system monitoring
- CPU usage
- memory usage
- disk usage
- uptime
- active users
- anomalies
- SOC monitoring concepts
Monitoring provides visibility into system activity and helps security teams identify potential threats before they become major incidents.
PROJECT — SYSTEM HEALTH INVESTIGATION
Review a Linux system’s health.
Requirements
Questions
- Which command displays memory usage?
- Which command displays disk usage?
- Which command shows system uptime?
- Which command displays active users?
- Why might 99% CPU usage be concerning?
ANSWER KEYClick to reveal the step-by-step solution.
Question 1
free -h
Question 2
df -h
Question 3
uptime
Question 4
who
Question 5
Possible causes:
- malware
- cryptomining
- application failure
- resource abuse