mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Wrong variable used
Thanks for pointing it out @CommanderStorm!
This commit is contained in:
parent
4a882be6ba
commit
99dc4cfb46
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue