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

Support freebsd (OPNsense etc) for the included plugin isc_dhcpd #710

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dnlldl
Copy link
Contributor

@dnlldl dnlldl commented Jun 20, 2024

Support freebsd (OPNsense etc)

Thank you for your interest in contributing to Checkmk!
Consider looking into Readme regarding process details.

General information

This is to make the isc_dhcpd plugin work with any recent version of OPNsense.

Proposed changes

The dhcpd.leases file is in a different location than expected by the script. The command pidof doesn't exist and awk is also more limited.

root@OPNsense:~ # awk --version
awk version 20210215

This PR could be improved, using a configuration file instead of hardcoding the necessary files would be good. Also, for the pidof problem, which pidof could be used before falling back to something more universal with ps.

I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.

Support freebsd (OPNsense etc)
`/usr/local/etc/dhcpd.conf` does exist on OPNsense but is entirely ignored, `/var/dhcpd/etc/dhcpd.conf` is the one that is used by the ISC. Adding a configuration file for the plugin would solve the issue finding `dhcpd.conf` and `dhcpd.leases` entirely.
@dnlldl dnlldl changed the title Patch 5 Support freebsd (OPNsense etc) for the included plugin isc_dhcpd Jun 20, 2024
@dnlldl
Copy link
Contributor Author

dnlldl commented Sep 8, 2024

is there any chance of this making it in eventually?

@martinhv
Copy link
Member

I looked at it and approved it from a product perspective and forward it to a dev for analysis.

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

Successfully merging this pull request may close these issues.

3 participants