X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=node.d%2Fsnmp.node.js;h=57b37ffa082aed225e6bdfd7498f9d8e6573e562;hb=8a870a65d0afc49455b4b5ff2b0ce585e0bd8339;hp=c0974bda6df38c68518f24320dc924446e6fd397;hpb=32fe91cb025e0f53e9430b4bf55d97f8c6f2a15d;p=netdata.git diff --git a/node.d/snmp.node.js b/node.d/snmp.node.js index c0974bda..57b37ffa 100644 --- a/node.d/snmp.node.js +++ b/node.d/snmp.node.js @@ -272,7 +272,7 @@ netdata.processors.snmp = { if(__DEBUG === true) netdata.debug(service.module.name + ': ' + service.name + ': found ' + service.module.name + ' value of OIDs ' + varbinds[i].oid + " = " + varbinds[i].value); - if(varbinds[i].type === net_snmp.ObjectType.OctetString) + if(varbinds[i].type === net_snmp.ObjectType.OctetString && service.snmp_oids_index[varbinds[i].oid].type !== 'title') value = parseFloat(varbinds[i].value) * 1000; else value = varbinds[i].value;