From 557f8dcf463a7058b2143a52732d81b529791216 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 15 Jun 2023 13:12:40 -0400 Subject: [PATCH] Update monitor-all.sh Use the first given IP in a VM --- misc/monitor-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/monitor-all.sh b/misc/monitor-all.sh index 236016ee..483acd48 100644 --- a/misc/monitor-all.sh +++ b/misc/monitor-all.sh @@ -46,7 +46,7 @@ while true; do else # It is a virtual machine config_cmd="qm config" - IP=$(qm guest cmd $instance network-get-interfaces | egrep -o "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -E "192\.|10\.") + IP=$(qm guest cmd $instance network-get-interfaces | egrep -o "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -E "192\.|10\." | head -n 1)) fi # Skip instances based on templates