Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dhcp.py doesn't respect leasefile when running dhcpd-pools #367

Open
BlueSpaceCanary opened this issue May 5, 2021 · 1 comment
Open

Comments

@BlueSpaceCanary
Copy link

Filing a bug I ran into while figuring out what was going on here.

dhcp.py doesn't use the leasefile value from dhcp.json when constructing its dhcpd-pools shell command:

shell_cmd = "dhcpd-pools -s i -A"
pool_data = (
    subprocess.Popen(shell_cmd, shell=True, stdout=subprocess.PIPE)
    .stdout.read()
    .split(b"\n")
)

There's arguably a second bug here in how the snmp response was parsed since librenms logged the wrong error, but I don't know php so I didn't dig into that at all.

@oliverl-21
Copy link

looks like SElinux is the problem for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants