Skip to content

Laande/monitor-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System Monitoring Dashboard

A real-time system monitoring dashboard built with Flask and Socket.IO. Monitor CPU, RAM, disk usage, network activity, systemd services, and custom files.

Features

  • Real-time System Metrics: CPU, RAM, disk, and network monitoring with live updates
  • Systemd Service Monitoring: Track status, uptime, memory usage, and logs of systemd services
  • File Monitoring: Monitor custom files with automatic content updates when files change
  • WebSocket Updates: Real-time data updates every 5 seconds
  • Caching: Client-side caching for seamless navigation between pages

Installation

  1. Clone the repository:
git clone https://github.com/Laande/monitor-server.git
cd monitor-server
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure your services and files in config.py:
SYSTEMD_SERVICES = [
    "your-service.service",
]

MONITORED_FILES = [
    {'name': 'Log File', 'path': '/path/to/file.log', 'expand': False},
]

Configuration

config.py

  • SYSTEMD_SERVICES: List of systemd service names to monitor
  • MONITORED_FILES: List of files to monitor with options:
    • name: Display name for the file
    • path: Absolute path to the file
    • expand: (optional) Set to False to collapse content by default

Usage

Run the application:

python app.py

Access the dashboard at http://localhost:5500

Preview

Preview

About

Monitor server & systemd services

Resources

License

Stars

Watchers

Forks

Contributors