From 111864d0b318171d98cb146a8f20750fe250267f Mon Sep 17 00:00:00 2001 From: headlessdev Date: Thu, 24 Apr 2025 14:38:45 +0200 Subject: [PATCH] Hotifx edit serve rmenu monitoring --- app/dashboard/servers/Servers.tsx | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/app/dashboard/servers/Servers.tsx b/app/dashboard/servers/Servers.tsx index 26af2f8..51de441 100644 --- a/app/dashboard/servers/Servers.tsx +++ b/app/dashboard/servers/Servers.tsx @@ -1740,6 +1740,52 @@ export default function Dashboard() { )} + +
+
+ setEditMonitoring(checked === true)} + /> + +
+ {editMonitoring && ( + <> +
+ + setEditMonitoringURL(e.target.value)} + /> +
+
+

Required Server Setup

+

+ To enable monitoring, you need to install Glances on your server. Here's an example Docker Compose configuration: +

+
+                                                {`services:
+  glances:
+    image: nicolargo/glances:latest
+    container_name: glances
+    restart: unless-stopped
+    ports:
+      - "61208:61208"
+    pid: "host"
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock:ro
+    environment:
+      - GLANCES_OPT=-w --disable-webui`}
+                                              
+
+ + )} +
+