[amgad]

Nagios monitoring stack

A Nagios server watching a WordPress web host and a MySQL database through NRPE health checks, all running as containers on a custom Docker network with static IPs.

PERIOD
"Dec 2024"
STACK
"Nagios, Docker Compose, MySQL, Apache"
UPDATED
"Sep 2026"
github.com/amga-d/nagios-docker-monitoring

Overview

A complete monitoring setup defined in one Docker Compose file. A Nagios server watches two hosts: a web server running WordPress on Apache, and a MySQL database server.

The database host runs the NRPE agent, so Nagios can run health checks on it remotely. All three containers sit on a custom Docker network with static IP addresses, so the host definitions in Nagios never go stale.

What I built

  • Dockerized Nagios server that monitors the web host and the database service.
  • MySQL container with NRPE configured for remote health checks.
  • Ubuntu container running WordPress on Apache2.
  • Custom Docker network with a static IP for each container.

How it fits together

    • Nagios serverchecks and alerts
  1. NRPE checks
    • Web hostUbuntu, Apache2, WordPress
    • Database hostMySQL, NRPE agent

One custom Docker network. Every container has a static IP.

In the repository

$ git clone https://github.com/amga-d/nagios-docker-monitoring.git

tree -L 1

.
├── .github/
├── apache/
├── mariadb/
├── nagios/
├── webfolder/
├── .gitignore
├── docker-compose.yml
└── README.md

git log --author=amga-d --oneline -2

  1. 915ed7fbuild: add docker cloud build workflow
  2. 15e4871Create README.md