Page 1 of 1

mod_gearman2 remote worker issue

Posted: Fri Sep 18, 2015 4:26 pm
by liquidcool
Hi,

I am trying to set up a distributed nagios with mod_gearman. I am running nagios 4.1.1.

I have installed the gearmand 0.33 sles11sp3 rpm, gearman-server 0.33 rpm and the mod_gearman2 rpm.

I have put the following details in the config of the remote worker in worker.conf :
server=central-server:4730
eventhandler=no
services=no
hosts=no
hostgroups=group1,group2
servicegroups=sgroup1

for the central server I have put the following in the module.conf:
eventhandler=yes
services=yes
hosts=yes
hostgroups=group1,group2
servicegroups=sgroup1

I have restarted all the services and still the hosts in the host groups group1 and group2 sgroup1 are being processed by the central server and not being sent to the remote worker.

when I run gearman_top2 it shows the worker and the hostgroups and servicegroups, but I don't see any jobs in their queue. And the checks that are failing are failing with the central server worker as the one that processed the job, not the remote worker.

Please can someone tell me what I am doing wrong. Is there a config I am missing ? is there a way these services need to be restarted ?

Thanks

Re: mod_gearman2 remote worker issue

Posted: Mon Sep 21, 2015 10:20 am
by jdalrymple
At first glance I see this:
liquidcool wrote:hostgroups=group1.group2
That should be a comma between the groups. This may not be the issue, but it definitely needs to be fixed as at least a starting point.

Re: mod_gearman2 remote worker issue

Posted: Fri Sep 25, 2015 8:45 am
by liquidcool
sorry that was a typo on my part.

Still have no idea why it is not working. It is refusing to send service checks to the remote worker. still trying to do everything on the local worker.

Is there a startup order I need to make sure of ? is there a config in a startup script I need to change ....

Anything ...

Re: mod_gearman2 remote worker issue

Posted: Fri Sep 25, 2015 9:42 am
by hsmith
I recommend a read through @Box293's guide here.