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}} +