On 13/10/10 15:50, Phil Mayers wrote:
On 13/10/10 15:16, Eivind Olsen wrote:
Has anyone here made use of the XML statistics interface in BIND9, to get
some numbers into Cacti (or another similar tool)? If so, how, and which
numbers did you feel were worth turning into graphs?

Yes.

We have a system where local scripts on our machines can plugin to the
net-snmp daemon via "pass_persist" and export a table. I wrote a script
to present the XML stats to an SNMP table.

We basically graph, total, successful and failed queries; it's more just
to get an idea of load than anything.

I've had a few queries asking to see these scripts, so rather than reply individually to them all, I'll re-post my reply here:

===

It's tied into our homegrown server monitoring and management platform;
I can't just extract it I'm afraid.

There are Perl and Python libraries which implement the difficult bits
of pass_persist helper scripts; e.g.

http://search.cpan.org/~nito/SNMP-MibProxy-1.0771/bin/mibProxy
http://search.cpan.org/~saper/SNMP-Extension-PassPersist-0.03/
http://github.com/nagius/snmp_passpersist

In essence, it's just a python script that reads the pass_persist command from stdin, and looks the OIDs up in a dictionary; the dictionary is cached and re-built when >30 seconds old by requesting the XML.
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to