From 644e5900d9c4cfcedb5162a8c0e6a81d5f0fcc99 Mon Sep 17 00:00:00 2001 From: moshekv <38536056+moshekv@users.noreply.github.com> Date: Thu, 28 Aug 2025 08:17:58 +0300 Subject: [PATCH] add support for multiple ip addresses in monitor-all.sh (#7244) --- tools/pve/monitor-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pve/monitor-all.sh b/tools/pve/monitor-all.sh index 30795cce1..abbf0d166 100644 --- a/tools/pve/monitor-all.sh +++ b/tools/pve/monitor-all.sh @@ -93,7 +93,7 @@ while true; do fi else # Container: get IP and ping - IP=$(pct exec $instance ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) + IP=$(pct exec $instance ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1 | head -n1) if ! ping -c 1 $IP >/dev/null 2>&1; then echo "$(date): CT $instance is not responding, restarting..." pct stop $instance >/dev/null 2>&1