Update monitor-all.sh

Use the first given IP in a VM
pull/1593/head
tteckster 1 year ago committed by GitHub
parent e40593c058
commit 557f8dcf46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -46,7 +46,7 @@ while true; do
else else
# It is a virtual machine # It is a virtual machine
config_cmd="qm config" 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 fi
# Skip instances based on templates # Skip instances based on templates

Loading…
Cancel
Save

Powered by BW's shoe-string budget.