mod_gearman2 remote worker issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
liquidcool
Posts: 59
Joined: Tue Feb 21, 2012 6:08 am

mod_gearman2 remote worker issue

Post 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
Last edited by liquidcool on Fri Sep 25, 2015 8:49 am, edited 3 times in total.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: mod_gearman2 remote worker issue

Post 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.
liquidcool
Posts: 59
Joined: Tue Feb 21, 2012 6:08 am

Re: mod_gearman2 remote worker issue

Post 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 ...
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: mod_gearman2 remote worker issue

Post by hsmith »

I recommend a read through @Box293's guide here.
Former Nagios Employee.
me.
Locked