Files
weval-l99/scan_state.sh
2026-04-20 14:29:18 +02:00

32 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
echo "=== NR cache ==="
stat -c "cache_date: %y" /tmp/l99-honest-cache.json 2>/dev/null
AGE=$(($(date +%s) - $(stat -c %Y /tmp/l99-honest-cache.json 2>/dev/null || echo 0)))
echo "cache_age: ${AGE}s"
python3 -c "
import json
d=json.load(open('/tmp/l99-honest-cache.json'))
print(f'NR: {d[\"combined\"][\"pass\"]}/{d[\"combined\"][\"total\"]} · {d[\"pct\"]}% · {d[\"sigma\"]}')
print(f'ts: {d[\"ts\"]}')
" 2>/dev/null
echo ""
echo "=== Git ==="
cd /var/www/html && echo "dirty: $(git status --short | wc -l)"
cd /var/www/html && git log -1 --format="head: %h %s"
echo ""
echo "=== FPM ==="
ps aux | grep -c "php-fpm: pool"
echo ""
echo "=== V88 patches verify ==="
echo "auto-heal: $(grep -c 'V88' /var/www/html/api/wevia-auto-heal.php)"
echo "master-autoheal: $(grep -c 'V88' /var/www/html/api/wevia-master-autoheal.php)"
echo "searxng: $(grep -c 'V88' /var/www/html/api/searxng-proxy.php)"
echo "v83-dash-data: $(grep -c 'V88' /var/www/html/api/v83-business-kpi-dashboard-data.php)"
echo ""
echo "=== L99 cron ==="
crontab -l 2>/dev/null | grep -i l99 | head -3