DNS RNDC stats in Zenoss

From SysAdminWiki

Jump to: navigation, search

Overview

One of my favorite monitoring tricks is to use SNMP to execute a script or two and make the values available to be walked to via an OID. Probably the best example I can write about is how I fetch my 'rndc stats' output and make it available to Zenoss for alerting / perf graphs / reports.

What is RNDC? RNDC is the utility used to control named. It allows you to perform actions like reloads, zone transfers, and dumping stats.
What is named? named is a DNS daemon, you may also have heard it called BIND. Put simply, it makes the Internet, as you know it, work.

Notes

  • We want to make snmpd execute a script or two that will run the rndc stats command and then massage the data and make it usable. We will then assign each of our values to a unqie OID, which we will then be fed to Zenoss to be walked to every 5 minutes or whatever you configure your polls to be.

Procedure

[not complete yet]

  • 1. Make a script to dump dns stats using rndc stats into a file.
  • 2. Make a script to massage the data in the stats file and make it available via SNMP and its own OID.
  • 3. Make a Template in Zenoss with the newly created OIDS and make them of type COUNTER.
Advertisement