From 99dc4cfb46c2dcf805829b7b34cb33be0376ded5 Mon Sep 17 00:00:00 2001 From: Matt Visnovsky Date: Mon, 29 Apr 2024 22:24:51 -0600 Subject: [PATCH] Wrong variable used Thanks for pointing it out @CommanderStorm! --- server/monitor-types/snmp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/monitor-types/snmp.js b/server/monitor-types/snmp.js index 92c0f4875..1752ab717 100644 --- a/server/monitor-types/snmp.js +++ b/server/monitor-types/snmp.js @@ -32,7 +32,7 @@ class SNMPMonitorType extends MonitorType { } try { - const session = snmp.createSession(monitor._ipAddress, monitor._snmpCommunityString, options); + const session = snmp.createSession(monitor.hostname, monitor.snmpCommunityString, options); const varbinds = await new Promise((resolve, reject) => { session.get([monitor._snmpOid], (error, varbinds) => {