Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + APPLICATION_NAME=memcachestream
- + WOWZA_IP=172.30.0.175
- + RESTAPI_PORT=8087
- + USER=admin
- + PASS=a
- + CURRENT='/usr/bin/curl --silent --digest -u admin:a -X GET --header '\''Accept:application/json; charset=utf-8'\'' http://172.30.0.175:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/memcachestream/monitoring/current'
- + APPRESS='/usr/bin/curl --silent --digest -u admin:a -X PUT --header '\''Accept:application/json; charset=utf-8'\'' http://172.30.0.175:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/memcachestream/actions/restart'
- ++ /usr/bin/curl --silent --digest -u admin:a -X GET --header ''\''Accept:application/json;' 'charset=utf-8'\''' http://172.30.0.175:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/memcachestream/monitoring/current
- ++ /usr/bin/cut -f1 '-d<'
- ++ /usr/bin/cut -f2 '-d>'
- ++ /bin/grep memcachestream
- + APPEXIST=memcachestream
- ++ /usr/bin/cut -f1 '-d<'
- ++ /usr/bin/cut -f2 '-d>'
- ++ /bin/grep Uptime
- ++ /usr/bin/curl --silent --digest -u admin:a -X GET --header ''\''Accept:application/json;' 'charset=utf-8'\''' http://172.30.0.175:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/memcachestream/monitoring/current
- + WURKTIME=0
- ++ /usr/bin/cut -f1 '-d<'
- ++ /usr/bin/cut -f2 '-d>'
- ++ /bin/grep TotalConnections
- ++ /usr/bin/curl --silent --digest -u admin:a -X GET --header ''\''Accept:application/json;' 'charset=utf-8'\''' http://172.30.0.175:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/memcachestream/monitoring/current
- + TOTALCON=0
- + [[ memcachestream = memcachestream ]]
- + [[ 0 -gt 0 ]]
- + /bin/echo ' '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement