]> arthur.barton.de Git - netdata.git/commitdiff
do not multiple SNMP title strings; fixes #1929
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Mar 2017 15:30:36 +0000 (17:30 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Mar 2017 15:30:36 +0000 (17:30 +0200)
node.d/snmp.node.js

index c0974bda6df38c68518f24320dc924446e6fd397..57b37ffa082aed225e6bdfd7498f9d8e6573e562 100644 (file)
@@ -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;