Wrong variable used

Thanks for pointing it out @CommanderStorm!
pull/4717/head
Matt Visnovsky 7 months ago
parent 4a882be6ba
commit 99dc4cfb46

@ -32,7 +32,7 @@ class SNMPMonitorType extends MonitorType {
} }
try { 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) => { const varbinds = await new Promise((resolve, reject) => {
session.get([monitor._snmpOid], (error, varbinds) => { session.get([monitor._snmpOid], (error, varbinds) => {

Loading…
Cancel
Save