Lines 1-24
Link Here
|
1 |
--- plugins/node.d/bind9_rndc.in.orig 2018-03-25 14:01:24 UTC |
|
|
2 |
+++ plugins/node.d/bind9_rndc.in |
3 |
@@ -13,6 +13,7 @@ The following environment variables are |
4 |
env.rndc /usr/sbin/rndc |
5 |
env.rndc_options |
6 |
env.querystats /var/run/named.stats |
7 |
+ env.rndckeyfile /etc/namedb/rndc.key |
8 |
|
9 |
The user/group that runs the plugin must have read access to the stats |
10 |
file. To change user or group (usually Munin plugins are run as |
11 |
@@ -62,9 +63,11 @@ License not documented. |
12 |
use strict; |
13 |
|
14 |
my $rndc = defined($ENV{rndc}) ? $ENV{rndc} : '/usr/sbin/rndc'; |
15 |
-my $rndc_options = defined($ENV{rndc_options}) ? $ENV{rndc_options} : ''; |
16 |
+my $rndckeyfile = $ENV{rndckeyfile} ? $ENV{rndckeyfile} : '/etc/namedb/rndc.key'; |
17 |
my $querystats = $ENV{querystats} || '/var/run/named.stats'; |
18 |
my %IN; |
19 |
+my @IN_KEYS; |
20 |
+my @args = ("$rndc","-k","$rndckeyfile","stats"); |
21 |
|
22 |
# attempt to create log file if it doesn't exist |
23 |
if ( ! -r $querystats ) { |
24 |
|