From 0fce99f4d063eb46bf40459b08231bbbae0bf7df Mon Sep 17 00:00:00 2001 From: dushixiang Date: Sun, 11 Jan 2026 10:04:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/service/notifier.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/service/notifier.go b/internal/service/notifier.go index 0f84f64..ee9a3d8 100644 --- a/internal/service/notifier.go +++ b/internal/service/notifier.go @@ -92,14 +92,14 @@ var alertTypeMetadataMap = map[string]AlertTypeMetadata{ ShowActual: true, }, "ssh_login": { - Name: "SSH登录通知", + Name: "SSH登录成功", ThresholdUnit: "", ValueUnit: "", ShowThreshold: false, ShowActual: false, }, "tamper": { - Name: "防篡改事件通知", + Name: "防篡改事件", ThresholdUnit: "", ValueUnit: "", ShowThreshold: false, @@ -201,7 +201,7 @@ func (n *Notifier) buildFiringMessage( lines := []string{ fmt.Sprintf("%s %s", levelIcon, metadata.Name), "", - fmt.Sprintf("探针: %s (%s)", agent.Name, agent.ID), + fmt.Sprintf("探针: %s", agent.Name), fmt.Sprintf("主机: %s", agent.Hostname), fmt.Sprintf("IP: %s", displayIP), fmt.Sprintf("告警类型: %s", record.AlertType),