From 694f15d1da7a0b3b918d76dd2d2bcaa7f8c87bab Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 19 Jun 2022 09:39:57 +0800 Subject: [PATCH] up --- plugins/sys-opt/index.html | 1 + plugins/sys-opt/index.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/plugins/sys-opt/index.html b/plugins/sys-opt/index.html index 5a6a83df0..369363bd2 100755 --- a/plugins/sys-opt/index.html +++ b/plugins/sys-opt/index.html @@ -6,6 +6,7 @@

安全日志

常用日志

任务日志

+

系统日志

说明

diff --git a/plugins/sys-opt/index.py b/plugins/sys-opt/index.py index 658d5ade5..e76d26da1 100755 --- a/plugins/sys-opt/index.py +++ b/plugins/sys-opt/index.py @@ -114,6 +114,10 @@ def msgRunLog(): def cronRunLog(): return '/var/log/cron' + +def systemRunLog(): + return '/var/log/syslog' + if __name__ == "__main__": func = sys.argv[1] if func == 'status': @@ -138,5 +142,7 @@ if __name__ == "__main__": print(msgRunLog()) elif func == 'cron_run_log': print(cronRunLog()) + elif func == 'sys_run_log': + print(systemRunLog()) else: print('err')