refactor(discovery): use ping for discovery and fill MAC via SSH

This commit is contained in:
12600k-rog-d4
2026-08-12 21:45:51 +08:00
parent 906bb54aaa
commit 175c5e8c6c
21 changed files with 542 additions and 310 deletions

View File

@@ -0,0 +1,11 @@
echo '===MONITOR:dmesg==='
DMESG_ERR=$(dmesg --level=err,crit,alert,emerg 2>/dev/null | tail -30 || true)
if [ -n "$DMESG_ERR" ]; then
echo 'status:fail'
echo "output:${DMESG_ERR}"
else
echo 'status:pass'
echo 'output:无硬件相关内核报错'
fi
echo ''
echo '===END==='