From 43727decf0eeb1a09ca82b4d888ad2a5f9046328 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 4 Nov 2026 13:12:33 +0800 Subject: [PATCH] update --- plugins/manticoresearch/index.html | 1 + plugins/manticoresearch/index.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/plugins/manticoresearch/index.html b/plugins/manticoresearch/index.html index b625d8f91..a89e0cf61 100755 --- a/plugins/manticoresearch/index.html +++ b/plugins/manticoresearch/index.html @@ -21,6 +21,7 @@

查询日志

运行状态

常用功能

+

服务运行日志

说明

diff --git a/plugins/manticoresearch/index.py b/plugins/manticoresearch/index.py index 0414cd93f..2fc56d60a 100755 --- a/plugins/manticoresearch/index.py +++ b/plugins/manticoresearch/index.py @@ -273,6 +273,11 @@ def queryLog(): tmp = re.search(rep, content) return tmp.groups()[0] +def systemctlLog(): + cmd = "journalctl -u manticore -n 15 --no-pager" + data = mw.execShell(cmd) + return data[0] + def runStatus(): s = status() @@ -491,6 +496,8 @@ if __name__ == "__main__": print(runLog()) elif func == 'query_log': print(queryLog()) + elif func == 'systemctl_log': + print(systemctlLog()) elif func == 'run_status': print(runStatus()) elif func == 'run_status_test':