summaryrefslogtreecommitdiffstats
path: root/node.d
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-08-26 02:02:21 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-08-26 02:02:21 +0300
commit26dae246062697627380867b368fa79d8e602a0f (patch)
treea9df1628c73958db6b2da809298d5fe0b0e12cc7 /node.d
parent6060c04181eb9a75164f2a00530a57d117e827c9 (diff)
added debug info to SNMP received values; #2362
Diffstat (limited to 'node.d')
-rw-r--r--node.d/snmp.node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.d/snmp.node.js b/node.d/snmp.node.js
index 57b37ffa08..0c57aec6e2 100644
--- a/node.d/snmp.node.js
+++ b/node.d/snmp.node.js
@@ -270,7 +270,7 @@ netdata.processors.snmp = {
}
else {
if(__DEBUG === true)
- netdata.debug(service.module.name + ': ' + service.name + ': found ' + service.module.name + ' value of OIDs ' + varbinds[i].oid + " = " + varbinds[i].value);
+ netdata.debug(service.module.name + ': ' + service.name + ': found ' + service.module.name + ' value of OIDs ' + varbinds[i].oid + ", ObjectType " + net_snmp.ObjectType[varbinds[i].type] + " (" + netdata.stringify(varbinds[i].type) + "), typeof(" + typeof(varbinds[i].value) + "), in JSON: " + netdata.stringify(varbinds[i].value) + ", value = '" + varbinds[i].value.toString() + "'");
if(varbinds[i].type === net_snmp.ObjectType.OctetString && service.snmp_oids_index[varbinds[i].oid].type !== 'title')
value = parseFloat(varbinds[i].value) * 1000;