From ac7ebc065f3ea1f224f54121358d0bff2c52d1c1 Mon Sep 17 00:00:00 2001 From: Christophe <44464440+AltiUP@users.noreply.github.com> Date: Sun, 19 Apr 2020 12:32:23 +0200 Subject: [PATCH] Change stats file location (Bind9) (#11439) The stats file should not be placed in /var/run/named but in /var/cache/bind. In run there will be permissions problems. --- doc/Extensions/Applications.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/Extensions/Applications.md b/doc/Extensions/Applications.md index 6691adabd8..0e465cd815 100644 --- a/doc/Extensions/Applications.md +++ b/doc/Extensions/Applications.md @@ -237,8 +237,8 @@ Extend` heading top of page. 1: Create stats file with appropriate permissions: ```bash -~$ touch /var/run/named/stats -~$ chown bind:bind /var/run/named/stats +~$ touch /var/cache/bind/stats +~$ chown bind:bind /var/cache/bind/stats ``` Change `user:group` to the user and group that's running bind/named. @@ -248,7 +248,7 @@ Change `user:group` to the user and group that's running bind/named. ```text options { ... - statistics-file "/var/run/named/stats"; + statistics-file "/var/cache/bind/stats"; zone-statistics yes; ... }; @@ -294,7 +294,7 @@ own settings. rndc = The path to rndc. Default: /usr/bin/env rndc call_rndc = A 0/1 boolean on whether or not to call rndc stats. Suggest to set to 0 if using netdata. Default: 1 -stats_file = The path to the named stats file. Default: /var/run/named/stats +stats_file = The path to the named stats file. Default: /var/cache/bind/stats agent = A 0/1 boolean for if this is being used as a LibreNMS agent or not. Default: 0 zero_stats = A 0/1 boolean for if the stats file should be zeroed