rework logic slightly, to make sure we got all the latest uptime and version

This commit is contained in:
mischa 2022-07-01 22:29:12 +02:00
parent 0df8cf1e12
commit a77a12d404
1 changed files with 6 additions and 4 deletions

View File

@ -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