mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-27 15:31:59 +00:00
Update monitor-all.sh
Use the first given IP in a VM
This commit is contained in:
parent
e40593c058
commit
557f8dcf46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user