Add the following to the snmpd.conf
Code: Select all
extend pdns-rec /usr/local/bin/pdns_stats
Then import the templates.
You end up with two graphs - one showing queries/sec + cache efficiency, and another one showing "exceptions" - slow queries, resource limits hit, spoof detection, etc.
Update
I've uploaded a newer version of pdns_stats.txt which collects a few more statistics. You can use the existing templates with the new script, but the new version also allows you to use a couple more templates, which I've attached below. These are 'Performance' which shows the proportion of queries answered in particular time bands, and 'Concurrency' which shows the number of threads running.