mod_gearman.o failed to load Nagios XI 2014 2.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tbyrne
Posts: 39
Joined: Tue Oct 21, 2014 2:02 pm
Location: Bohemia NY

mod_gearman.o failed to load Nagios XI 2014 2.3

Post 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
You do not have the required permissions to view the files attached to this post.
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

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

Post by cmerchant »

Did you have gearmand started before restarting nagios?

Code: Select all

service gearmand start
service nagios restart 
tbyrne
Posts: 39
Joined: Tue Oct 21, 2014 2:02 pm
Location: Bohemia NY

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

Post by tbyrne »

Yes, I started gearmand then nagios.
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

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

Post 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 
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Run the following commands and show us the output:

Code: Select all

/usr/bin/check_gearman -V
gearman_top
Be sure to check out our Knowledgebase for helpful articles and solutions!
tbyrne
Posts: 39
Joined: Tue Oct 21, 2014 2:02 pm
Location: Bohemia NY

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

Post 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
--------------------------------------------------------------------
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

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

Post 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
tbyrne
Posts: 39
Joined: Tue Oct 21, 2014 2:02 pm
Location: Bohemia NY

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

Post by tbyrne »

cmerchant that was the problem..

Thanks for the help!
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

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

Post by cmerchant »

Great! We'll go ahead and close this thread. Thanks.
Locked