
Hi everyone,
I’m excited to share a project I’ve been working on to solve the “MRTG headache” on production hosting servers. While there are many MRTG scripts out there, most make too many assumptions about the OS or struggle with the custom paths often found in DirectAdmin environments.
MRTG Professional Suite is a production-hardened installer designed specifically for hosting admins who need high-reliability telemetry without the overhead of heavy monitoring agents.
🚀 What makes this different?
- Zero-Assumption Detection: It intelligently finds your web server (Apache/Nginx/LiteSpeed) and the correct
public_htmlpaths. - Deep Service Integration: Monitors more than just traffic. It tracks:
- Rspamd: Scanned vs. Rejected (Spam) counts.
- Database: MySQL/MariaDB connected vs. running threads.
- Mail: Exim queue and Dovecot login health.
- Cache: Redis memory and command throughput.
- Hardened for Production: Uses a robust Lock-File system to prevent race conditions during high-I/O periods that typically corrupt MRTG logs.
- Firewall Auto-Patch: Detects and updates CSF, firewalld, or UFW to allow local SNMP traffic.
- Native DA Plugin: Automatically creates a plugin entry in the DirectAdmin “Admin Level” menu for easy access.
📊 Real-Time Visualization
The suite generates high-fidelity time-series graphs for CPU, RAM, Disk I/O, and service-specific metrics, providing a historical view of server performance.
🛠️ Installation
The script is interactive by default but supports a headless --auto mode for bulk deployments.
Interactive Install:
wget https://raw.githubusercontent.com/waelisa/mrtg/main/install-mrtg.sh
chmod +x install-mrtg.sh
./install-mrtg.sh
Automated / Headless:
./install-mrtg.sh --auto
📋 System Requirements
- OS: CentOS/AlmaLinux 7/8/9, Debian 10+, Ubuntu 20.04+
- Access: Root privileges required.
- Panel: Optimized for DirectAdmin, but works with any environment.
🔗 Resources
- GitHub Repository: https://github.com/waelisa/mrtg
- Issue Tracker: If you find a bug or have a feature request for a specific DA service, please open an issue on GitHub!
I’d love to hear your feedback or see how it performs on your high-traffic nodes!
Best regards, Wael Isa