Page 1 of 1

NagiosXI 2024R1.1.2 | Event Handlers logging to event log although disabled

Posted: Mon May 20, 2024 10:25 am
by snapier3
This is something I have noticed since upgrading NagiosXI 5.11.2 upgrade to NagiosXI20241.1.2

I have logging for event handlers is disabled in the nagios.cfg file and I'm still getting the entries in the event log for XI.
This is a large environment with the event handler enabled for the bulk of the 15k services. Logging of the execution of the handler is causing MySQL log entries table to bloat during normal operation.
The size of the table impacts the performance of the dbmaint jobs as well as large file sizes during MySQL daily.weekly and monthly backups.

Re: NagiosXI 2024R1.1.2 | Event Handlers logging to event log although disabled

Posted: Mon May 20, 2024 2:25 pm
by danderson
Thanks for reaching out @snapier3,

Do you still see the events when you navigate to https://<XI Hostname>/nagios/cgi-bin/showlog.cgi ?

You might want to take a look at /usr/local/nagios/etc/ndo.cfg as well. I see there is an event_handler_data setting in my ndo.cfg file.

Perhaps it has something to do with subsystem logging and/or database cleaning. You can view settings for subsystem logging in Admin -> System Config -> Performance Settings -> Databases and/or Subsystem.

There is also the Global Event Handler component that might be causing the issue you are encountering. You can view it's settings in Admin -> System Extensions -> Manage Components

Let me know if you need further help.

Re: NagiosXI 2024R1.1.2 | Event Handlers logging to event log although disabled

Posted: Mon May 20, 2024 2:44 pm
by snapier3
You might want to take a look at /usr/local/nagios/etc/ndo.cfg as well. I see there is an event_handler_data setting in my ndo.cfg file.
Oh, I'll check this...

Re: NagiosXI 2024R1.1.2 | Event Handlers logging to event log although disabled

Posted: Mon May 20, 2024 3:09 pm
by snapier3
@danderson
Thanks! Pretty sure your on it, I have the change for the ndo.config file scheduled, I will post with the results.
--SN

Re: NagiosXI 2024R1.1.2 | Event Handlers logging to event log although disabled

Posted: Tue May 21, 2024 7:11 am
by snapier3
Modifying the ndo.cfg to exclude the event handlers worked to resolve my issue.
--SN

Re: NagiosXI 2024R1.1.2 | Event Handlers logging to event log although disabled

Posted: Tue May 21, 2024 11:31 am
by danderson
Nice! I'm glad your issue is resolved