bug in event broker callbacks during Nagios startup

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
eponymousalias
Posts: 17
Joined: Mon Mar 07, 2016 5:38 am

bug in event broker callbacks during Nagios startup

Post by eponymousalias »

I'm looking at Nagios 4.4.2 code.

main() calls daemon_init() [base/nagios.c, line 614] which in turn
calls broker_program_state() [base/utils.c, line 2026] to make a
NEBTYPE_PROCESS_DAEMONIZE callback. But all of that now happens before
neb_init_callback_list() ever gets called [base/nagios.c, line 667],
let alone any event brokers having been loaded via neb_load_all_modules()
[base/nagios.c, line 708]. So at the time of the call to daemon_init(),
no event broker init functions have yet been called so they could register
to receive the NEBTYPE_PROCESS_DAEMONIZE callback.

It's clear in comparison to Nagios 3.5.1 files that this failure is
due to a bunch of code having been shuffled around, without recognizing
this consequence.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: bug in event broker callbacks during Nagios startup

Post by npolovenko »

Hi, @eponymousalias. Would you be able to open a new issue on the Core Github for this problem? That way you will be communicating with the Core developers directly. Here on the support side we mostly help solve support/performance related issues. Here's the link to submit a code issue: https://github.com/NagiosEnterprises/na ... issues/new
Plus please specify what particular problem this issue causes on your Core server.
Thank you!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
eponymousalias
Posts: 17
Joined: Mon Mar 07, 2016 5:38 am

Re: bug in event broker callbacks during Nagios startup

Post by eponymousalias »

I'm not a Github guy (no account there, don't need or want one).
No doubt you can copy the info here into such a posting there.

This particular issue has not caused a problem in my own usage of Nagios
Core; I found it in the source code while looking for something else.
But one can easily impute from the bug report what problems it might
cause for other folks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: bug in event broker callbacks during Nagios startup

Post by scottwilkerson »

Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked