Skip to content

Commit

Permalink
do not multiple SNMP title strings; fixes netdata#1929
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou committed Mar 11, 2017
1 parent 0fba967 commit 14d7889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.d/snmp.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 14d7889

Please sign in to comment.