rework logic slightly, to make sure we got all the latest uptime and version
This commit is contained in:
parent
0df8cf1e12
commit
a77a12d404
10
wrapper.sh
10
wrapper.sh
|
@ -21,26 +21,28 @@ SERVERS="15 1"
|
|||
MEGA="1 1"
|
||||
|
||||
# SERVERS
|
||||
# Fetch uptime and version from all SERVERS
|
||||
for i in $(jot ${SERVERS}); do
|
||||
${SCRIPTS}/uptime.sh s${i}.obsda.ms &
|
||||
${SCRIPTS}/version.sh s${i}.obsda.ms &
|
||||
done
|
||||
wait
|
||||
|
||||
# Fetch CPU load and interface statistics
|
||||
for i in $(jot ${SERVERS}); do
|
||||
${SCRIPTS}/version.sh s${i}.obsda.ms &
|
||||
${SCRIPTS}/cpu_load.sh s${i}.obsda.ms &
|
||||
${SCRIPTS}/interface.sh s${i}.obsda.ms 9 &
|
||||
done
|
||||
wait
|
||||
|
||||
# MEGA
|
||||
# Fetch uptime and version from all MEGA
|
||||
for i in $(jot ${MEGA}); do
|
||||
${SCRIPTS}/uptime.sh m${i}.obsda.ms &
|
||||
${SCRIPTS}/version.sh m${i}.obsda.ms &
|
||||
done
|
||||
wait
|
||||
|
||||
# Fetch CPU load and interface statistics
|
||||
for i in $(jot ${MEGA}); do
|
||||
${SCRIPTS}/version.sh m${i}.obsda.ms &
|
||||
${SCRIPTS}/cpu_load.sh m${i}.obsda.ms &
|
||||
${SCRIPTS}/interface.sh m${i}.obsda.ms 9 &
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue