Comprehensive health check for all Moodle services, containers, databases, and system resources
/plugin marketplace add astoeffer/moodle-plugin-marketplace/plugin install server-ops@astoeffer-dev-pluginsPerform a comprehensive health check of the multi-version Moodle development environment.
Container Status
docker ps to verify all 3 containers are runningService Status (inside moodle-dev container)
docker exec moodle-dev sudo systemctl status nginxdocker exec moodle-dev sudo systemctl status php8.1-fpm php8.2-fpm php8.3-fpmPHP-FPM Sockets
docker exec moodle-dev ls -la /run/php/Database Connectivity
docker exec moodle-dev mysql -h db -u moodleuser -pm@0dl3ing -e "SHOW DATABASES;"Web Service Availability
System Resources
df -h (focus on /opt and /workspace)free -hdocker stats --no-streamRecent Errors
Present results in a clear table format:
SERVICE HEALTH CHECK
====================
Containers: ✓ 3/3 running
Services: ✓ nginx, php8.1-fpm, php8.2-fpm, php8.3-fpm
Sockets: ✓ 4/4 present
Database: ✓ Connected, 4 databases
Web: ✓ 4/4 instances responding
Disk: 45% used (/opt)
Memory: 12.3 GB / 16 GB used
Recent Errors: None
If any checks fail, provide specific details and suggested remediation steps.