gearmand failed to load module

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: gearmand failed to load module

Post by emartine »

Yes it is running.

debug=0
logfile=/var/log/mod_gearman/mod_gearman_worker.log
server=127.0.0.1:4730
eventhandler=yes
services=yes
hosts=yes
encryption=yes
key=sameasislistedinmod_gearman_neb.conf
job_timeout=60
min-worker=5
max-worker=50
idle-timeout=30
max-jobs=1000
spawn-rate=1
fork_on_exec=no
load_limit1=0
load_limit5=0
load_limit15=0
show_error_output=yes
enable_embedded_perl=on
use_embedded_perl_implicitly=off
use_perl_cache=on
p1_file=/usr/share/mod_gearman/mod_gearman_p1.pl
workaround_rc_25=off
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: gearmand failed to load module

Post by tgriep »

Which one on these workers are you having problems with?

worker_nagiosxi-tst or worker_gearmanworker-tst

Which server is the gearmand server running on?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: gearmand failed to load module

Post by emartine »

the worker_nagiosxi-tst. THis same server runs gearmand.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: gearmand failed to load module

Post by lmiltchev »

You could try changing this line:

Code: Select all

server=127.0.0.1:4730
to this:

Code: Select all

server=localhost:4730
Technically it's the same, but "localhost" is used by default in the config, so give it a try.

Also, you can temporarily start debugging:

Code: Select all

debug=1
Restart the server, worker and nagios, and check the "/var/log/mod_gearman/mod_gearman_neb.log" for clues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: gearmand failed to load module

Post by emartine »

OK.
I was able to get both workers working setting the configuration files:

Remote worker :/etc/mod_gearman/mod_gearman_worker.conf --> server=<IPADDRESS>:4730
Local server worker :/etc/mod_gearman/mod_gearman_worker.conf --> server=<IPADDRESS>:4730
Local server gearmand: /etc/mod_gearman/mod_gearman_neb.conf --> server=localhost:4730
Local server gearmand sysconfig: /etc/sysconfig/gearmand --> OPTIONS="-L <IPADDRESS>"

Both workers are now running and gearmand is running but I am still unable to submit commands in Nagios (I still get - your request was not processed in a timely manner - message).


Not sure if this is relevant or not but I am getting this error from the mod_gearman_neb.log This was before 11 and I have restarted gearmand several times since then.

tail -f /var/log/mod_gearman/mod_gearman_neb.log

[2015-02-02 09:07:49][2369][ERROR] sending job to gearmand failed: flush(GEARMAN_COULD_NOT_CONNECT) localhost:127 -> libgearman/connection.cc:745
[2015-02-02 09:29:00][7211][ERROR] sending job to gearmand failed: flush(GEARMAN_COULD_NOT_CONNECT) localhost:127 -> libgearman/connection.cc:745
[2015-02-02 09:54:41][13142][ERROR] sending job to gearmand failed: flush(GEARMAN_COULD_NOT_CONNECT) localhost:127 -> libgearman/connection.cc:745
[2015-02-02 09:55:32][13438][ERROR] sending job to gearmand failed: flush(GEARMAN_COULD_NOT_CONNECT) localhost:127 -> libgearman/connection.cc:745
[2015-02-02 09:57:57][2286][ERROR] sending job to gearmand failed: flush(GEARMAN_COULD_NOT_CONNECT) localhost:127 -> libgearman/connection.cc:745
[2015-02-02 10:32:47][10333][ERROR] sending job to gearmand failed: flush(GEARMAN_COULD_NOT_CONNECT) localhost:127 -> libgearman/connection.cc:745
[2015-02-02 10:58:39][16314][ERROR] sending job to gearmand failed: flush(GEARMAN_COULD_NOT_CONNECT) localhost:127 -> libgearman/connection.cc:745
[2015-02-02 10:59:18][16674][ERROR] sending job to gearmand failed: flush(GEARMAN_COULD_NOT_CONNECT) localhost:127 -> libgearman/connection.cc:745
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: gearmand failed to load module

Post by scottwilkerson »

is gearmand running on the XI server?

Code: Select all

service gearmand status
Can you run gearman_top on the XI server?

Code: Select all

gearman_top
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: gearmand failed to load module

Post by tgriep »

Try removing this from the sysconfig file on the gearmand server /etc/sysconfig/gearmand --> OPTIONS="-L <IPADDRESS>"

Them restart the gearman server by running

Code: Select all

service gearmand restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: gearmand failed to load module

Post by emartine »

Gearmand is running per my previous post.

Queue Name | Worker Available | Jobs Waiting | Jobs Running
--------------------------------------------------------------------------------------
eventhandler | 21 | 0 | 0
host | 21 | 0 | 0
service | 21 | 0 | 0
worker_nagiosxi-tst | 1 | 0 | 0
worker_nxitst01dar | 1 | 0 | 0
--------------------------------------------------------------------------------------
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: gearmand failed to load module

Post by emartine »

The worker log seems like it doesn't have checks going through.
==> /var/log/mod_gearman/mod_gearman_worker.log <==
[2015-02-02 12:09:35][2128][INFO ] no checks in 2minutes, restarting all workers
[2015-02-02 12:11:36][2128][INFO ] no checks in 2minutes, restarting all workers
[2015-02-02 12:13:37][2128][INFO ] no checks in 2minutes, restarting all workers
[2015-02-02 12:15:38][2128][INFO ] no checks in 2minutes, restarting all workers
[2015-02-02 12:17:39][2128][INFO ] no checks in 2minutes, restarting all workers
[2015-02-02 12:19:40][2128][INFO ] no checks in 2minutes, restarting all workers
[2015-02-02 12:21:41][2128][INFO ] no checks in 2minutes, restarting all workers
[2015-02-02 12:23:42][2128][INFO ] no checks in 2minutes, restarting all workers
[2015-02-02 12:25:43][2128][INFO ] no checks in 2minutes, restarting all workers
[2015-02-02 12:27:44][2128][INFO ] no checks in 2minutes, restarting all workers
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: gearmand failed to load module

Post by emartine »

Seems like everything is running ok.
You do not have the required permissions to view the files attached to this post.
Locked