From 49694e76e1746bb5f76c821d1f592f32f291d484 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Thu, 18 Jun 2026 04:01:36 +0000 Subject: [PATCH] fix: update service monitor for JARVIS VM (nginx/php-fpm/mariadb instead of OLS/mysql) --- api/endpoints/do_server.php | 2 +- public_html/assets/js/jarvis-app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/endpoints/do_server.php b/api/endpoints/do_server.php index f9be559..7c7ef06 100644 --- a/api/endpoints/do_server.php +++ b/api/endpoints/do_server.php @@ -30,7 +30,7 @@ $dfOut = shell_exec("df / | tail -1 | awk {print }") ?? ""; $diskPct = trim($dfOut); // Services -$svcNames = ["lshttpd", "mysql", "redis"]; +$svcNames = ["nginx", "php8.3-fpm", "mariadb", "redis-server", "jarvis-arc", "jarvis-agent"]; $svcMap = []; foreach ($svcNames as $s) { $status = trim(shell_exec("systemctl is-active " . escapeshellarg($s) . " 2>/dev/null") ?? ""); diff --git a/public_html/assets/js/jarvis-app.js b/public_html/assets/js/jarvis-app.js index 8c13acd..c50deb0 100644 --- a/public_html/assets/js/jarvis-app.js +++ b/public_html/assets/js/jarvis-app.js @@ -397,7 +397,7 @@ let _refreshTick = 0; let selectedContext = null; const _panelCtx = {}; let _haEntities = {}; -const _svcLabels = {nginx:'WEB',mysql:'MYSQL',redis:'REDIS',memcached:'MEMCACHE',postfix:'POSTFIX',dovecot:'DOVECOT','jarvis-agent':'AGENT'}; +const _svcLabels = {nginx:'WEB','php8.3-fpm':'PHP',mariadb:'DB','redis-server':'REDIS','jarvis-arc':'ARC','jarvis-agent':'AGENT'}; async function refreshAll() { _refreshTick++;