mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
fix: update service monitor for JARVIS VM (nginx/php-fpm/mariadb instead of OLS/mysql)
This commit is contained in:
@@ -30,7 +30,7 @@ $dfOut = shell_exec("df / | tail -1 | awk {print }") ?? "";
|
|||||||
$diskPct = trim($dfOut);
|
$diskPct = trim($dfOut);
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
$svcNames = ["lshttpd", "mysql", "redis"];
|
$svcNames = ["nginx", "php8.3-fpm", "mariadb", "redis-server", "jarvis-arc", "jarvis-agent"];
|
||||||
$svcMap = [];
|
$svcMap = [];
|
||||||
foreach ($svcNames as $s) {
|
foreach ($svcNames as $s) {
|
||||||
$status = trim(shell_exec("systemctl is-active " . escapeshellarg($s) . " 2>/dev/null") ?? "");
|
$status = trim(shell_exec("systemctl is-active " . escapeshellarg($s) . " 2>/dev/null") ?? "");
|
||||||
|
|||||||
@@ -397,7 +397,7 @@ let _refreshTick = 0;
|
|||||||
let selectedContext = null;
|
let selectedContext = null;
|
||||||
const _panelCtx = {};
|
const _panelCtx = {};
|
||||||
let _haEntities = {};
|
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() {
|
async function refreshAll() {
|
||||||
_refreshTick++;
|
_refreshTick++;
|
||||||
|
|||||||
Reference in New Issue
Block a user