You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#create simple log file that check webservice with curl (config file like this name,ip,port)
while IFS="," read name ip port junk; do if curl -s http://192.168.1.1.1:"$port"/start/ |grep -q "login" ; then echo "$(date +"%Y-%m-%d %T") "$name" UP"; else echo "$(date +"%Y-%m-%d %T") "$name" DOWN"; fi; done < /opt/config