ingeborg.hellemo@uit.no said:
File "/root/bin/isc_dhpcd_graphite.py", line 163, in _tuplify vlan = _clean_vlan(vlan_stat["location"]) File "/root/bin/isc_dhpcd_graphite.py", line 173, in _clean_vlan return regex.group() AttributeError: 'NoneType' object has no attribute 'group'
I've tried to look at the code and I think the error is related to the output of dhcpd-pools. We run our DHCP-server in failover-mode. I don't know if this has an impact of the output, but here are some output examples from our server(s):
{ "location":"All networks", "range":"158.39.125.10 - 158.39.125.254", "first_ip":"158.39.125.10", "last_ip":"158.39.125.254", "defined":245, "used":80, "touched":100, "free":165, "percent":32.6531, "touch_count":180, "touch_percent":73.4694, "backup_count":65, "backup_percent":26.5306, "status":0 }, { "location":"All networks", "range":"158.39.132.16 - 158.39.135.254", "first_ip":"158.39.132.16", "last_ip":"158.39.135.254", "defined":1007, "used":261, "touched":449, "free":746, "percent":25.9186, "touch_count":710, "touch_percent":70.5065, "backup_count":297, "backup_percent":29.4935, "status":0 },
--Ingeborg