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"
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
- NRPE checks
- Web hostUbuntu, Apache2, WordPress
- Database hostMySQL, NRPE agent
One custom Docker network. Every container has a static IP.