1 <?xml version="1.0" encoding="UTF-8"?>
3 - Copyright (C) 2006-2009 Internet Systems Consortium, Inc. ("ISC")
5 - Permission to use, copy, modify, and/or distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
18 <!-- $Id: bind9.xsl,v 1.21 2009/01/27 23:47:54 tbox Exp $ -->
20 <xsl:stylesheet version="1.0"
21 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
22 xmlns="http://www.w3.org/1999/xhtml">
23 <xsl:template match="isc/bind/statistics">
26 <style type="text/css">
28 font-family: sans-serif;
29 background-color: #ffffff;
34 border-collapse: collapse;
39 border: 1px solid #000000;
40 background-color: #8080ff;
46 border: 1px solid #000000;
47 background-color: teal;
53 border: 1px solid #000000;
54 background-color: teal;
64 background-color: teal;
70 background-color: #ffffff;
88 border: 1px solid #000000;
89 background-color: #8080ff;
105 border: 0.5px solid #000000;
106 background-color: #8080ff;
113 border: 0.5px solid #000000;
114 background-color: teal;
124 <title>BIND 9 Statistics</title>
128 <h1>Bind 9 Configuration and Statistics</h1>
134 <tr class="rowh"><th colspan="2">Times</th></tr>
137 <td><xsl:value-of select="server/boot-time"/></td>
140 <td>current-time</td>
141 <td><xsl:value-of select="server/current-time"/></td>
148 <tr class="rowh"><th colspan="2">Incoming Requests</th></tr>
149 <xsl:for-each select="server/requests/opcode">
151 <td><xsl:value-of select="name"/></td>
152 <td><xsl:value-of select="counter"/></td>
160 <tr class="rowh"><th colspan="2">Incoming Queries</th></tr>
161 <xsl:for-each select="server/queries-in/rdtype">
163 <td><xsl:value-of select="name"/></td>
164 <td><xsl:value-of select="counter"/></td>
171 <xsl:for-each select="views/view">
174 <th colspan="2">Outgoing Queries from View <xsl:value-of select="name"/></th>
176 <xsl:for-each select="rdtype">
178 <td><xsl:value-of select="name"/></td>
179 <td><xsl:value-of select="counter"/></td>
188 <div class="statcounter">
189 <h2>Server Statistics</h2>
190 <xsl:for-each select="server/nsstat">
192 <dt><xsl:value-of select="name"/></dt>
193 <dd><xsl:value-of select="counter"/></dd>
199 <div class="statcounter">
200 <h2>Zone Maintenance Statistics</h2>
201 <xsl:for-each select="server/zonestat">
203 <dt><xsl:value-of select="name"/></dt>
204 <dd><xsl:value-of select="counter"/></dd>
210 <div class="statcounter">
211 <h2>Resolver Statistics (Common)</h2>
212 <xsl:for-each select="server/resstat">
214 <dt><xsl:value-of select="name"/></dt>
215 <dd><xsl:value-of select="counter"/></dd>
221 <xsl:for-each select="views/view">
222 <div class="statcounter">
223 <h2>Resolver Statistics for View <xsl:value-of select="name"/></h2>
224 <xsl:for-each select="resstat">
226 <dt><xsl:value-of select="name"/></dt>
227 <dd><xsl:value-of select="counter"/></dd>
236 <xsl:for-each select="views/view">
239 <th colspan="2">Cache DB RRsets for View <xsl:value-of select="name"/></th>
241 <xsl:for-each select="cache/rrset">
243 <td><xsl:value-of select="name"/></td>
244 <td><xsl:value-of select="counter"/></td>
251 <div class="statcounter">
252 <h2>Socket I/O Statistics</h2>
253 <xsl:for-each select="server/sockstat">
255 <dt><xsl:value-of select="name"/></dt>
256 <dd><xsl:value-of select="counter"/></dd>
264 <xsl:for-each select="views/view">
267 <th colspan="10">Zones for View <xsl:value-of select="name"/></th>
281 <xsl:for-each select="zones/zone">
284 <xsl:value-of select="name"/>
287 <xsl:value-of select="rdataclass"/>
290 <xsl:value-of select="serial"/>
293 <xsl:value-of select="counters/QrySuccess"/>
296 <xsl:value-of select="counters/QryReferral"/>
299 <xsl:value-of select="counters/QryNxrrset"/>
302 <xsl:value-of select="counters/QryNXDOMAIN"/>
305 <xsl:value-of select="counters/QryFailure"/>
308 <xsl:value-of select="counters/XfrReqDone"/>
311 <xsl:value-of select="counters/XfrRej"/>
323 <th colspan="7">Network Status</th>
330 <th>LocalAddress</th>
334 <xsl:for-each select="socketmgr/sockets/socket">
337 <xsl:value-of select="id"/>
340 <xsl:value-of select="name"/>
343 <xsl:value-of select="type"/>
346 <xsl:value-of select="references"/>
349 <xsl:value-of select="local-address"/>
352 <xsl:value-of select="peer-address"/>
355 <xsl:for-each select="states">
356 <xsl:value-of select="."/>
365 <th colspan="2">Task Manager Configuration</th>
368 <td>Thread-Model</td>
370 <xsl:value-of select="taskmgr/thread-model/type"/>
374 <td>Worker Threads</td>
376 <xsl:value-of select="taskmgr/thread-model/worker-threads"/>
380 <td>Default Quantum</td>
382 <xsl:value-of select="taskmgr/thread-model/default-quantum"/>
386 <td>Tasks Running</td>
388 <xsl:value-of select="taskmgr/thread-model/tasks-running"/>
395 <th colspan="5">Tasks</th>
404 <xsl:for-each select="taskmgr/tasks/task">
407 <xsl:value-of select="id"/>
410 <xsl:value-of select="name"/>
413 <xsl:value-of select="references"/>
416 <xsl:value-of select="state"/>
419 <xsl:value-of select="quantum"/>
427 <th colspan="4">Memory Usage Summary</th>
429 <xsl:for-each select="memory/summary/*">
431 <td><xsl:value-of select="name()"/></td>
432 <td><xsl:value-of select="."/></td>
439 <th colspan="10">Memory Contexts</th>
453 <xsl:for-each select="memory/contexts/context">
456 <xsl:value-of select="id"/>
459 <xsl:value-of select="name"/>
462 <xsl:value-of select="references"/>
465 <xsl:value-of select="total"/>
468 <xsl:value-of select="inuse"/>
471 <xsl:value-of select="maxinuse"/>
474 <xsl:value-of select="blocksize"/>
477 <xsl:value-of select="pools"/>
480 <xsl:value-of select="hiwater"/>
483 <xsl:value-of select="lowater"/>