pull/109/head
midoks 3 years ago
parent a638354d2c
commit cd0a2df91a
  1. 2
      plugins/openresty/index.py
  2. 2
      plugins/php/index.py

@ -269,7 +269,7 @@ def runInfo():
# 取Openresty负载状态
try:
url = 'http://' + mw.GetLocalIp() + '/nginx_status'
url = 'http://' + mw.getHostAddr() + '/nginx_status'
result = mw.httpGet(url)
tmp = result.split()
data = {}

@ -536,7 +536,7 @@ def getFpmStatus(version):
checkFpmStatusFile(version)
try:
url = 'http://' + mw.getLocalIp() + '/phpfpm_status_' + version + '?json'
url = 'http://' + mw.getHostAddr() + '/phpfpm_status_' + version + '?json'
result = mw.httpGet(url)
except Exception as e:
url = 'http://127.0.0.1/phpfpm_status_' + version + '?json'

Loading…
Cancel
Save