From 363c3a59360ff6c7560fc0c42cdb43c4581309df Mon Sep 17 00:00:00 2001 From: "johnathan.leung" Date: Wed, 9 Aug 2023 15:20:26 -0400 Subject: [PATCH] Bug Fix #2: Incorrect thresholds value --- monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.js b/monitor.js index b6ab8fd..2889a77 100644 --- a/monitor.js +++ b/monitor.js @@ -8,7 +8,7 @@ const app = express(); const serviceName = process.env.MONITOR_SERVICE_NAME ? process.env.MONITOR_SERVICE_NAME : 'ssh'; // service name. Default ssh. const numLines = process.env.NUM_LOG_LINE ? process.env.NUM_LOG_LINE : 50; // number of lines to read from the log -const thresholds = process.env.NUM_LOG_LINE ? process.env.NUM_LOG_LINE : 15; // thresholds trigger restart +const thresholds = process.env.LOG_THRESHOLDS ? process.env.LOG_THRESHOLDS : 15; // thresholds trigger restart const phraseToFind_no_header = process.env.PHRASE_TO_FIND_NO_HEADER ? process.env.PHRASE_TO_FIND_NO_HEADER : 'No block headers to write in this log period block number'; // phrase for finding trigger log const phraseToFind_no_body = process.env.PHRASE_TO_FIND_NO_BODY ? process.env.PHRASE_TO_FIND_NO_BODY : 'No block bodies to write in this log period block number'; // phrase for finding trigger log const promPort = process.env.PROM_PORT ? process.env.PROM_PORT : 9102; // prometheus port. Default 9102.