diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-11-07 12:19:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-11-07 12:20:17 +0000 |
commit | a64a253794ac64cb40befee54db53bde17dd0d49 (patch) | |
tree | c1024acc5f6e508814b944d99f112259bb28b1be /collectors/node.d.plugin/named/named.node.js | |
parent | New upstream version 1.10.0+dfsg (diff) | |
download | netdata-upstream/1.11.0+dfsg.tar.xz netdata-upstream/1.11.0+dfsg.zip |
New upstream version 1.11.0+dfsgupstream/1.11.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | collectors/node.d.plugin/named/named.node.js (renamed from node.d/named.node.js) | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/node.d/named.node.js b/collectors/node.d.plugin/named/named.node.js index 02c890c60..d13c608cb 100644 --- a/node.d/named.node.js +++ b/collectors/node.d.plugin/named/named.node.js @@ -1,4 +1,5 @@ 'use strict'; +// SPDX-License-Identifier: GPL-3.0-or-later // collect statistics from bind (named) v9.10+ // @@ -36,8 +37,8 @@ statistics-channels { }; */ -var url = require('url'); -var http = require('http'); +require('url'); +require('http'); var XML = require('pixl-xml'); var netdata = require('netdata'); @@ -79,11 +80,11 @@ var named = { multiplier: multiplier, // the multiplier divisor: divisor, // the divisor hidden: false // is hidden (boolean) - } + }; } } - if(found === false) + if(!found) return null; chart = service.chart(id, chart); |