From c124f3a43e777da965559bb42d3098603fae6c2f Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 12 Jun 2024 23:24:10 +0200 Subject: [PATCH] Formtting fix --- server/monitor-types/snmp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/monitor-types/snmp.js b/server/monitor-types/snmp.js index 07398853..187cbbd4 100644 --- a/server/monitor-types/snmp.js +++ b/server/monitor-types/snmp.js @@ -45,8 +45,8 @@ class SNMPMonitorType extends MonitorType { const { status, response } = await evaluateJsonQuery(value, monitor.jsonPath, monitor.jsonPathOperator, monitor.expectedValue); if (status) { - bean.status = UP; - bean.msg = `JSON query passes (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})` + heartbeat.status = UP; + heartbeat.msg = `JSON query passes (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`; } else { throw new Error(`JSON query does not pass (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`); }