Search found 2 matches

by wimh
Fri Jan 22, 2016 2:20 am
Forum: Open Source Nagios Projects
Topic: check_dhcp core dump + patch (OpenBSD)
Replies: 3
Views: 2362

Re: check_dhcp core dump + patch (OpenBSD)

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.
by wimh
Fri Jan 15, 2016 4:48 am
Forum: Open Source Nagios Projects
Topic: check_dhcp core dump + patch (OpenBSD)
Replies: 3
Views: 2362

check_dhcp core dump + patch (OpenBSD)

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.