gearman_top2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

gearman_top2

Post 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?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: gearman_top2

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Re: gearman_top2

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: gearman_top2

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Re: gearman_top2

Post by andyb4u »

The debug level in the conf file is set to 0 , only errors. The log files are empty.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: gearman_top2

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Re: gearman_top2

Post by andyb4u »

I've PM'd you the output.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: gearman_top2

Post 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/
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Re: gearman_top2

Post by andyb4u »

I restarted gearman and it had no effect. I've created a ticket for this issue as suggested.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: gearman_top2

Post by npolovenko »

@andyb4u, I'll lock this thread since the issue was taken to a support ticket.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked