shuque / bind9stats Goto Github PK
View Code? Open in Web Editor NEWData collection tools for the BIND9 DNS server's statistics server
Data collection tools for the BIND9 DNS server's statistics server
2013/12/03-19:10:05 [34497] Error output from bind9stats.py:
2013/12/03-19:10:05 [34497] Traceback (most recent call last):
2013/12/03-19:10:05 [34497] File "/usr/local/etc/munin/plugins/bind9stats.py", line 246, in
2013/12/03-19:10:05 [34497] muninconfig(tree)
2013/12/03-19:10:05 [34497] File "/usr/local/etc/munin/plugins/bind9stats.py", line 217, in muninconfig
2013/12/03-19:10:05 [34497] for key in data:
2013/12/03-19:10:05 [34497] TypeError: 'NoneType' object is not iterable
2013/12/03-19:10:05 [34497] Service 'bind9stats.py' exited with status 1/0.
2013/12/03-19:10:08 [34497] Error output from bind9stats.py:
2013/12/03-19:10:08 [34497] Traceback (most recent call last):
2013/12/03-19:10:08 [34497] File "/usr/local/etc/munin/plugins/bind9stats.py", line 248, in
2013/12/03-19:10:08 [34497] munindata(tree)
2013/12/03-19:10:08 [34497] File "/usr/local/etc/munin/plugins/bind9stats.py", line 235, in munindata
2013/12/03-19:10:08 [34497] for (key, value) in data:
2013/12/03-19:10:08 [34497] TypeError: 'NoneType' object is not iterable
2013/12/03-19:10:08 [34497] Service 'bind9stats.py' exited with status 1/0.
Hi,
i'm trying you script on a Centos7 with bind-9.11.4-16.P2.el7_8.6.x86_64 and python3-3.6.8-13.el7.x86_64, graphite host is on an other machine, this is the error i get:
[root@ns2 ~]# /usr/local/sbin/bind9stats-graphite.py -d -f -n ns2 -s 192.168.1.100 -r
starting with host ns2, graphite server: 192.168.1.100,2003
Traceback (most recent call last):
File "/usr/local/sbin/bind9stats-graphite.py", line 638, in
debug=Prefs.DEBUG).run()
File "/usr/local/sbin/bind9stats-graphite.py", line 603, in run
self.single_run()
File "/usr/local/sbin/bind9stats-graphite.py", line 581, in single_run
self.generate_all_data()
File "/usr/local/sbin/bind9stats-graphite.py", line 551, in generate_all_data
self.generate_zone_data()
File "/usr/local/sbin/bind9stats-graphite.py", line 514, in generate_zone_data
for zone in self.stats.tree.find("views/view[@name='_default']/zones"):
TypeError: 'NoneType' object is not iterable
tell me if you need more informations.
Best regards, Marco Barbieri.
[root@rig ~]# netstat -tulpen | grep 8053
tcp 0 0 127.0.0.1:8053 0.0.0.0:* LISTEN 40 79017 26673/named
[root@rig ~]# ./bind9stats.py
multigraph dns_queries_in
multigraph dns_server_stats
multigraph dns_opcode_in
multigraph dns_queries_out
multigraph dns_cachedb
multigraph dns_resolver_stats
multigraph dns_socket_stats
multigraph dns_zone_stats
multigraph dns_memory_usage
Traceback (most recent call last):
File "./bind9stats.py", line 250, in
munindata(tree)
File "./bind9stats.py", line 235, in munindata
data = getdata(g, etree, getvals=True)
File "./bind9stats.py", line 185, in getdata
return getkeyvals(etree, xmlpath, stattype, getvals)
File "./bind9stats.py", line 155, in getkeyvals
for stat in statlist:
TypeError: 'NoneType' object is not iterable
I think it might help your quite useful munin plugin reach a wides audience if it was included in https://github.com/munin-monitoring/contrib/tree/master/plugins/bind and would then become available in future distro releases. I hope you will consider it, the community is very helpful when it comes to contributions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.