Bind9
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide) |
==Requirements==
nxagentd present on the bind9 node
tcl (more precisely tclsh)
Configuration in NetXMS
All you need to do in NetXMS is to import the template from the following GIT repository:
https://github.com/tomaskir/netxms-application_monitoring
bind9 configuration
A script is used to retrieve, parse, and supply the statistics for the nxagentd.
You can get the script from the GIT repository linked above.
Place the script somewhere on the file system, make it executable and accessible to the user nxagentd runs as.
The script uses "rndc stats" command to retrieve the statistics. By default, the generated stats file is placed into the working directory configured in "named.conf". If you changed this directory, please configure the path to the stats file as needed in line 4 of the script (the default value should work for Debian/Ubuntu bind9 packages).
Configuration for nxagentd
Simply add this to the main section of the nxagentd's config file:
ExternalParametersProvider=<path to stats collection script>:<stats collection interval in seconds>
Example:
# bind9 monitoring parameters provider script ExternalParametersProvider=/var/lib/netxms/bind9_stats.tcl:60
Result
You should see the stats correctly collected by NetXMS.