diff options
author | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2018-12-28 10:49:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-28 10:49:40 +0100 |
commit | 65004919942915ba0bf0988ad2b6af80c5de5958 (patch) | |
tree | 8a0d16e05b4f19a2aa636534405f7a2ad6268f10 /collectors/node.d.plugin | |
parent | 2ebe691a75339f4c921ff85f2953287877f2ec0e (diff) |
Gracefully ignore the offset if the value is not a number (#5040)
Diffstat (limited to 'collectors/node.d.plugin')
-rw-r--r-- | collectors/node.d.plugin/snmp/snmp.node.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/node.d.plugin/snmp/snmp.node.js b/collectors/node.d.plugin/snmp/snmp.node.js index a051d3d3ad..018ff7dbaf 100644 --- a/collectors/node.d.plugin/snmp/snmp.node.js +++ b/collectors/node.d.plugin/snmp/snmp.node.js @@ -394,7 +394,7 @@ var snmp = { var d = dim_keys[j]; if (dimensions[d].value !== null) { - if(typeof dimensions[d].offset === 'number') + if(typeof dimensions[d].offset === 'number' && typeof dimensions[d].value === 'number') service.set(d, dimensions[d].value + dimensions[d].offset); else service.set(d, dimensions[d].value); |