I recently added a bind9 monitoring way I have not seen before. Starting from 9.5(?) you can create a statistics channel in bind:
statistics-channels {
[ inet ( ip_addr | * ) [ port ip_port ] [allow { address_match_list } ]; ]
[ inet ...; ]
};
It creates a http server and outputs nothing but an xml file. For example to get the bind9 memory allocation (channel bound to localhost:8099):
wget --quiet --output-document=- http://127.0.0.1:8099|grep TotalUse | sed -e 's/<[^>]*>//g')
Now it is easy to add to the zabbix-agentd.conf and put into the monitoring process.
I use the "xml2" package to convert the xml format to text, but php or perl experts probably can develop much better solutions.
statistics-channels {
[ inet ( ip_addr | * ) [ port ip_port ] [allow { address_match_list } ]; ]
[ inet ...; ]
};
It creates a http server and outputs nothing but an xml file. For example to get the bind9 memory allocation (channel bound to localhost:8099):
wget --quiet --output-document=- http://127.0.0.1:8099|grep TotalUse | sed -e 's/<[^>]*>//g')
Now it is easy to add to the zabbix-agentd.conf and put into the monitoring process.
I use the "xml2" package to convert the xml format to text, but php or perl experts probably can develop much better solutions.
ass is guest:guest
Sorry, but I'm dummy with linux systems.
Comment