Giter Club home page Giter Club logo

bind9stats's People

Contributors

raybellis avatar shuque avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bind9stats's Issues

Munin seems failed to start bind9stats.py

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.

TypeError: 'NoneType' object is not iterable

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.

Plugin crash on not-existing variable

[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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.