1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

Provide dhcpd-pools leasefile location (#407)

This commit is contained in:
Sebastian Heiden
2022-06-01 00:26:08 +02:00
committed by GitHub
parent 9c2a35ab36
commit a8c0bd7eb4

View File

@@ -65,7 +65,7 @@ if not error:
elif "binding state free" in line:
leases["free"] += 1
shell_cmd = "dhcpd-pools -s i -A"
shell_cmd = "dhcpd-pools -s i -A -l" + configfile["leasefile"]
pool_data = (
subprocess.Popen(shell_cmd, shell=True, stdout=subprocess.PIPE)
.stdout.read()