Page 1 of 1

problem with mod_gearman broker module

Posted: Tue Aug 04, 2015 2:45 am
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

Re: problem with mod_gearman broker module

Posted: Tue Aug 04, 2015 10:24 am
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?

Re: problem with mod_gearman broker module

Posted: Wed Aug 05, 2015 4:01 am
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.

Re: problem with mod_gearman broker module

Posted: Wed Aug 05, 2015 9:13 am
by liquidcool
Ok I have managed to get it working.

i installed the mod-gearman2 rpm and that seems to have solved it.

Re: problem with mod_gearman broker module

Posted: Wed Aug 05, 2015 9:25 am
by hsmith
Is this topic all right to close?

Re: problem with mod_gearman broker module

Posted: Wed Aug 05, 2015 9:27 am
by liquidcool
Yes. Thank you