Thanks to Gareth’s feedback and advice I fixed a small, but nerving bug which raised an error when the plugin was called on a Debian based distribution.
The main problem here was, that the awk snippet failed because of an unescaped metacharacter when using mawk (Debian default awk alternative), but worked like a charm with gawk (Gentoo default). Apparently gawk is just more loose than mawk, it should’ve failed on both.
Anyway, this shouldn’t be a problem anymore. As always, the updated script is available at MonitoringExchange, or via svn. Please consider that the svn checkout is only possible via svnserve at the moment.
user@host: ~ $ svn co svn://svn.matejunkie.com/nagios-plugins/stable/check_bind/ check_bind/
[...] I fixed a small, but nerving bug which is described further in this article. I also fixed the code below, means you can safely copy’n'paste it from this article as [...]
This is important documentation on how to get the template to work:
http://docs.pnp4nagios.org/pnp-0.4/tpl_custom