This commit is contained in:
midoks
2019-12-07 01:04:34 +08:00
parent 52b48888bc
commit b547b4bc9f
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -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">
+10
View File
@@ -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'