mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
<p class="bgw" onclick="pluginService('sys-opt');">服务</p>
|
||||
<p onclick="pluginConfig('sys-opt','','conf');">系统配置</p>
|
||||
<p onclick="pluginLogs('sys-opt','','sec_run_log', 20);">安全日志</p>
|
||||
<p onclick="pluginLogs('sys-opt','','msg_run_log', 20);">常用日志</p>
|
||||
<p onclick="pluginLogs('sys-opt','','cron_run_log', 20);">任务日志</p>
|
||||
<p onclick="pRead()">说明</p>
|
||||
</div>
|
||||
<div class="bt-w-con pd15">
|
||||
|
||||
@@ -41,6 +41,12 @@ def sysConf():
|
||||
def secRunLog():
|
||||
return '/var/log/secure'
|
||||
|
||||
def msgRunLog():
|
||||
return '/var/log/message'
|
||||
|
||||
def cronRunLog():
|
||||
return '/var/log/cron'
|
||||
|
||||
if __name__ == "__main__":
|
||||
func = sys.argv[1]
|
||||
if func == 'status':
|
||||
@@ -57,5 +63,9 @@ if __name__ == "__main__":
|
||||
print sysConf()
|
||||
elif func == 'sec_run_log':
|
||||
print secRunLog()
|
||||
elif func == 'msg_run_log':
|
||||
print msgRunLog()
|
||||
elif func == 'cron_run_log':
|
||||
print cronRunLog()
|
||||
else:
|
||||
print 'err'
|
||||
|
||||
Reference in New Issue
Block a user