bind9stats icon indicating copy to clipboard operation
bind9stats copied to clipboard

TypeError: 'NoneType' object is not iterable

Open cubeslinger opened this issue 5 years ago • 0 comments

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.

cubeslinger avatar Jul 09 '20 08:07 cubeslinger