diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2016-05-04 21:19:01 +0300 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2016-05-04 21:19:01 +0300 |
commit | 550f880241a177d5a1026e382d0b5a3a1ea164ff (patch) | |
tree | 883edba7bb85ca347250c832d1b3a0c9d7601b34 /node.d | |
parent | 17db59bdf24a30251ad2c74a0fc4d6ae44b4d163 (diff) |
fixes #369, SNMP 64 bit counters; plugins.d now accept SET = 0xHEXVALUE; node-int64 removed;
Diffstat (limited to 'node.d')
-rw-r--r-- | node.d/Makefile.am | 1 | ||||
-rw-r--r-- | node.d/node_modules/netdata.js | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/node.d/Makefile.am b/node.d/Makefile.am index b6892bb6c1..c1caa4f0ef 100644 --- a/node.d/Makefile.am +++ b/node.d/Makefile.am @@ -14,7 +14,6 @@ dist_nodemodules_DATA = \ node_modules/pixl-xml.js \ node_modules/net-snmp.js \ node_modules/asn1.js \ - node_modules/node-int64.js \ $(NULL) nodemodulesberdir=$(nodedir)/node_modules/ber diff --git a/node.d/node_modules/netdata.js b/node.d/node_modules/netdata.js index f36a97b695..6183993b5b 100644 --- a/node.d/node_modules/netdata.js +++ b/node.d/node_modules/netdata.js @@ -3,7 +3,6 @@ var url = require('url'); var http = require('http'); var util = require('util'); -var Int64 = require('node-int64'); /* var netdata = require('netdata'); @@ -341,10 +340,8 @@ var netdata = { return false; if(this._current_chart._dimensions_count !== 0) { - if (value instanceof Buffer) { - var value64 = new Int64(value); - this.queue('SET ' + dimension + ' = ' + value64.toString(10)); - } + if (value instanceof Buffer) + this.queue('SET ' + dimension + ' = 0x' + value.toString('hex')); else this.queue('SET ' + dimension + ' = ' + value.toString()); } |