do not multiple SNMP title strings; fixes #1929
Costa Tsaousis (ktsaou) committed
Mar 11, 2017 at 17:30 UTC
14d788984fb3248c4b7fd5d52aa2d688421ee163
1 file changed
+1
-1
node.d/snmp.node.js
+1
-1
@@ -272,7 +272,7 @@ netdata.processors.snmp = {
272
if(__DEBUG === true)
273
netdata.debug(service.module.name + ': ' + service.name + ': found ' + service.module.name + ' value of OIDs ' + varbinds[i].oid + " = " + varbinds[i].value);
274
275
- if(varbinds[i].type === net_snmp.ObjectType.OctetString)
275
+ if(varbinds[i].type === net_snmp.ObjectType.OctetString && service.snmp_oids_index[varbinds[i].oid].type !== 'title')
276
value = parseFloat(varbinds[i].value) * 1000;
277
else
278
value = varbinds[i].value;