Problems with mod_gearman after upgraded Nagios Core

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Problems with mod_gearman after upgraded Nagios Core

Post by bosecorp »

if I disable mod_gearman from nagios.cfg Nagios is able to start.

Here is the error

[1530034730] LOG VERSION: 2.0
[1530034730] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1530034730] qh: core query handler registered
[1530034730] qh: echo service query handler registered
[1530034730] qh: help for the query handler registered
[1530034730] wproc: Successfully registered manager as @wproc with query handler
[1530034730] wproc: Registry request: name=Core Worker 57520;pid=57520
[1530034730] wproc: Registry request: name=Core Worker 57521;pid=57521
[1530034730] wproc: Registry request: name=Core Worker 57522;pid=57522
[1530034730] wproc: Registry request: name=Core Worker 57523;pid=57523
[1530034730] Error: Could not load module '/usr/lib64/mod_gearman2/mod_gearman2.o' -> /usr/lib64/mod_gearman2/mod_gearman2.o: undefined symbol: adjust_host_check_attempt
[1530034730] Error: Failed to load module '/usr/lib64/mod_gearman2/mod_gearman2.o'.
[1530034730] ndomod: NDOMOD 2.1.2 (11-14-2016) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1530034730] ndomod: Successfully connected to data sink. 0 queued items to flush.
[1530034730] ndomod registered for process data
[1530034730] ndomod registered for log data'
[1530034730] ndomod registered for system command data'
[1530034730] ndomod registered for event handler data'
[1530034730] ndomod registered for notification data'
[1530034730] ndomod registered for comment data'
[1530034730] ndomod registered for downtime data'
[1530034730] ndomod registered for flapping data'
[1530034730] ndomod registered for program status data'
[1530034730] ndomod registered for host status data'
[1530034730] ndomod registered for service status data'
[1530034730] ndomod registered for adaptive program data'
[1530034730] ndomod registered for adaptive host data'
[1530034730] ndomod registered for adaptive service data'
[1530034730] ndomod registered for external command data'
[1530034730] ndomod registered for aggregated status data'
[1530034730] ndomod registered for retention data'
[1530034730] ndomod registered for contact data'
[1530034730] ndomod registered for contact notification data'
[1530034730] ndomod registered for acknowledgement data'
[1530034730] ndomod registered for state change data'
[1530034730] ndomod registered for contact status data'
[1530034730] ndomod registered for adaptive contact data'
[1530034730] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1530034730] Error: Module loading failed. Aborting.
[1530034730] ndomod: Shutdown complete.
[1530034730] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problems with mod_gearman after upgraded Nagios Core

Post by scottwilkerson »

If you upgrade Core you need to re-upgrade gearman.

I would make backup copies of all you gearman configs (just in case something goes wrong) and run the Server Installation - Upgrade process on page 2

https://assets.nagios.com/downloads/nag ... ios_XI.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Problems with mod_gearman after upgraded Nagios Core

Post by bosecorp »

Yes, I did try that as well and didnt work
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problems with mod_gearman after upgraded Nagios Core

Post by scottwilkerson »

bosecorp wrote:Yes, I did try that as well and didnt work
What version of Core are you running? And the subject is "Problems with mod_gearman after upgraded Nagios Core"

Did you upgrade Core outside of the Nagios XI upgrade scripts?

This is NOT supported.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bheden
Product Development Manager
Posts: 179
Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises

Re: Problems with mod_gearman after upgraded Nagios Core

Post by bheden »

Thank you for the information. Due to the nature of some of the enhancements in 4.4.0+ the header files have changed. ModGearman bundles their own Nagios headers and they haven't been updated to account for the recent changes. Not only that, but there will need to be some logic added to ModGearman to allow for adjusting some host related information. I'm working on getting it working for XI/Core users now - and I've opened a ticket upstream to see how they'd like it handled. https://github.com/sni/mod_gearman/issues/136

Thanks again!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Nagios Enterprises
Senior Developer
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Problems with mod_gearman after upgraded Nagios Core

Post by bosecorp »

bheden wrote:Thank you for the information. Due to the nature of some of the enhancements in 4.4.0+ the header files have changed. ModGearman bundles their own Nagios headers and they haven't been updated to account for the recent changes. Not only that, but there will need to be some logic added to ModGearman to allow for adjusting some host related information. I'm working on getting it working for XI/Core users now - and I've opened a ticket upstream to see how they'd like it handled. https://github.com/sni/mod_gearman/issues/136

Thanks again!
Thanks You.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problems with mod_gearman after upgraded Nagios Core

Post by lmiltchev »

I will be closing this topic now. If you have any more questions/issues, please start a new thread. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked