Skip to content

TypeError: 'NoneType' object is not iterable #6

Description

@cubeslinger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions