From b547b4bc9fa4b70181b1b2f1ab12366325e3aa70 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 7 Dec 2019 01:04:34 +0800 Subject: [PATCH] up --- plugins/sys-opt/index.html | 2 ++ plugins/sys-opt/index.py | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/plugins/sys-opt/index.html b/plugins/sys-opt/index.html index 5a9ecf41e..1623ee17c 100755 --- a/plugins/sys-opt/index.html +++ b/plugins/sys-opt/index.html @@ -4,6 +4,8 @@

服务

系统配置

安全日志

+

常用日志

+

任务日志

说明

diff --git a/plugins/sys-opt/index.py b/plugins/sys-opt/index.py index aeed783f2..15303679c 100755 --- a/plugins/sys-opt/index.py +++ b/plugins/sys-opt/index.py @@ -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'