mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 06:39:25 +08:00
update
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
<p onclick="pluginInitD('loki');">自启动</p>
|
||||
<!-- <p onclick="gCommonFunc($('.plugin_version').attr('version'));">常用功能</p> -->
|
||||
<p onclick="pluginConfig('loki',$('.plugin_version').attr('version'),'conf');">配置</p>
|
||||
<p onclick="pluginLogs('loki','','run_log');">运行日志</p>
|
||||
<p onclick="gReadme();">相关说明</p>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -204,12 +204,9 @@ def initdUinstall():
|
||||
return data[1]
|
||||
return 'ok'
|
||||
|
||||
def runLog():
|
||||
return getServerDir() + "/data/log/grafana.log"
|
||||
|
||||
def grafanaUrl():
|
||||
ip = mw.getLocalIp()
|
||||
return 'http://'+ip+':'+"3000"
|
||||
return 'http://'+ip+':'+"3100"
|
||||
|
||||
def installPreInspection():
|
||||
return 'ok'
|
||||
@@ -243,8 +240,6 @@ if __name__ == "__main__":
|
||||
print(uninstallPreInspection())
|
||||
elif func == 'conf':
|
||||
print(getConf())
|
||||
elif func == 'run_log':
|
||||
print(runLog())
|
||||
elif func == 'grafana_url':
|
||||
print(grafanaUrl())
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user