|
|
@ -96,9 +96,16 @@ class Notification {
|
|
|
|
return okMsg;
|
|
|
|
return okMsg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let url = monitorJSON["url"] === "https://" ? monitorJSON["hostname"] : monitorJSON["url"]
|
|
|
|
let url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (monitorJSON["type"] === "port") {
|
|
|
|
|
|
|
|
url = monitorJSON["hostname"];
|
|
|
|
if (monitorJSON["port"]) {
|
|
|
|
if (monitorJSON["port"]) {
|
|
|
|
url += ":" + monitorJSON[port];
|
|
|
|
url += ":" + monitorJSON["port"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
url = monitorJSON["url"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// If heartbeatJSON is not null, we go into the normal alerting loop.
|
|
|
|
// If heartbeatJSON is not null, we go into the normal alerting loop.
|
|
|
|