2021-01-15 11:45:49 -05:00
|
|
|
|
{{define "component/monitor"}}
|
|
|
|
|
<div class="ui tiny monitor modal transition hidden">
|
|
|
|
|
<div class="header">添加监控</div>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<form id="monitorForm" class="ui form">
|
|
|
|
|
<input type="hidden" name="ID">
|
|
|
|
|
<div class="field">
|
|
|
|
|
<label>备注</label>
|
|
|
|
|
<input type="text" name="Name" placeholder="博客">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<label>目标</label>
|
2021-01-16 02:36:00 -05:00
|
|
|
|
<input type="text" name="Target" placeholder="HTTP(https://t.tt)|Ping(t.tt)|TCP(t.tt:80)">
|
2021-01-15 11:45:49 -05:00
|
|
|
|
</div>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<label>类型</label>
|
|
|
|
|
<select name="Type" class="ui fluid dropdown">
|
2021-01-16 01:11:51 -05:00
|
|
|
|
<option value="1">HTTP-GET(SSL到期、变更)</option>
|
2021-01-15 11:45:49 -05:00
|
|
|
|
<option value="2">ICMP-Ping</option>
|
|
|
|
|
<option value="3">TCP-Ping</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2021-01-16 02:36:00 -05:00
|
|
|
|
<div class="ui warning message">
|
|
|
|
|
<p>
|
|
|
|
|
类型为 <b>HTTP-GET</b> 时输入URL(带 http/https, HTTPS 协议的会顺带监控SSL证书);<br>
|
|
|
|
|
类型为 <b>ICMP-Ping</b> 时输入主机名/IP,不带端口;<br>
|
|
|
|
|
类型为 <b>TCP-Ping</b> 时输入主机名/IP + 端口号:example.com:22
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
2021-01-15 11:45:49 -05:00
|
|
|
|
</div>
|
|
|
|
|
<div class=" actions">
|
|
|
|
|
<div class="ui negative button">取消</div>
|
|
|
|
|
<button class="ui positive right labeled icon button">确认<i class="checkmark icon"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{end}}
|