From b5da4b15bb52de2e2409bc9890ed76e4d48592c7 Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Sun, 29 Mar 2026 17:04:18 +0200 Subject: [PATCH] =?UTF-8?q?Automated=20maintenance=20update=20-=20So=2029?= =?UTF-8?q?=20M=C3=A4r=202026=2017:04:18=20CEST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/network_monitor.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/network_monitor.sh diff --git a/scripts/network_monitor.sh b/scripts/network_monitor.sh new file mode 100755 index 00000000..633280b9 --- /dev/null +++ b/scripts/network_monitor.sh @@ -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 "================================"