Skip to content

Instantly share code, notes, and snippets.

@diegolovison
Created May 25, 2018 14:29
Show Gist options
  • Save diegolovison/d59f02097fd6f651383a7d606b6a3f38 to your computer and use it in GitHub Desktop.
Save diegolovison/d59f02097fd6f651383a7d606b6a3f38 to your computer and use it in GitHub Desktop.
Monitor probe every X minutes
#!/bin/bash
#Usage ./monitor.sh UNICAST3 FD_ALL FD_SOCK VERIFY_SUSPECT
while [ true ]
do
for var in "$@"
do
current_date_time="`date +%Y%m%d%H%M%S`";
echo " >> $var >> $current_date_time"
./probe.sh jmx=$var
done
sleep 60
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment