1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00
(cherry picked from commit f99cee59cb56d96de39372f2ffd12035fe4fae01)
This commit is contained in:
Ruben S. Montero 2022-06-03 09:25:48 +02:00
parent af42d54e76
commit 9cb798b75d
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -1228,9 +1228,9 @@ function send_to_monitor {
mon_conf=$ONE_LOCATION/etc/monitord.conf
fi
mon_address=$(cat "$mon_conf" | grep MONITOR_ADDRESS | cut -d , -f1 | \
mon_address=$(cat $mon_conf | grep MONITOR_ADDRESS | cut -d , -f1 | \
awk '{print $3}' | sed 's/^"\(.*\)"$/\1/')
mon_port=$(cat "$mon_config" | grep PORT | cut -d , -f1 | awk '{print $3}')
mon_port=$(cat $mon_conf | grep PORT | cut -d , -f1 | awk '{print $3}')
mon_key=$(cat $mon_conf | grep PUBKEY | cut -d , -f1 | awk '{print $3}' | \
sed 's/^"\(.*\)"$/\1/')