Unreachable => down.

This commit is contained in:
Romein van Buren 2023-03-17 16:06:47 +01:00
parent da3c66c652
commit 744c726603
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -50,12 +50,12 @@ async function processOutage({ outage, server, settings, onDateUpdated }) {
// Encountered an error while checking status
if (testResult.error) {
server.error('status: error while checking status of ' + id);
server.error(testResult);
server.warn('status: error while checking status of ' + id);
server.warn(testResult);
}
// Service is down
else if (!testResult.serviceUp) {
// Service is down or unreachable
if (!testResult.serviceUp || testResult.error) {
// Don't perform automatic actions if already done
if ((lastBeat && lastBeat.down == false) || !lastBeat) {
// Insert heartbeat if last one is not valid anymore