Support freebsd (OPNsense etc) for the included plugin isc_dhcpd
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.
is there any chance of this making it in eventually?
I looked at it and approved it from a product perspective and forward it to a dev for analysis.