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"
|
MEGA="1 1"
|
||||||
|
|
||||||
# SERVERS
|
# SERVERS
|
||||||
|
# Fetch uptime and version from all SERVERS
|
||||||
for i in $(jot ${SERVERS}); do
|
for i in $(jot ${SERVERS}); do
|
||||||
${SCRIPTS}/uptime.sh s${i}.obsda.ms &
|
${SCRIPTS}/uptime.sh s${i}.obsda.ms &
|
||||||
|
${SCRIPTS}/version.sh s${i}.obsda.ms &
|
||||||
done
|
done
|
||||||
wait
|
wait
|
||||||
|
# Fetch CPU load and interface statistics
|
||||||
for i in $(jot ${SERVERS}); do
|
for i in $(jot ${SERVERS}); do
|
||||||
${SCRIPTS}/version.sh s${i}.obsda.ms &
|
|
||||||
${SCRIPTS}/cpu_load.sh s${i}.obsda.ms &
|
${SCRIPTS}/cpu_load.sh s${i}.obsda.ms &
|
||||||
${SCRIPTS}/interface.sh s${i}.obsda.ms 9 &
|
${SCRIPTS}/interface.sh s${i}.obsda.ms 9 &
|
||||||
done
|
done
|
||||||
wait
|
wait
|
||||||
|
|
||||||
# MEGA
|
# MEGA
|
||||||
|
# Fetch uptime and version from all MEGA
|
||||||
for i in $(jot ${MEGA}); do
|
for i in $(jot ${MEGA}); do
|
||||||
${SCRIPTS}/uptime.sh m${i}.obsda.ms &
|
${SCRIPTS}/uptime.sh m${i}.obsda.ms &
|
||||||
|
${SCRIPTS}/version.sh m${i}.obsda.ms &
|
||||||
done
|
done
|
||||||
wait
|
wait
|
||||||
|
# Fetch CPU load and interface statistics
|
||||||
for i in $(jot ${MEGA}); do
|
for i in $(jot ${MEGA}); do
|
||||||
${SCRIPTS}/version.sh m${i}.obsda.ms &
|
|
||||||
${SCRIPTS}/cpu_load.sh m${i}.obsda.ms &
|
${SCRIPTS}/cpu_load.sh m${i}.obsda.ms &
|
||||||
${SCRIPTS}/interface.sh m${i}.obsda.ms 9 &
|
${SCRIPTS}/interface.sh m${i}.obsda.ms 9 &
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue