commit a5c4099f58fd6d1de0a9ae3333c92bcaeb35c6c7 from: mischa date: Thu Oct 01 09:52:19 2020 UTC running in parallel commit - 59aa26cf9cc78f12fc78124edae652b9a1bb2f8e commit + a5c4099f58fd6d1de0a9ae3333c92bcaeb35c6c7 blob - ee6e15bdec865e3965a2e5ba2eef237630f952eb blob + 7a41e8f7341a83162867b7c9c99035f723c3d8ca --- wrapper.sh +++ wrapper.sh @@ -16,22 +16,35 @@ # #*/5 * * * * -n /home/mischa/rrdtool/wrapper.sh # +HOSTS="12 2" SCRIPTS="/home/mischa/rrdtool" -for i in $(jot 14); do ${SCRIPTS}/uptime.sh s${i}.obsda.ms; done -for i in $(jot 14); do ${SCRIPTS}/version.sh s${i}.obsda.ms; done -for i in $(jot 14); do ${SCRIPTS}/cpu_load.sh s${i}.obsda.ms; done -${SCRIPTS}/interface.sh s1.obsda.ms 12 -${SCRIPTS}/interface.sh s2.obsda.ms 6 -${SCRIPTS}/interface.sh s3.obsda.ms 12 -${SCRIPTS}/interface.sh s4.obsda.ms 12 -${SCRIPTS}/interface.sh s5.obsda.ms 12 -${SCRIPTS}/interface.sh s6.obsda.ms 12 -${SCRIPTS}/interface.sh s7.obsda.ms 12 -${SCRIPTS}/interface.sh s8.obsda.ms 12 -${SCRIPTS}/interface.sh s9.obsda.ms 12 -${SCRIPTS}/interface.sh s10.obsda.ms 12 -${SCRIPTS}/interface.sh s11.obsda.ms 12 -${SCRIPTS}/interface.sh s12.obsda.ms 8 -${SCRIPTS}/interface.sh s13.obsda.ms 8 -${SCRIPTS}/interface.sh s14.obsda.ms 8 +for i in $(jot ${HOSTS}); do + ${SCRIPTS}/uptime.sh s${i}.obsda.ms & +done +wait + +for i in $(jot ${HOSTS}); do + ${SCRIPTS}/version.sh s${i}.obsda.ms & +done +wait + +for i in $(jot ${HOSTS}); do + ${SCRIPTS}/cpu_load.sh s${i}.obsda.ms & +done +wait + +${SCRIPTS}/interface.sh s1.obsda.ms 12 & +${SCRIPTS}/interface.sh s2.obsda.ms 6 & +${SCRIPTS}/interface.sh s3.obsda.ms 12 & +${SCRIPTS}/interface.sh s4.obsda.ms 12 & +${SCRIPTS}/interface.sh s5.obsda.ms 12 & +${SCRIPTS}/interface.sh s6.obsda.ms 12 & +${SCRIPTS}/interface.sh s7.obsda.ms 12 & +${SCRIPTS}/interface.sh s8.obsda.ms 12 & +${SCRIPTS}/interface.sh s9.obsda.ms 12 & +${SCRIPTS}/interface.sh s10.obsda.ms 12 & +${SCRIPTS}/interface.sh s11.obsda.ms 12 & +${SCRIPTS}/interface.sh s12.obsda.ms 8 & +${SCRIPTS}/interface.sh s13.obsda.ms 8 & +#${SCRIPTS}/interface.sh s14.obsda.ms 8 &