Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#48001 - [bind] compile with libjson to get statistics channel in json
Attached to Project:
Arch Linux
Opened by Costa Tsaousis (ktsaou) - Wednesday, 03 February 2016, 00:49 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 06 February 2016, 15:10 GMT
Opened by Costa Tsaousis (ktsaou) - Wednesday, 03 February 2016, 00:49 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 06 February 2016, 15:10 GMT
|
DetailsDescription:
bind should be compiled with --with-libjson to provide its statistics channel in JSON. This is needed for performance monitoring bind with tools like netdata (https://github.com/firehol/netdata/wiki/named.node.js) Additional info: * package version(s) * config and/or log files etc. named.conf to enable statistics channel: statistics-channels { inet 127.0.0.1 port 8888 allow { 127.0.0.1; }; inet ::1 port 8888 allow { ::1; }; }; Steps to reproduce: Once the statistics channel has been configured, run this: curl "http://localhost:8888/json/v1/server" bind responds with 404, not found. If it was compiled with --with-libjson, it would respond with a JSON object. |
This task depends upon
# pacman -Q bind
bind 9.10.3.P3-3
achille /etc # curl "http://localhost:8888/json/v1/server" > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1760 100 1760 0 0 341k 0 --:--:-- --:--:-- --:--:-- 429k
achille /etc # systemctl status -n 0 named
● named.service - Internet domain name server
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
Active: active (running) since sam. 2016-02-06 12:23:01 CET; 11s ago
Process: 1906 ExecStop=/usr/bin/rndc stop (code=exited, status=0/SUCCESS)
Main PID: 1912 (named)
Tasks: 7 (limit: 512)
CGroup: /system.slice/named.service
└─1912 /usr/bin/named -f -u named
Maybe you have a specific config which leads to the crash. Please report that crashes upstream, they may be interested by a dns server crash ;)
Now, it works.
Sorry for the false alarm.