X-Git-Url: http://git.onelab.eu/?p=myops.git;a=blobdiff_plain;f=web%2Fcollect%2Fautomate%2Frun.sh;fp=web%2Fcollect%2Fautomate%2Frun.sh;h=521fb241d32f31f4b327d321255d4c3bf59cee2e;hp=0000000000000000000000000000000000000000;hb=85070b3d456667f238051af1a2f1f2a0c12300ab;hpb=607f0e13927eb18075c375fa9ba5527da4fcbb44 diff --git a/web/collect/automate/run.sh b/web/collect/automate/run.sh new file mode 100755 index 0000000..521fb24 --- /dev/null +++ b/web/collect/automate/run.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +export PATH=$PATH:/usr/bin:/bin:/usr/sbin +cd /usr/share/monitor-trunk/multiops/ +/usr/bin/curl -s --insecure 'https://128.112.139.113/monitor/query?tg_format=plain&object=nodes&nodehistory_hostname=&observed_status=on&uptime=on&hostname=on&rpmvalue=' | grep BOOT | tr ' ' ',' | awk -F, '{print $1}' > out.nodes + +T=`date --rfc-3339='seconds'| tr ' ' 'T'` +/usr/share/monitor-trunk/tools/automate/fetch.py --nodelist out.nodes --timeout 180 --cmd install_on_node.sh --outdir install_on_node.sh-$T + +