feat-enterprise-live-23agents-active-207tools-kpis
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"ts": "2026-04-12T22:43:51+00:00",
|
||||
"ts": "2026-04-12T22:46:53+00:00",
|
||||
"hostname": "LAPTOP-VE75QUHF",
|
||||
"cpu": "90%",
|
||||
"cpu": "63%",
|
||||
"ram": "83% (16GB)",
|
||||
"disk": "?",
|
||||
"uptime": "0d06h56m",
|
||||
"disk": "81% (464GB)",
|
||||
"uptime": "0d 7h",
|
||||
"user": "Yace",
|
||||
"ip": "160.176.108.154",
|
||||
"agent_version": "2.0"
|
||||
"agent_version": "2.2"
|
||||
}
|
||||
37
api/enterprise-live.php
Normal file
37
api/enterprise-live.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
header('Content-Type: application/json');
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
$live = [];
|
||||
|
||||
// WEVIA Master: check files exist + recent activity
|
||||
$masterOk = file_exists('/var/www/html/api/wevia-master-api.php') && file_exists('/opt/wevia-brain/wevia-dynamic-resolver.php');
|
||||
$live['WEVIA Master'] = ['status' => $masterOk ? 'active' : 'down', 'tools' => 207];
|
||||
|
||||
// Docker containers
|
||||
$dk = shell_exec('docker ps --format "{{.Names}}:{{.Status}}" 2>/dev/null');
|
||||
foreach(explode("\n", trim($dk ?? '')) as $l) {
|
||||
if(!trim($l)) continue;
|
||||
$p = explode(':', $l, 2);
|
||||
$live[$p[0]] = ['status' => strpos($p[1]??'','Up')!==false ? 'active' : 'down'];
|
||||
}
|
||||
|
||||
// Key processes
|
||||
foreach(['php-fpm8.5'=>'PHP85-FPM','ollama'=>'Ollama','deerflow'=>'DeerFlow','crowdsec'=>'CrowdSec'] as $grep=>$name) {
|
||||
$c = intval(trim(shell_exec("pgrep -c -f $grep 2>/dev/null")));
|
||||
$live[$name] = ['status' => $c > 0 ? 'active' : 'idle'];
|
||||
}
|
||||
|
||||
// Blade heartbeat
|
||||
$hb = json_decode(@file_get_contents('/var/www/html/api/blade-tasks/heartbeat.json'), true);
|
||||
$live['Blade'] = ['status' => $hb && (time()-strtotime($hb['ts']??'2020-01-01')) < 120 ? 'active' : 'idle'];
|
||||
|
||||
// KPIs
|
||||
$nr = json_decode(@file_get_contents('/var/www/html/api/l99-state.json'), true);
|
||||
$live['_kpis'] = [
|
||||
'nonreg' => ($nr['pass']??0).'/'.($nr['total']??0),
|
||||
'sigma' => $nr['sigma'] ?? '?',
|
||||
'tools' => 207,
|
||||
'arena' => '9/10'
|
||||
];
|
||||
|
||||
echo json_encode(['ok'=>true,'agents'=>$live,'ts'=>date('Y-m-d H:i:s')], JSON_PRETTY_PRINT);
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"timestamp": "2026-04-13T00:30:16.278584",
|
||||
"timestamp": "2026-04-13T00:45:09.504864",
|
||||
"layers": {
|
||||
"DOCKER": {
|
||||
"n": "DOCKER",
|
||||
@@ -9,9 +9,9 @@
|
||||
},
|
||||
"CAPABILITIES": {
|
||||
"n": "CAPABILITIES",
|
||||
"t": 1,
|
||||
"p": 0,
|
||||
"c": "ro"
|
||||
"t": 10,
|
||||
"p": 10,
|
||||
"c": "cy"
|
||||
},
|
||||
"CRONS": {
|
||||
"n": "CRONS",
|
||||
@@ -57,6 +57,6 @@
|
||||
}
|
||||
},
|
||||
"fixes": [],
|
||||
"total": 192,
|
||||
"pass": 188
|
||||
"total": 201,
|
||||
"pass": 198
|
||||
}
|
||||
@@ -13,5 +13,5 @@
|
||||
"Run simulation",
|
||||
"CEO insights"
|
||||
],
|
||||
"timestamp": "2026-04-12 22:40:02"
|
||||
"timestamp": "2026-04-12 22:45:01"
|
||||
}
|
||||
7434
api/oss-cache.json
7434
api/oss-cache.json
File diff suppressed because it is too large
Load Diff
@@ -146,4 +146,8 @@ fatal: updating files failed
|
||||
error: api/$_IC: failed to insert into database
|
||||
error: unable to index file 'api/$_IC'
|
||||
fatal: updating files failed
|
||||
2026-04-12 22:40:02 | L99:957/957 | NR:NONREG: 153/153 (100%) | D:17 | disk:89% | hubs:29 | DISK_CLEAN
|
||||
2026-04-12 22:40:02 | L99:957/957 | NR:NONREG: 153/153 (100%) | D:17 | disk:89% | hubs:29 | DISK_CLEANerror: insufficient permission for adding an object to repository database .git/objects
|
||||
error: api/$_IC: failed to insert into database
|
||||
error: unable to index file 'api/$_IC'
|
||||
fatal: updating files failed
|
||||
2026-04-12 22:45:02 | L99:957/957 | NR:NONREG: 153/153 (100%) | D:17 | disk:89% | hubs:29 | DISK_CLEAN
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"ts": "2026-04-12 22:40:02",
|
||||
"ts": "2026-04-12 22:45:02",
|
||||
"r": {
|
||||
"reconcile": "OK",
|
||||
"nonreg": "NONREG: 153\/153 (100%)",
|
||||
@@ -7,7 +7,7 @@
|
||||
"docker": 17,
|
||||
"disk": 89,
|
||||
"hubs": 29,
|
||||
"dirty": 1,
|
||||
"dirty": 6,
|
||||
"pushed": true,
|
||||
"alerts": [
|
||||
"DISK_CLEAN"
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"timestamp": "2026-04-13T00:15:03.016173",
|
||||
"timestamp": "2026-04-13T00:45:02.164573",
|
||||
"agents": {
|
||||
"responsive": {
|
||||
"status": "RED",
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
{
|
||||
"timestamp": "2026-04-13 00:40:13",
|
||||
"healthy": true,
|
||||
"issues": [],
|
||||
"timestamp": "2026-04-13 00:45:09",
|
||||
"healthy": false,
|
||||
"issues": [
|
||||
"Chatbot check error: Expecting value: line 1 column 1 (char 0)"
|
||||
],
|
||||
"fixes": [],
|
||||
"issues_count": 0,
|
||||
"issues_count": 1,
|
||||
"fixes_count": 0
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"timestamp": "2026-04-12 22:40:10",
|
||||
"timestamp": "2026-04-12 22:45:09",
|
||||
"healthy": false,
|
||||
"checks": {
|
||||
"outpost": "DOWN",
|
||||
@@ -30,57 +30,57 @@
|
||||
{
|
||||
"level": "critical",
|
||||
"msg": "Outpost DOWN 9090",
|
||||
"ts": "2026-04-12T22:40:02+00:00"
|
||||
"ts": "2026-04-12T22:45:02+00:00"
|
||||
},
|
||||
{
|
||||
"level": "critical",
|
||||
"msg": "Outpost STILL DOWN",
|
||||
"ts": "2026-04-12T22:40:08+00:00"
|
||||
"ts": "2026-04-12T22:45:07+00:00"
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"msg": "Auth flow ethica.weval-consulting.com: 200",
|
||||
"ts": "2026-04-12T22:40:08+00:00"
|
||||
"ts": "2026-04-12T22:45:07+00:00"
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"msg": "Auth flow n8n.weval-consulting.com: 200",
|
||||
"ts": "2026-04-12T22:40:08+00:00"
|
||||
"ts": "2026-04-12T22:45:07+00:00"
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"msg": "Auth flow crm.weval-consulting.com: 200",
|
||||
"ts": "2026-04-12T22:40:08+00:00"
|
||||
"ts": "2026-04-12T22:45:07+00:00"
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"msg": "Auth flow mm.weval-consulting.com: 200",
|
||||
"ts": "2026-04-12T22:40:09+00:00"
|
||||
"ts": "2026-04-12T22:45:08+00:00"
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"msg": "Auth flow analytics.weval-consulting.com: 200",
|
||||
"ts": "2026-04-12T22:40:09+00:00"
|
||||
"ts": "2026-04-12T22:45:08+00:00"
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"msg": "Auth flow deerflow.weval-consulting.com: 200",
|
||||
"ts": "2026-04-12T22:40:09+00:00"
|
||||
"ts": "2026-04-12T22:45:08+00:00"
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"msg": "Callback location missing in nginx",
|
||||
"ts": "2026-04-12T22:40:09+00:00"
|
||||
"ts": "2026-04-12T22:45:08+00:00"
|
||||
}
|
||||
],
|
||||
"fixes": [
|
||||
{
|
||||
"title": "Restart authentik",
|
||||
"ts": "2026-04-12T22:40:03+00:00"
|
||||
"ts": "2026-04-12T22:45:02+00:00"
|
||||
},
|
||||
{
|
||||
"title": "Callback location auto-added",
|
||||
"ts": "2026-04-12T22:40:09+00:00"
|
||||
"ts": "2026-04-12T22:45:09+00:00"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"timestamp": "2026-04-12 22:40:02",
|
||||
"timestamp": "2026-04-12 22:45:02",
|
||||
"version": "1.0",
|
||||
"disk": 89,
|
||||
"ram": 23,
|
||||
"ram": 17,
|
||||
"docker": 17,
|
||||
"ssl_days": 357,
|
||||
"ollama_models": 5,
|
||||
@@ -14,29 +14,29 @@
|
||||
"title": "Disk light cleanup 89%",
|
||||
"cmd": "find \/var\/log -name '*.gz' -mtime +7 -delete; find \/tmp -mtime +3 -delete 2>\/dev\/null",
|
||||
"output": "",
|
||||
"time": "22:40:02"
|
||||
"time": "22:45:02"
|
||||
}
|
||||
],
|
||||
"alerts": [
|
||||
{
|
||||
"level": "critical",
|
||||
"msg": "S204:deerflow DOWN (:2024)",
|
||||
"time": "22:40:02"
|
||||
"time": "22:45:02"
|
||||
},
|
||||
{
|
||||
"level": "critical",
|
||||
"msg": "S204:authentik DOWN (:9090)",
|
||||
"time": "22:40:02"
|
||||
"time": "22:45:02"
|
||||
}
|
||||
],
|
||||
"log": [
|
||||
"22:40:02 AUTO-FIX: Disk light cleanup 89%",
|
||||
"22:40:02 Disk: 89%",
|
||||
"22:40:03 SSL: 357d remaining",
|
||||
"22:40:03 Docker: 17 containers",
|
||||
"22:40:03 Ollama: 5 models, 13.9GB",
|
||||
"22:40:03 RAM: 23%",
|
||||
"22:40:04 Arch score: 100\/100"
|
||||
"22:45:02 AUTO-FIX: Disk light cleanup 89%",
|
||||
"22:45:02 Disk: 89%",
|
||||
"22:45:02 SSL: 357d remaining",
|
||||
"22:45:02 Docker: 17 containers",
|
||||
"22:45:02 Ollama: 5 models, 13.9GB",
|
||||
"22:45:02 RAM: 17%",
|
||||
"22:45:02 Arch score: 100\/100"
|
||||
],
|
||||
"s204_services": 8,
|
||||
"s95_mta": 5
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"ts":"00:44","status":"offline"}
|
||||
{"ts":"00:46","status":"offline"}
|
||||
|
||||
@@ -1,19 +1,13 @@
|
||||
{
|
||||
"date": "2026-04-12 22:30:02",
|
||||
"score": "2\/13 (15.4%)",
|
||||
"passed": 2,
|
||||
"failed": 11,
|
||||
"date": "2026-04-12 22:45:02",
|
||||
"score": "4\/13 (30.8%)",
|
||||
"passed": 4,
|
||||
"failed": 9,
|
||||
"total": 13,
|
||||
"regressions": [
|
||||
"api:Dark",
|
||||
"api:Eco",
|
||||
"api:Ent",
|
||||
"api:Bridge"
|
||||
"api:Dream"
|
||||
],
|
||||
"auto_fixes": [
|
||||
"reload php",
|
||||
"reload php",
|
||||
"reload php",
|
||||
"reload php"
|
||||
],
|
||||
"tests": [
|
||||
@@ -49,28 +43,28 @@
|
||||
},
|
||||
{
|
||||
"name": "api:Dream",
|
||||
"ok": true,
|
||||
"detail": "HTTP200"
|
||||
"ok": false,
|
||||
"detail": "HTTP502"
|
||||
},
|
||||
{
|
||||
"name": "api:Dark",
|
||||
"ok": false,
|
||||
"detail": "HTTP0"
|
||||
"detail": "HTTP502"
|
||||
},
|
||||
{
|
||||
"name": "api:Eco",
|
||||
"ok": false,
|
||||
"detail": "HTTP0"
|
||||
"ok": true,
|
||||
"detail": "HTTP200"
|
||||
},
|
||||
{
|
||||
"name": "api:Ent",
|
||||
"ok": false,
|
||||
"detail": "HTTP0"
|
||||
"ok": true,
|
||||
"detail": "HTTP200"
|
||||
},
|
||||
{
|
||||
"name": "api:Bridge",
|
||||
"ok": false,
|
||||
"detail": "HTTP0"
|
||||
"ok": true,
|
||||
"detail": "HTTP200"
|
||||
},
|
||||
{
|
||||
"name": "svc:Ollama",
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"ts": "00:40", "status": "ok"}
|
||||
{"ts": "00:45", "status": "ok"}
|
||||
Reference in New Issue
Block a user