diff --git a/server/monitor-types/snmp.js b/server/monitor-types/snmp.js index c176e55f..a1760fa3 100644 --- a/server/monitor-types/snmp.js +++ b/server/monitor-types/snmp.js @@ -46,9 +46,9 @@ class SNMPMonitorType extends MonitorType { if (status) { heartbeat.status = UP; - heartbeat.msg = `JSON query passes (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`; + heartbeat.msg = `JSON query passes (comparing ${response} ${monitor.jsonPathOperator} ${monitor.expectedValue})`; } else { - throw new Error(`JSON query does not pass (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`); + throw new Error(`JSON query does not pass (comparing ${response} ${monitor.jsonPathOperator} ${monitor.expectedValue})`); } } finally { if (session) {