Skip to content

alwkala/DataCon

Repository files navigation

DataCon+ Server Monitor Dashboard

A modern, real-time server monitoring dashboard designed for hosting environments. Monitor your servers' health with ease using a sleek, m interface.

Dashboard Screenshot

🚀 Overview

DataCon+ transforms your server monitoring experience. It connects seamlessly to Glances instances across your network, providing a centralized "Mission Control" for your infrastructure.

PHP License AlmaLinux Uptime


✨ Key Features

  • 🖥️ Real-time Monitoring - CPU, RAM, and disk usage updated every 10 seconds.
  • 📊 Pro Terminal Experience - Integrated Xterm.js for remote server management.
  • Dynamic Server Management - Add, edit, and delete servers directly via the UI.
  • 🔒 Secure by Design - Supports SSL/TLS and HTTP Basic Auth for remote instances.
  • 📱 Mobile Optimized - A fully responsive design that looks stunning on any device.
  • Lightweight - No database required; zero-lag performance on standard shared hosting.

🛠️ Installation Guide

Prerequisites

  • Web Server: Apache 2.4+ / LiteSpeed (cPanel/WHM ready)
  • PHP: 7.4 or higher
  • Extensions: curl, json, mbstring
  • Remote Servers: Glances installed and running in web mode

Step 1: Upload & Initial Setup

  1. Download the latest release and upload all files to your web root (e.g., /public_html/mon/).
  2. Set Permissions:
    chmod 644 *.php
    chmod 600 config.php   # Essential for security

Step 2: Configure Authentication

Change the default credentials in config.php before proceeding.

Default Login:

  • User: admin
  • Pass: admin123

Important

To generate a secure password hash, run: php -r "echo password_hash('YOUR_NEW_PASSWORD', PASSWORD_DEFAULT);"


Step 3: Remote Server Setup (The "Agent")

On each server you wish to monitor, run our quick-install script:

curl -O https://your-dashboard-domain.com/mon/install-glances.sh
chmod +x install-glances.sh
sudo ./install-glances.sh

What this script does:

  1. Installs Glances via DNF/APT.
  2. Configures a systemd service for auto-start.
  3. Opens port 61208 in the local firewall.

Step 4: Firewall Configuration (CSF/LFD)

If you use ConfigServer Security & Firewall (CSF), ensure the dashboard server can talk to the remote agents:

On the Dashboard Server:

# Allow outbound to Glances port
csf -a REMOTE_SERVER_IP

On Remote Servers:

# Allow inbound from Dashboard
csf -a DASHBOARD_SERVER_IP
csf -r

🔧 Troubleshooting

Issue Solution
Server Offline Ensure glances is running: sudo systemctl status glances
Iframe Blocked Your browser might block cross-origin iframes. Use the "Open in New Tab" button.
Permission Denied Check if config.php and servers.json are writable by the web server user.
CSF Blocks Check /var/log/lfd.log for port 61208 block entries.

🛡️ Security Best Practices

  1. SSL Everywhere: Always use HTTPS for the dashboard and remote Glances instances.
  2. IP Whitelisting: Use .htaccess or CSF to restrict access to your dashboard IP.
  3. Dedicated User: Run Glances as a non-privileged user on remote systems.

📜 License

Distributed under the MIT License. See LICENSE for more information.


👨‍💻 Developer Information

Wael Salaheldien | Alwkala
📍 Cairo, Egypt


❤️ Credits & Support

  • Powered by Glances.
  • Built with ❤️ for the ePlusWeb Infrastructure Team.

About

A modern, real-time server monitoring dashboard designed for hosting environments. Monitor your servers' health with ease using a sleek, m interface.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors