Page 1 of 1

[Nagios-devel] Event Broker SIGSEGV

Posted: Sun Jun 19, 2005 2:23 pm
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]