|
|
@ -506,8 +506,8 @@
|
|
|
|
<input id="retry-interval" v-model="monitor.retryInterval" type="number" class="form-control" required :min="minInterval" step="1">
|
|
|
|
<input id="retry-interval" v-model="monitor.retryInterval" type="number" class="form-control" required :min="minInterval" step="1">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Timeout: HTTP / Keyword only -->
|
|
|
|
<!-- Timeout: HTTP / Keyword / SNMP only -->
|
|
|
|
<div v-if="monitor.type === 'http' || monitor.type === 'keyword' || monitor.type === 'json-query'" class="my-3">
|
|
|
|
<div v-if="monitor.type === 'http' || monitor.type === 'keyword' || monitor.type === 'json-query' || monitor.type === 'snmp'" class="my-3">
|
|
|
|
<label for="timeout" class="form-label">{{ $t("Request Timeout") }} ({{ $t("timeoutAfter", [ monitor.timeout || clampTimeout(monitor.interval) ]) }})</label>
|
|
|
|
<label for="timeout" class="form-label">{{ $t("Request Timeout") }} ({{ $t("timeoutAfter", [ monitor.timeout || clampTimeout(monitor.interval) ]) }})</label>
|
|
|
|
<input id="timeout" v-model="monitor.timeout" type="number" class="form-control" required min="0" step="0.1">
|
|
|
|
<input id="timeout" v-model="monitor.timeout" type="number" class="form-control" required min="0" step="0.1">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -969,7 +969,6 @@ const monitorDefaults = {
|
|
|
|
retryInterval: 60,
|
|
|
|
retryInterval: 60,
|
|
|
|
resendInterval: 0,
|
|
|
|
resendInterval: 0,
|
|
|
|
maxretries: 0,
|
|
|
|
maxretries: 0,
|
|
|
|
timeout: 48,
|
|
|
|
|
|
|
|
notificationIDList: {},
|
|
|
|
notificationIDList: {},
|
|
|
|
ignoreTls: false,
|
|
|
|
ignoreTls: false,
|
|
|
|
upsideDown: false,
|
|
|
|
upsideDown: false,
|
|
|
@ -1321,6 +1320,13 @@ message HealthCheckResponse {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Set default timeout
|
|
|
|
|
|
|
|
if (this.monitor.type === "snmp") {
|
|
|
|
|
|
|
|
this.monitor.timeout = 1;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.monitor.timeout = 48;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Set default SNMP version
|
|
|
|
// Set default SNMP version
|
|
|
|
if (!this.monitor.snmpVersion) {
|
|
|
|
if (!this.monitor.snmpVersion) {
|
|
|
|
this.monitor.snmpVersion = "2c";
|
|
|
|
this.monitor.snmpVersion = "2c";
|
|
|
|