diff --git a/plugins/sys-opt/index.html b/plugins/sys-opt/index.html index 369363bd2..5cafd566e 100755 --- a/plugins/sys-opt/index.html +++ b/plugins/sys-opt/index.html @@ -6,6 +6,7 @@
安全日志
常用日志
任务日志
+HOSTS
系统日志
说明
diff --git a/plugins/sys-opt/index.py b/plugins/sys-opt/index.py index a9a66c583..9e77db40b 100755 --- a/plugins/sys-opt/index.py +++ b/plugins/sys-opt/index.py @@ -128,6 +128,9 @@ def cronRunLog(): def systemRunLog(): return '/var/log/syslog' +def showHosts(): + return '/etc/hosts' + if __name__ == "__main__": func = sys.argv[1] if func == 'status': @@ -154,5 +157,7 @@ if __name__ == "__main__": print(cronRunLog()) elif func == 'sys_run_log': print(systemRunLog()) + elif func == 'hosts': + print(showHosts()) else: print('err')