Monitoring guide

What is server monitoring? The complete guide

Server monitoring is the continuous process of collecting, analysing and acting on data about the health, performance and availability of servers. This guide explains the whole subject in plain English.

What is server monitoring?

Server monitoring is the practice of continuously observing servers to make sure they are available, performing well and free of faults. A monitoring system gathers measurements such as processor usage, memory consumption, disk space, network traffic and the state of important services. It stores those measurements over time, compares them against expected values and notifies people when something needs attention.

A server can be a physical machine in a data centre, a virtual machine on a hypervisor, a cloud instance or a host running containers. The principles of monitoring are the same for all of them. You want to answer three questions at any moment:

  • Is it up? Can users and other systems reach the server and the services it provides?
  • Is it healthy? Are resources such as CPU, memory and disk within safe limits?
  • Is it about to have a problem? Do the trends suggest a failure, a capacity shortfall or a security issue on the way?

Why server monitoring matters

Servers run the applications, websites, databases and file shares that organisations depend on. When one fails or slows down, the effect is felt by customers, staff and revenue. Monitoring exists to reduce how often that happens and how long it lasts when it does.

Less downtime

Problems are detected in seconds rather than when a user complains. Many are fixed before they ever become an outage.

Better performance

Bottlenecks in CPU, memory, disk or network are visible, so you can tune or scale the right component.

Capacity planning

Months of historical data show growth trends, so hardware and cloud spend can be planned rather than rushed.

Security awareness

Unexpected processes, new open ports, spikes in failed logins and unusual traffic can all be early signs of compromise.

Compliance and evidence

Frameworks such as ISO 27001, SOC 2, PCI DSS and Cyber Essentials expect organisations to monitor their systems and keep records.

Calmer teams

Clear alerts and good data mean fewer emergencies, shorter investigations and less time spent guessing.

How server monitoring works

Every monitoring system, however simple or sophisticated, follows the same basic cycle.

  1. Collection. Data is gathered from each server at a regular interval, typically every 10 to 60 seconds. It may come from an installed agent, from a protocol such as SNMP or WMI, or from external checks.
  2. Transport. The data is sent to a central platform, ideally over an encrypted connection.
  3. Storage. Measurements are kept in a time series database. Recent data is held at full resolution, while older data is usually summarised (downsampled) to save space.
  4. Analysis. The platform evaluates the data against rules. A rule might say "warn if disk usage is above 80% for five minutes" or "alert if this value is far outside its normal range".
  5. Alerting. When a rule is broken, a notification is sent to the right person or team through email, SMS, chat or an on call tool.
  6. Visualisation and reporting. Dashboards show the current state at a glance and graphs show history. Reports summarise availability and performance over weeks and months.

Polling interval matters. A five minute interval can miss a short spike entirely and delays detection. Sixty seconds or less is a good default for production servers.

Agent based vs agentless monitoring

There are two main ways to collect data from a server. Most mature setups use a mixture of both.

Agent based monitoring installs a small piece of software on each server. The agent reads metrics directly from the operating system and sends them to the monitoring platform. Agentless monitoring collects data remotely using standard protocols that the server already supports, such as SNMP, WMI or SSH.

ConsiderationAgent basedAgentless
Depth of dataVery detailed, including per process data, logs and custom metricsLimited to what the protocol exposes
SetupInstall software on each server, often automatedNo software to install, but credentials and protocol access must be configured
Network requirementsUsually outbound only, which suits firewalls wellMonitoring server needs inbound access to each target
ResilienceAgent can buffer data if the network dropsData is lost while the target is unreachable
Resource useSmall footprint on the server, typically under 1% CPUNo footprint on the server, more load on the poller
Best forServers you own and manageNetwork devices, appliances and systems where software cannot be installed

Active vs passive monitoring

Active monitoring, also called synthetic monitoring, sends test traffic to a service and measures the response. Pinging a server, requesting a web page or attempting a database login are all active checks. They tell you whether a service works from the user's point of view, even when nobody is using it.

Passive monitoring observes real activity as it happens. Reading resource counters, analysing logs and capturing network flows are passive methods. They show how the system behaves under genuine load and reveal problems that a simple test might not trigger.

The two approaches complement each other. Active checks tell you something is broken; passive data usually tells you why.

Protocols and data sources

Monitoring tools rely on a set of well established protocols and interfaces. Knowing what each one offers helps you choose the right method for each system.

SourceWhat it isTypical use
ICMPThe protocol behind pingBasic reachability and round trip latency
SNMPSimple Network Management Protocol. Use version 3, which adds authentication and encryptionSwitches, routers, firewalls, printers, UPS units and many servers
WMI and WinRMWindows Management Instrumentation, accessed remotely through Windows Remote ManagementAgentless monitoring of Windows Server
Performance countersBuilt in Windows measurements such as Processor Queue LengthDetailed Windows performance data
/proc and /sysLinux virtual file systems exposing kernel statisticsThe main source for Linux agents
SSHSecure shell, used to run commands remotelyAgentless checks on Linux and Unix
IPMI and RedfishOut of band hardware management interfaces such as iDRAC and iLOTemperatures, fans, power supplies and hardware faults
Syslog and journaldStandard Linux logging systemsLog collection and pattern alerts
Windows Event LogApplication, System and Security logs on WindowsService failures, crashes and security events
HTTP and HTTPSWeb requests and APIsWebsite checks, health endpoints and certificate validation
NetFlow, sFlow, IPFIXSummaries of network traffic flowsBandwidth analysis and spotting unusual traffic

