Commit 6d95762 1 parent e4d4c65 commit 6d95762 Copy full SHA for 6d95762
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # create-message.sh 2.16.67 2018-03-03_12:06:15_CST https://github.com/BradleyA/pi-display uadmin three-rpi3b.cptx86.com 2.15-1-ge4d4c65
3
+ # add failover automation support, closes #1
2
4
# create-message.sh 2.15.65 2018-03-02_17:26:20_CST https://github.com/BradleyA/pi-display uadmin three-rpi3b.cptx86.com 2.14
3
5
# added Memory and Disk
4
- # create-message.sh 2.14.64 2018-03-02_15:19:54_CST https://github.com/BradleyA/pi-display uadmin three-rpi3b.cptx86.com 2.13
5
- # added labels for Celsius, Fahrenheit, & System_load: to remote hosts
6
6
#
7
7
# set -x
8
8
# set -v
@@ -86,8 +86,8 @@ for NODE in $(cat ${DATA_DIR}${CLUSTER}/SYSTEMS); do
86
86
TEMP=" echo ${MEMORY} >> ${DATA_DIR}${CLUSTER} /${NODE} ; echo ${DISK} >> ${DATA_DIR}${CLUSTER} /${NODE} "
87
87
ssh -q -t -i ~ /.ssh/id_rsa -p ${SSHPORT} ${ADMUSER} @${NODE} ${TEMP}
88
88
scp -q -i ~ /.ssh/id_rsa -P ${SSHPORT} ${ADMUSER} @${NODE} :${DATA_DIR}${CLUSTER} /${NODE} ${DATA_DIR}${CLUSTER}
89
- scp -q -i ~ /.ssh/id_rsa -P ${SSHPORT} ${ADMUSER} @ ${NODE} : ${DATA_DIR}${CLUSTER} /MESSAGE ${DATA_DIR}${CLUSTER}
90
- scp -q -i ~ /.ssh/id_rsa -P ${SSHPORT} ${ADMUSER} @ ${NODE} : ${DATA_DIR}${CLUSTER} /SYSTEMS ${DATA_DIR}${CLUSTER}
89
+ scp -q -i ~ /.ssh/id_rsa -P ${SSHPORT} ${DATA_DIR}${CLUSTER} /MESSAGE ${ADMUSER} @ ${NODE} : ${DATA_DIR}${CLUSTER}
90
+ scp -q -i ~ /.ssh/id_rsa -P ${SSHPORT} ${DATA_DIR}${CLUSTER} /SYSTEMS ${ADMUSER} @ ${NODE} : ${DATA_DIR}${CLUSTER}
91
91
else
92
92
echo -e " ${NORMAL}${0} ${LINENO} [${BOLD} WARN${NORMAL} ]: ${NODE} not responding on port ${SSHPORT} .\n" 1>&2
93
93
fi
You can’t perform that action at this time.
0 commit comments