tokyo2020 monitoring script: use root instead of sailing as the user to log on to the cloud replicas

This commit is contained in:
Generic Wiki User
2021-07-29 01:46:10 +00:00
parent 295882671c
commit 072e4705f0
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1 +1,2 @@
0 10 1 * * export PATH=/bin:/usr/bin:/usr/local/bin; mail-events-on-my >/dev/null 2>/dev/null
* * * * * export PATH=/bin:/usr/bin:/usr/local/bin; sleep $(( $RANDOM * 60 / 32768 )); update_authorized_keys_for_landscape_managers_if_changed $( cat /root/ssh-key-reader.token ) https://security-service.sapsailing.com /root 2>&1 >>/var/log/sailing.err
@@ -9,7 +9,7 @@ for i in $( cat `dirname $0`/regions.txt ); do
echo "${message}" | notify-operators "${message}"
else
read first others <<<"${IPs}"
if ! ssh -o StrictHostKeyChecking=no sailing@${first} "curl https://tokyo2020.sapsailing.com/gwt/status 2>/dev/null >/dev/null"; then
if ! ssh -o StrictHostKeyChecking=no root@${first} "curl https://tokyo2020.sapsailing.com/gwt/status 2>/dev/null >/dev/null"; then
echo "Problem reaching tokyo2020.sapsailing.com from instance ${first} in region ${i}" >&2
message="Problem reaching tokyo2020.sapsailing.com from instance ${first} in region ${i}"
echo "${message}" | notify-operators "${message}"