[Nagios-devel] Event Broker SIGSEGV

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
Guest

[Nagios-devel] Event Broker SIGSEGV

Post by Guest »

Hi,

I have been playing with the event broker code and encountered what
seemed to be random crashes. I have handers set on all events so I could
analyse the data produced. Eventually I tracked it down in the log to a
FLAPPING ALERT immediately followed by the signal being caught.

In version 2.0b3 base/broker.c the callback in broker_flapping_data()
(line 401) is

neb_make_callbacks(NEBCALLBACK_DOWNTIME_DATA, (void *)&ds);

clearly ths sends it to the wrong handler with the resulting crash.
Changing it to

neb_make_callbacks(NEBCALLBACK_FLAPPING_DATA, (void *)&ds);

fixes the problem.

John






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked