Automated maintenance update - So 29 Mär 2026 17:04:18 CEST

This commit is contained in:
aitbc1
2026-03-29 17:04:18 +02:00
parent 45cc1c8ddb
commit b5da4b15bb

11
scripts/network_monitor.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
# Network monitoring script
echo "=== Network Monitor ==="
echo "Time: $(date)"
echo "aitbc1 height: $(curl -s http://localhost:8006/rpc/head | jq .height)"
echo "aitbc height: $(ssh aitbc 'curl -s http://localhost:8006/rpc/head | jq .height 2>/dev/null || echo "0"')"
echo "Redis status: $(redis-cli ping)"
echo "Network latency: $(ping -c 1 10.1.223.93 | grep "time=" | cut -d= -f2)"
echo "Memory usage: $(free -h | grep Mem)"
echo "CPU usage: $(top -bn1 | grep "Cpu(s)" | awk '{print $2}' | cut -d% -f1)%"
echo "================================"