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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user