@cryptotaxi247 / netdata-1 / commits / 47ff6bfe8

collect values from SNMP string OIDs; fixes #1236

Costa Tsaousis committed Nov 21, 2016 at 15:38 UTC 47ff6bfe8ea2cdc231895b89533eeee8719e4bb4
1 file changed +5 -1
node.d/snmp.node.js
+5 -1
@@ -249,7 +249,11 @@ netdata.processors.snmp = {
249 if(netdata.options.DEBUG === true)
250 netdata.debug(service.module.name + ': ' + service.name + ': found ' + service.module.name + ' value of OIDs ' + varbinds[i].oid + " = " + varbinds[i].value);
251
252 - value = varbinds[i].value;
252 + if(varbinds[i].type === net_snmp.ObjectType.OctetString)
253 + value = parseFloat(varbinds[i].value) * 1000;
254 + else
255 + value = varbinds[i].value;
256 +
257 ok++;
258 }
259