2.3 KiB
🤖 Fleet Control Agent
🌍 Read in English | 🇮🇹 Leggi in Italiano
🇬🇧 English
The Fleet Control Agent is a lightweight monitoring script designed for remote nodes (Raspberry Pi / Linux). It collects hardware telemetry and executes commands sent from the Central Dashboard via MQTT.
✨ Features
- Real-Time Telemetry: Monitors CPU usage, RAM, Temperature, and Disk space.
- Service Management: Remote Start, Stop, or Restart of system daemons (MMDVMHost, DMRGateway, etc.).
- Smart Auto-Healing: Automatically detects crashed services and attempts to revive them.
- Hardware Reset (GPIO): Physically reboot the MMDVM radio HAT via GPIO pins directly from the dashboard.
🚀 Quick Installation
-
Clone the repo:
git clone https://git.arifvg.it/iv3jdv/fleet-control-agent.git web-control cd web-control -
Install dependencies:
pip install -r requirements.txt -
Configure: Edit
node_config.jsonwith your MQTT credentials and a uniqueclient_id. -
Run:
python3 system_monitor.py
🇮🇹 Italiano
Il Fleet Control Agent è uno script di monitoraggio leggero progettato per i nodi remoti (Raspberry Pi / Linux). Raccoglie la telemetria hardware ed esegue i comandi inviati dalla Dashboard Centrale tramite protocollo MQTT.
✨ Funzionalità
- Telemetria in Tempo Reale: Monitoraggio di utilizzo CPU, RAM, Temperatura e spazio su Disco.
- Gestione Servizi: Avvio, arresto o riavvio remoto dei demoni di sistema (MMDVMHost, DMRGateway, ecc.).
- Auto-Healing Intelligente: Rileva automaticamente i servizi andati in blocco e tenta di riavviarli autonomamente.
- Reset Hardware (GPIO): Invia un impulso di reset fisico alla scheda radio MMDVM tramite i pin GPIO direttamente dalla dashboard.
🚀 Installazione Rapida
-
Clona il repository:
git clone https://git.arifvg.it/iv3jdv/web-control-agent.git web-control cd web-control -
Installa le dipendenze:
pip install -r requirements.txt -
Configurazione: Modifica il file
node_config.jsoninserendo le tue credenziali MQTT e unclient_idunivoco. -
Avvio:
python3 system_monitor.py
Created by IV3JDV @ ARIFVG - 2026