Page 1 of 1

check_dhcp core dump + patch (OpenBSD)

Posted: Fri Jan 15, 2016 4:48 am
by wimh
Hi,

On OpenBSD 5.8, 64 bits (amd64), check_dhcp dumps core:

# /usr/local/nagios/libexec/check_dhcp -i em0
Abort trap

The attached patch fixes it.
Basically, sysctl function requires a size_t argument instead of an int.

Regards,

Wim.

Re: check_dhcp core dump + patch (OpenBSD)

Posted: Fri Jan 15, 2016 11:34 am
by hsmith
Hi @wimh, thank you for the contribution!

If possible, can I ask you to post it at https://github.com/nagios-plugins/nagios-plugins? The development team browses the forums much less than the support team does, and they'll be notified you posted there. Thank you!

Re: check_dhcp core dump + patch (OpenBSD)

Posted: Fri Jan 22, 2016 2:20 am
by wimh
I have found someone else also found and fixed the same problem, almost a year ago.

See https://github.com/nagios-plugins/nagio ... /issues/70

It hasn't been included yet...

I've attached a patch file to the posting, hoping it will draw attention and included.

Re: check_dhcp core dump + patch (OpenBSD)

Posted: Fri Jan 22, 2016 10:29 am
by hsmith
Thanks for posting it there, I'll reach out and make sure he got an alert for it.