mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
A comment about varbinds[0] for clarification
Addresses https://github.com/louislam/uptime-kuma/pull/4717#discussion_r1589855126
This commit is contained in:
parent
4386d0afad
commit
0280b2ad3f
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ class SNMPMonitorType extends MonitorType {
|
|||
// Varbinds succesfully returned
|
||||
} else {
|
||||
|
||||
// We restrict querying to one OID per monitor, therefore `varbinds[0]` will always contain the value we're interested in.
|
||||
const value = varbinds[0].value;
|
||||
|
||||
// Check if inputs are numeric. If not, re-parse as strings. This ensures comparisons are handled correctly.
|
||||
|
|
Loading…
Reference in a new issue