check_dhcp core dump + patch (OpenBSD)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
wimh
Posts: 2
Joined: Tue Oct 01, 2013 7:02 am

check_dhcp core dump + patch (OpenBSD)

Post 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.
Attachments
nagios-plugins-2.1.1.patch
(597 Bytes) Downloaded 265 times
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_dhcp core dump + patch (OpenBSD)

Post 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!
Former Nagios Employee.
me.
wimh
Posts: 2
Joined: Tue Oct 01, 2013 7:02 am

Re: check_dhcp core dump + patch (OpenBSD)

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_dhcp core dump + patch (OpenBSD)

Post by hsmith »

Thanks for posting it there, I'll reach out and make sure he got an alert for it.
Former Nagios Employee.
me.
Locked