|
|
@ -436,6 +436,7 @@ def runInfo(): |
|
|
|
data['Waiting'] = tmp[15] |
|
|
|
data['Waiting'] = tmp[15] |
|
|
|
return mw.getJson(data) |
|
|
|
return mw.getJson(data) |
|
|
|
except Exception as e: |
|
|
|
except Exception as e: |
|
|
|
|
|
|
|
try: |
|
|
|
url = 'http://' + mw.getHostAddr() + ':%s/nginx_status' % port |
|
|
|
url = 'http://' + mw.getHostAddr() + ':%s/nginx_status' % port |
|
|
|
result = mw.httpGet(url) |
|
|
|
result = mw.httpGet(url) |
|
|
|
tmp = result.split() |
|
|
|
tmp = result.split() |
|
|
@ -448,6 +449,9 @@ def runInfo(): |
|
|
|
data['Writing'] = tmp[13] |
|
|
|
data['Writing'] = tmp[13] |
|
|
|
data['Waiting'] = tmp[15] |
|
|
|
data['Waiting'] = tmp[15] |
|
|
|
return mw.getJson(data) |
|
|
|
return mw.getJson(data) |
|
|
|
|
|
|
|
except Exception as e: |
|
|
|
|
|
|
|
return mw.returnJson(False, "oprenresty异常!") |
|
|
|
|
|
|
|
|
|
|
|
except Exception as e: |
|
|
|
except Exception as e: |
|
|
|
return mw.returnJson(False, "oprenresty not started!") |
|
|
|
return mw.returnJson(False, "oprenresty not started!") |
|
|
|
|
|
|
|
|
|
|
|