mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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.
This commit is contained in:
@@ -237,8 +237,8 @@ Extend` heading top of page.
|
|||||||
1: Create stats file with appropriate permissions:
|
1: Create stats file with appropriate permissions:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
~$ touch /var/run/named/stats
|
~$ touch /var/cache/bind/stats
|
||||||
~$ chown bind:bind /var/run/named/stats
|
~$ chown bind:bind /var/cache/bind/stats
|
||||||
```
|
```
|
||||||
|
|
||||||
Change `user:group` to the user and group that's running bind/named.
|
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
|
```text
|
||||||
options {
|
options {
|
||||||
...
|
...
|
||||||
statistics-file "/var/run/named/stats";
|
statistics-file "/var/cache/bind/stats";
|
||||||
zone-statistics yes;
|
zone-statistics yes;
|
||||||
...
|
...
|
||||||
};
|
};
|
||||||
@@ -294,7 +294,7 @@ own settings.
|
|||||||
rndc = The path to rndc. Default: /usr/bin/env rndc
|
rndc = The path to rndc. Default: /usr/bin/env rndc
|
||||||
call_rndc = A 0/1 boolean on whether or not to call rndc stats.
|
call_rndc = A 0/1 boolean on whether or not to call rndc stats.
|
||||||
Suggest to set to 0 if using netdata. Default: 1
|
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 = A 0/1 boolean for if this is being used as a LibreNMS
|
||||||
agent or not. Default: 0
|
agent or not. Default: 0
|
||||||
zero_stats = A 0/1 boolean for if the stats file should be zeroed
|
zero_stats = A 0/1 boolean for if the stats file should be zeroed
|
||||||
|
Reference in New Issue
Block a user