BIND statistics
Mark Andrews
marka at isc.org
Mon Aug 26 23:09:04 UTC 2024
> On 27 Aug 2024, at 06:04, Havard Eidnes via bind-users <bind-users at lists.isc.org> wrote:
>
>> On Mon, Aug 26, 2024 at 06:05:19PM +0200, Havard Eidnes via bind-users wrote:
>>> Thanks. I found it, and it's more than a little embarassing.
>>>
>>> This is what you get when not building with --with-libxml2: an
>>> "un-rendered" xsl file as a result, in essence just the content
>>> of bin/named/xsl.c. And this happened because I wasn't paying
>>> attention to what options were turned on by default for the
>>> package I was putting together. "Surely stats is on by default!"
>>> Not so. (Well, I didn't even think it was optional.) Lesson
>>> learned.
>>
>> It *is* on by default, if it can find libxml2. Does yours live in
>> a nonstandard location?
>
> Time for more confessions.
>
> This is in NetBSD's pkgsrc, which only builds with explicitly
> "buildlinked" libraries, so that build dependencies are
> explicitly declared, and not automatically picked up from those
> you just accidentally happen to have installed on the build host.
> What I had overlooked was that I in /etc/mk.conf needed
>
> PKG_OPTIONS.bind+= bind-xml-statistics-server
>
> It's another matter whether this one should default to "on" in
> the package itself -- I'm leaning in that direction, but need to
> discuss with some others before I change the default. And I also
> need the "dnstap" option in my deployment, so I need a custom
> build anyway. Like I said, "lesson learned".
>
>> Perhaps, if libxml2 and libjson-c are both unavailable, we should
>> disable statistics-channels in the configuration - at least that way
>> the problem would've been easier to figure out.
>
> Right, I was sort of thinking in that direction as well, but
> would not be too insistent on something along those lines.
> Perhaps return a web page saying "built without both libjson-c
> and libxml2, so nothing to see here"?
A simple “No such url” will do. See https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/9423
Also if you ask for http://.../xml you won’t get json by mistake.
> Regards,
>
> - Håvard
> --
> Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: marka at isc.org
More information about the bind-users
mailing list