Page 1 of 1

gearman_top2

Posted: Tue Feb 06, 2018 8:52 am
by andyb4u
I have a couple of questions about the output of gearman_top2 command, specifically the worker queues:

We never see any figures (other than 0) for jobs waiting, jobs running against any of our worker queues. Is that the expected result?

I understand that for example in the case of a service check, Mod-Gearman puts the job into the service queue; A worker grabs the job and puts back the result into the check_results queue and Mod-Gearman grabs the result job and puts back the result onto the check result list.
Below is an example of the output we normally see.

Code: Select all

 Queue Name                     | Worker Available | Jobs Waiting | Jobs Running
---------------------------------------------------------------------------------
 check_results                  |               1  |           0  |           0
 eventhandler                   |              22  |           0  |           0
 host                           |              22  |           0  |           0
 service                        |              22  |           0  |           1
 worker_worker1                 |               1  |           0  |           0
 worker_worker2                 |               1  |           0  |           0
 worker_worker3                 |               1  |           0  |           0
---------------------------------------------------------------------------------
If we stop the worker on worker3 for example we will see worker available =0 but we won't see any increments in jobs waiting or jobs running against this server. Is this expected behaviour?

Re: gearman_top2

Posted: Tue Feb 06, 2018 5:33 pm
by npolovenko
Hello, @andyb4u. What manual did you use to configure mod german? Was it this one? https://assets.nagios.com/downloads/nag ... ios_XI.pdf

Can you upload these two conig files from the server:

Code: Select all

 /etc/mod_gearman2/module.conf
/etc/mod_gearman2/worker.conf
Could you send in your Nagios XI System Profile so I can review it?
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and attach it with your next post. Or you could upload it to a cloud storage of your choice and share a link with me via PM. When you do that please post something in this thread to bring it back up in the support queue.

Files were received and shared with the support team

Re: gearman_top2

Posted: Wed Feb 07, 2018 5:17 am
by andyb4u
Hi,

Yes we did use the manual you linked to to configure mod-gearman. I've PM'd you our profile and the config files.

Regards,
Andy

Re: gearman_top2

Posted: Wed Feb 07, 2018 2:04 pm
by npolovenko
@andyb4u, Thank you. Can you also send us these log files:

Code: Select all

/var/log/mod_gearman2/mod_gearman_neb.log
 /var/log/mod_gearman2/mod_gearman_worker.log

Re: gearman_top2

Posted: Thu Feb 08, 2018 3:07 am
by andyb4u
The debug level in the conf file is set to 0 , only errors. The log files are empty.

Re: gearman_top2

Posted: Thu Feb 08, 2018 11:47 am
by npolovenko
@andyb4u, Can you run tcpdump on 10.27.80.217:4730 and let us know the output?

The output was received and shared with the support team

Re: gearman_top2

Posted: Thu Feb 08, 2018 12:39 pm
by andyb4u
I've PM'd you the output.

Re: gearman_top2

Posted: Thu Feb 08, 2018 4:53 pm
by dwhitfield
Please restart the gearman server: service gearman-job-server restart

Also, this may be a case where a ticket is needed: https://support.nagios.com/tickets/

Re: gearman_top2

Posted: Fri Feb 09, 2018 4:43 am
by andyb4u
I restarted gearman and it had no effect. I've created a ticket for this issue as suggested.

Re: gearman_top2

Posted: Fri Feb 09, 2018 10:50 am
by npolovenko
@andyb4u, I'll lock this thread since the issue was taken to a support ticket.