From 550f880241a177d5a1026e382d0b5a3a1ea164ff Mon Sep 17 00:00:00 2001 From: Costa Tsaousis Date: Wed, 4 May 2016 21:19:01 +0300 Subject: fixes #369, SNMP 64 bit counters; plugins.d now accept SET = 0xHEXVALUE; node-int64 removed; --- node.d/Makefile.am | 1 - node.d/node_modules/netdata.js | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'node.d') 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()); } -- cgit v1.2.3