mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 05:05:31 +00:00
tokyo2020 monitoring script: use root instead of sailing as the user to log on to the cloud replicas
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user