host check orphaned, is the mod-gearman worker on queue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: host check orphaned, is the mod-gearman worker on queue

Post by tgriep »

Do this, edit the Mod Gearman Server config and enable debugging.
Change this from

Code: Select all

debug=0
to

Code: Select all

debug=1
Restart both the Gearman Server and Worker.

Then turn off the worker for 40 minutes.
In the XI GUI, look at ole of the host or service checks that are in the group and click on the Advanced Tab.
Screen capture it and PM it to me as well as a new System Profile and the Gearman Server's log file

Code: Select all

/var/log/mod_gearman/mod_gearman_neb.log
I would have to know the name of the host or service so I can check the settings for it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: host check orphaned, is the mod-gearman worker on queue

Post by rtsupport »

As per your suggestion all details has been PM to you.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: host check orphaned, is the mod-gearman worker on queue

Post by tgriep »

Thanks for the files. I can see the jobs coming in to the gearman server but it looks like the server is bypassing them and running them locally with the Nagios process.
What version of the Gearman server software do you have running on the server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: host check orphaned, is the mod-gearman worker on queue

Post by rtsupport »

I am able to see two different Versions am i checking right ?

[nagios@usa******** ~]$ /usr/local/bin/check_gearman2 -V
check_gearman: version 2.1.2 running on libgearman 1.1.8

[nagios@usa******** ~]$ /usr/bin/check_gearman2 -V
check_gearman: version 2.1.1 running on libgearman 0.33


gearman_top
2018-04-20 07:33:37 - localhost:4730 - v1.1.12
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: host check orphaned, is the mod-gearman worker on queue

Post by tgriep »

Are you saying that you are seeing 2 different versions of Gearman on the Nagios server?
That might be the reason it is not working correctly. What were the steps that you took to install the Gearman software on the Nagios server?

Also, run this to get the version of the Gearman server daemon

Code: Select all

/usr/local/sbin/gearmand -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: host check orphaned, is the mod-gearman worker on queue

Post by rtsupport »

if i used correct command to get output of gearman version then yes, i am able to see two gearman version on same Nagios server.

gearman was installed on this serer from long time ago which we received from different team and now as we are in process of Nagios
up-gradation so we are using this server for testing purpose.

[nagios@usa******* bin]$ /usr/local/sbin/gearmand -V
gearmand 1.1.12 - https://bugs.launchpad.net/gearmand

if this is the issue then how we can correct it.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: host check orphaned, is the mod-gearman worker on queue

Post by tgriep »

I would remove all of the versions from the server and use this guide to re-install Gearman on the Nagios server and the remote worker.
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
The versions that are installed are the ones that I have been testing with and the Orphan Worker message works so give that a try and see if that fixes the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked