diff options
author | lgz <ilyamaschenko@gmail.com> | 2017-12-26 23:06:34 +0900 |
---|---|---|
committer | lgz <ilyamaschenko@gmail.com> | 2017-12-26 23:06:34 +0900 |
commit | 96d0952cf4ae6d14658b6d92de1caa9f98f6a09a (patch) | |
tree | 83a01974bf50f7e507ccf1c74a002369ad2d28a1 /python.d | |
parent | 86080bcf47e789c2a3c47bac06087f15a52f0474 (diff) |
isc_dhcpd: update_every 5 => 1
Diffstat (limited to 'python.d')
-rw-r--r-- | python.d/isc_dhcpd.chart.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python.d/isc_dhcpd.chart.py b/python.d/isc_dhcpd.chart.py index 735c70dab5..d9c87c50c3 100644 --- a/python.d/isc_dhcpd.chart.py +++ b/python.d/isc_dhcpd.chart.py @@ -20,7 +20,6 @@ from bases.FrameworkServices.SimpleService import SimpleService priority = 60000 retries = 60 -update_every = 5 ORDER = ['pools_utilization', 'pools_active_leases', 'leases_total'] @@ -95,7 +94,7 @@ class Pool: class Lease: def __init__(self, address, ends, state): - self.address = ipaddress.ip_address(address=address) + self.address = ipaddress.ip_address(address=u'%s' % address) self.ends = ends self.state = state @@ -170,7 +169,7 @@ class Service(SimpleService): for address in raw_leases: try: - new_lease = Lease(address=u'%s' % address, **raw_leases[address]) + new_lease = Lease(address, **raw_leases[address]) except ValueError: continue else: |