Page 1 of 1

mod_gearman.o failed to load Nagios XI 2014 2.3

Posted: Fri Jan 16, 2015 9:49 am
by tbyrne
I am attempting to install mod_gearman on my Nagios XI server running 2014R2.3
After the install I modified the nagios.cfg file with the new broker module "broker_module=/usr/lib64/mod_gearman/mod_gearman.o config=/etc/mod_gearman/mod_gearman_neb.conf
"
Nagios fails to start. If I comment out the new broker line nagios will start.

The Nagios.cfg log file shows
[1421418856] Nagios 4.0.8 starting... (PID=32318)
[1421418856] Local time is Fri Jan 16 16:34:16 IST 2015
[1421418856] LOG VERSION: 2.0
[1421418856] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1421418856] qh: core query handler registered
[1421418856] nerd: Channel hostchecks registered successfully
[1421418856] nerd: Channel servicechecks registered successfully
[1421418856] nerd: Channel opathchecks registered successfully
[1421418856] nerd: Fully initialized and ready to rock!
[1421418856] wproc: Successfully registered manager as @wproc with query handler
[1421418856] wproc: Registry request: name=Core Worker 32323;pid=32323
[1421418856] wproc: Registry request: name=Core Worker 32322;pid=32322
[1421418856] wproc: Registry request: name=Core Worker 32321;pid=32321
[1421418856] wproc: Registry request: name=Core Worker 32320;pid=32320
[1421418856] mod_gearman: ERROR - please specify at least one server
[1421418856] Error: Function nebmodule_init() in module '/usr/lib64/mod_gearman/mod_gearman.o' returned an error. Module will be unloaded.
[1421418856] Event broker module '/usr/lib64/mod_gearman/mod_gearman.o' deinitialized successfully.
[1421418856] Error: Failed to load module '/usr/lib64/mod_gearman/mod_gearman.o'.
[1421418856] ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1421418856] ndomod: Successfully connected to data sink. 0 queued items to flush.


I am using the VMWare image from Nagios XI R2.0. Its running CentOS version 6.6, Nagios XI has been updated three times using the upgrade scripts
I have installed the mod_gearman plug-in using the "Integrating Mod-Gearman with Nagios XI" pdf
using http://assets.nagios.com/downloads/mod_ ... x86_64.rpm
I will attach both mod_gearman_neb.conf and mod_gearmand_worker.conf along with the nagios.cfg file

Re: mod_gearman.o failed to load Nagios XI 2014 2.3

Posted: Fri Jan 16, 2015 1:47 pm
by cmerchant
Did you have gearmand started before restarting nagios?

Code: Select all

service gearmand start
service nagios restart 

Re: mod_gearman.o failed to load Nagios XI 2014 2.3

Posted: Fri Jan 16, 2015 2:11 pm
by tbyrne
Yes, I started gearmand then nagios.

Re: mod_gearman.o failed to load Nagios XI 2014 2.3

Posted: Fri Jan 16, 2015 2:31 pm
by cmerchant
Could you issue the following and post the results:

Code: Select all

natstat -naop | grep gearmand
tail -f /var/log/mod_gearmand/mod_gearman_neb.log 

Re: mod_gearman.o failed to load Nagios XI 2014 2.3

Posted: Fri Jan 16, 2015 2:32 pm
by lmiltchev
Run the following commands and show us the output:

Code: Select all

/usr/bin/check_gearman -V
gearman_top

Re: mod_gearman.o failed to load Nagios XI 2014 2.3

Posted: Fri Jan 16, 2015 2:44 pm
by tbyrne
[root@TLV-NG tmp]# /usr/bin/check_gearman -V
check_gearman: version 1.5.0b1 running on libgearman 1.1.8

2015-01-16 21:44:37 - localhost:4730 - v1.1.8

Queue Name | Worker Available | Jobs Waiting | Jobs Running
--------------------------------------------------------------------
eventhandler | 5 | 0 | 0
host | 5 | 0 | 0
service | 5 | 0 | 0
servicegroup_CUTE | 5 | 0 | 0
worker_gearman-1 | 1 | 0 | 0
--------------------------------------------------------------------

Re: mod_gearman.o failed to load Nagios XI 2014 2.3

Posted: Fri Jan 16, 2015 2:52 pm
by cmerchant
you should replace

Code: Select all

broker_module=/usr/lib64/mod_gearman/mod_gearman.o config=/etc/mod_gearman/mod_gearman.neb.conf
with

Code: Select all

broker_module=/usr/lib64/mod_gearman/mod_gearman.o config=/etc/mod_gearman/mod_gearman_neb.conf

Re: mod_gearman.o failed to load Nagios XI 2014 2.3

Posted: Fri Jan 16, 2015 3:12 pm
by tbyrne
cmerchant that was the problem..

Thanks for the help!

Re: mod_gearman.o failed to load Nagios XI 2014 2.3

Posted: Mon Jan 19, 2015 9:25 am
by cmerchant
Great! We'll go ahead and close this thread. Thanks.