problem with mod_gearman broker module

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
liquidcool
Posts: 59
Joined: Tue Feb 21, 2012 6:08 am

problem with mod_gearman broker module

Post by liquidcool »

Hi,

I am trying to get mod_gearman to work with Nagios 4.1.0rc2

I have compiled and installed all the necessary packages (gearman and mod_gearman)

I have put the following config in the nagios.cfg file :
broker_module=/usr/local/lib/mod_gearman/mod_gearman.o config=/usr/local/etc/mod_gearman/mod_gearman_neb.conf

but every time I start up nagios I get the following error in the logs:
Error: Could not load module '/usr/local/lib/mod_gearman/mod_gearman.o' -> file not found
Error: Failed to load module '/usr/local/lib/mod_gearman/mod_gearman.o'.
Error: Module loading failed. Aborting.

I have checked the location and the permissions on the module and it is all set correctly.

Is there something I am missing ?

Thanks
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: problem with mod_gearman broker module

Post by jdalrymple »

Are you able to get gearmand to start? Does it log anything useful? You might want to up the debug level to 1 or 2 in mod_gearman_neb.conf and restart.

What version of mod-gearman did you compile?
liquidcool
Posts: 59
Joined: Tue Feb 21, 2012 6:08 am

Re: problem with mod_gearman broker module

Post by liquidcool »

I can get gearmand started.

there is nothing being logged anywhere.

I have compiled 1.5.3. I have even used the RPM and I get the same issue.

I built a Centos Box and tried it with mod_gearman2 and I get this :
Error: Could not load module '/usr/lib64/mod_gearman/mod_gearman2.o' -> /usr/lib64/mod_gearman/mod_gearman2.o: cannot open shared object file: No such file or directory
Error: Failed to load module '/usr/lib64/mod_gearman/mod_gearman2.o'.
Error: Module loading failed. Aborting.

The module is there. I have no idea what it is trying to do.
liquidcool
Posts: 59
Joined: Tue Feb 21, 2012 6:08 am

Re: problem with mod_gearman broker module

Post by liquidcool »

Ok I have managed to get it working.

i installed the mod-gearman2 rpm and that seems to have solved it.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: problem with mod_gearman broker module

Post by hsmith »

Is this topic all right to close?
Former Nagios Employee.
me.
liquidcool
Posts: 59
Joined: Tue Feb 21, 2012 6:08 am

Re: problem with mod_gearman broker module

Post by liquidcool »

Yes. Thank you
Locked