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.
check_dhcp core dump + patch (OpenBSD)
check_dhcp core dump + patch (OpenBSD)
- Attachments
-
- nagios-plugins-2.1.1.patch
- (597 Bytes) Downloaded 265 times
Re: check_dhcp core dump + patch (OpenBSD)
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!
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.
me.
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.
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)
Thanks for posting it there, I'll reach out and make sure he got an alert for it.
Former Nagios Employee.
me.
me.