From 161102a37b302e317b2f100408cfabc01dfd659c Mon Sep 17 00:00:00 2001 From: naiba Date: Sat, 16 Jan 2021 15:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20chore:=20=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E7=9B=B8=E5=85=B3=E7=9A=84=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/template/component/monitor.html | 9 ++++++++- resource/template/dashboard/monitor.html | 11 +++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/resource/template/component/monitor.html b/resource/template/component/monitor.html index 6910c56..1d02b3b 100644 --- a/resource/template/component/monitor.html +++ b/resource/template/component/monitor.html @@ -10,7 +10,7 @@
- +
@@ -21,6 +21,13 @@
+
+

+ 类型为 HTTP-GET 时输入URL(带 http/https, HTTPS 协议的会顺带监控SSL证书);
+ 类型为 ICMP-Ping 时输入主机名/IP,不带端口;
+ 类型为 TCP-Ping 时输入主机名/IP + 端口号:example.com:22 +

+
取消
diff --git a/resource/template/dashboard/monitor.html b/resource/template/dashboard/monitor.html index 4237673..ff94cec 100644 --- a/resource/template/dashboard/monitor.html +++ b/resource/template/dashboard/monitor.html @@ -15,8 +15,8 @@ ID 备注 - 类型 目标 + 类型 管理 @@ -26,7 +26,14 @@ {{$monitor.ID}} {{$monitor.Name}} {{$monitor.Target}} - {{$monitor.Type}} + + {{if eq $monitor.Type 1}}HTTP(S)/SSL证书 + {{else if eq $monitor.Type 2}} + ICMP Ping + {{else}} + TCP 端口 + {{end}} +