This guide uses Docker Compose to run Thruk monitoring web interface.
For Docker installation, see Docker.
Thruk is a web interface that connects to existing Nagios, Icinga, or Naemon installations. It requires access to a monitoring backend.
mkdir -p /opt/thruk/{config,data}
cd /opt/thruk
Create docker-compose.yml:
services:
thruk:
image: monitoringartist/thruk-xxl:3.26
container_name: thruk
hostname: thruk
ports:
- "80:80"
volumes:
- ./config/thruk:/etc/thruk:rw
- ./data:/var/lib/thruk:rw
- /path/to/nagios/rw/nagios.cmd:/nagios/rw/nagios.cmd:rw
- /path/to/nagios/status.dat:/nagios/status.dat:ro
environment:
- THROOK_BACKEND_LIVESTATUS=tcp://nagios-server:6557
restart: unless-stopped
docker compose up -d
Check container status:
docker compose ps
View logs:
docker compose logs -f thruk
Access web UI at http://SERVER_IP
docker compose restart thruk
docker compose down
docker compose pull
docker compose up -d
Edit ./config/thruk/thruk.conf:
backends = (
{
type = 'livestatus'
name = 'Nagios'
config = {
socket = 'tcp://nagios-server:6557'
}
}
)
Running containers in production? We help with:
Need help? office@linux-server-admin.com or Contact Us