X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=node.d%2Fsnmp.node.js;h=57b37ffa082aed225e6bdfd7498f9d8e6573e562;hb=f5fef72a72cfc1c799b7a9b37ff2dfa25e731420;hp=c0974bda6df38c68518f24320dc924446e6fd397;hpb=ca767bb2ebdd94667202e9946c9b8f712d89b5a8;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;