Types of server monitoring

"Server monitoring" is an umbrella term. In practice it covers several overlapping disciplines.

Infrastructure and resource monitoring

The foundation. Tracks CPU, memory, disk, network and operating system health. See the metrics reference for detail on each measurement.

Availability and uptime monitoring

Confirms that servers and services respond. Checks run from outside your network, ideally from several geographic locations, so a problem with one route is not mistaken for an outage.

Performance monitoring

Looks beyond up or down to how fast things are. Response times, throughput and latency are measured and compared against a baseline so that gradual degradation is noticed.

Application and service monitoring

Watches the software running on the server: web servers such as nginx, Apache and IIS; databases such as PostgreSQL, MySQL and SQL Server; and services such as Active Directory, DNS and mail. Application Performance Monitoring (APM) goes further by tracing individual requests through the code.

Log monitoring

Collects logs centrally and alerts on specific messages, error rates or patterns. Logs often explain what metrics can only hint at.

Security monitoring

Looks for signs of compromise or misuse: repeated failed logins, new administrator accounts, unexpected listening ports, changes to important files and unusual outbound connections. It often feeds a Security Information and Event Management (SIEM) platform.

Hardware monitoring

For physical servers, tracks temperatures, fan speeds, power supply status, RAID array health and disk SMART data, usually through IPMI or the vendor's management controller.

Virtualisation, cloud and container monitoring

Hypervisors, cloud instances and containers add extra layers. CPU steal time, noisy neighbours, auto scaling events, container restarts and orchestration health all need attention alongside the guest operating system.

Configuration and change monitoring

Records changes to packages, services, users and configuration files. When something breaks, knowing what changed recently is often the fastest route to the cause.

Uptime, availability and SLAs

Availability is usually expressed as a percentage of time that a service is working. Service Level Agreements (SLAs) commit a provider to a minimum availability, and each extra "nine" dramatically reduces the downtime allowed.

AvailabilityCommon nameDowntime per yearPer monthPer week
99%Two nines3d 15h 39m 36s7h 18m 20s1h 40m 48s
99.9%Three nines8h 45m 58s43m 50s10m 5s
99.95%Three and a half nines4h 22m 59s21m 55s5m 2s
99.99%Four nines52m 36s4m 23s1m 0s
99.999%Five nines5m 16s26s6s

Downtime calculator

Three related terms are worth knowing:

  • SLA (Service Level Agreement): the formal commitment made to customers, often with financial penalties if it is missed.
  • SLO (Service Level Objective): the internal target a team aims for, usually stricter than the SLA to leave a safety margin.
  • SLI (Service Level Indicator): the actual measurement, such as the percentage of successful requests, used to judge the SLO.

Accurate availability reporting depends on monitoring. Without independent checks you cannot prove what you delivered.

Monitoring frameworks

With hundreds of possible metrics, it helps to have a method for deciding what to look at. Three frameworks are widely used.

USE method

For every resource (CPU, memory, disk, network), check Utilisation, Saturation and Errors. Created by performance engineer Brendan Gregg, it is ideal for servers and hardware.

RED method

For every service, measure Rate (requests per second), Errors (failed requests) and Duration (how long requests take). Best suited to web services and APIs.

Four golden signals

From Google's Site Reliability Engineering book: Latency, Traffic, Errors and Saturation. A good summary of what users actually feel.

A practical approach is to apply USE to your servers and RED to the services running on them.

Monitoring vs observability

The two words are often used together. Monitoring tells you when known things go wrong by watching predefined metrics and checks. Observability is the ability to understand unfamiliar problems by exploring the data a system produces. It is usually described as three pillars: metrics, logs and traces.

For most server estates, solid monitoring of metrics and logs delivers the greatest benefit. Distributed tracing becomes valuable as applications are split into many services. Open standards such as OpenTelemetry make it easier to add tracing later without changing tools.

Choosing a server monitoring solution

When comparing tools, these questions separate a good fit from a poor one:

  • Coverage: does it support every operating system, cloud and application you run?
  • Ease of setup: how long does it take to add a server, and can it be automated with tools such as Ansible, Terraform or Group Policy?
  • Alerting quality: does it support duration conditions, dependencies, maintenance windows and escalation, or will it flood you with noise?
  • Data retention: how long is history kept, and at what resolution?
  • Security: is data encrypted in transit and at rest, does the agent need inbound ports, and where is data stored?
  • Data residency: for UK and European organisations, where data is hosted affects UK GDPR obligations.
  • Integrations: does it connect to your chat, ticketing and on call tools?
  • Hosted or self hosted: a SaaS platform removes maintenance; self hosted tools give control but need looking after, and need monitoring themselves.
  • Cost model: per server, per metric or per data volume pricing can lead to very different bills as you grow.

Getting started

If you are starting from nothing, this order gives the most value quickly:

  1. Make an inventory of servers and the services each one provides.
  2. Add external uptime checks for anything customer facing.
  3. Install agents and collect the core resource metrics.
  4. Monitor the critical services and processes on each server.
  5. Set a small number of meaningful alerts and route them to the right people.
  6. Let data build up for two to four weeks, then tune thresholds against the baseline.
  7. Add log monitoring, certificate checks and security signals.
  8. Review alerts and dashboards regularly and remove anything nobody uses.

Next: read the metrics reference to decide what to measure, then the alerting guide to decide when to be told.

Start monitoring your servers in under five minutes

Free for up to three servers. No card required. Cancel or upgrade whenever you like.