-
Notifications
You must be signed in to change notification settings - Fork 12
Add a check-dhcp4 optional binary #41
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
base: master
Are you sure you want to change the base?
Conversation
This tool is a standalone binary that can use to check if a DHCP server is "alive", it simply broadcast a DHCP DISCOVER request and listen for an OFFER or timed out. It doesn't accept the lease offered by the server. This can be useful to check if a DHCP server is responsive before waiting for the future lease renew, it can be part of a monitoring tool which watch some IT infrastructure. For example NAGIOS has something similar as a plugin (see https://nagios-plugins.org/doc/man/check_dhcp.html) Signed-off-by: Frederic Martinsons <[email protected]>
Don't know why the CI is failing and don't know how to relaunch it. Someone can help here please ? |
The CI failure is unrelated to your branch. It's not your responsibility to fix it :) (unless you wish to send a patch). |
Ok I understand, but if I would like to help if I can, I try to reproduce the steps that I think the CI do and was unable to have the failure locally. Maybe it is a problem of gitconfig for submodules checkout ? |
Hello there, nearly two months have passed since my last comment, any chance this is going to be merged or should I considered this project to be down, if so i'll simply carry my patch forever ! |
Hi @fmartinsons! You use the public API of n-dhcp4, without relying on any internal bits. Can you elaborate why you want to ship it as part of the library? Why does it need to be bundled with the library, rather than shipped as its own project that depends on n-dhcp4? |
Hello @dvdhrm , this was first submitted on NetworkManager project as you may see in the first comment , and I've been told that it would be better to put it here, which I had agreed. I think a little binary which show up an example of usage of the library is fine (and desirable) to have in this repo. Do you see any issue of hosting this code here ? if so, no problem, I'll simply close the merge request, I just thought that it could be useful for anyone who like to use n-dhcp4 . |
I don't mind examples. But you marked this as |
It will not be install by default though (check_dhcp4 meson option is false by default), do you have a suggestion on how make this better ? Is renaming |
This tool is a standalone binary that can use to check if a DHCP server is "alive", it simply broadcast a DHCP DISCOVER request and listen for an OFFER or timed out.
It doesn't accept the lease offered by the server.
This can be useful to check if a DHCP server is responsive before waiting for the future lease renew, it can be part of a monitoring tool which watch some IT infrastructure. For example NAGIOS has something similar as a plugin (see https://nagios-plugins.org/doc/man/check_dhcp.html)
Originate from https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1619 where it has been advised to move this new binary into n-dhcp4 project