Page 3 of 3

Re: Fresh out of Advanced training and need help (modGearman

Posted: Thu Apr 14, 2016 4:01 pm
by dlukinski
bheden wrote:
How to verify and confirm checks running on Worker (and not locally)?
- just created new worker. Did not install any plugins (on purpose)
- configured nsclient/nrpe checks agaisnt the new host (host in local hosts group / services in the remote site group)
- all green and working 8-\ where they really should not
What did you set the hosts/services definitions to on the new worker? What did you set the hostgroups/servicegroups queues to on the new worker?
hosts=no
services=no

hostgroup=site_C_hosts (or something like that)
servicegroup=site_C_services

new host under monitoring resides in local on XI, while its service checks are added to site_C_services (with assumption that other sets of checks would be added to site_B_services, site_A_services, site_D_services and so on. Say copies of Web-portal checks with unique names done from different locations while being part of the same SLA).

Re: Fresh out of Advanced training and need help (modGearman

Posted: Thu Apr 14, 2016 4:50 pm
by Box293
dlukinski wrote:hosts=no
services=no

hostgroup=site_C_hosts (or something like that)
servicegroup=site_C_services
On the worker, in /etc/mod_gearman2/worker.conf, these lines need to be:

Code: Select all

hostgroups=site_C_hosts
servicegroups=site_C_services
You are missing the s from hostgroups and servicegroups

Then on the XI server in /etc/mod_gearman2/module.conf, these lines need to exist:

Code: Select all

hostgroups=site_C_hosts
servicegroups=site_C_services

Re: Fresh out of Advanced training and need help (modGearman

Posted: Thu Apr 14, 2016 5:26 pm
by dlukinski
Box293 wrote:
dlukinski wrote:hosts=no
services=no

hostgroup=site_C_hosts (or something like that)
servicegroup=site_C_services
On the worker, in /etc/mod_gearman2/worker.conf, these lines need to be:

Code: Select all

hostgroups=site_C_hosts
servicegroups=site_C_services
You are missing the s from hostgroups and servicegroups

Then on the XI server in /etc/mod_gearman2/module.conf, these lines need to exist:

Code: Select all

hostgroups=site_C_hosts
servicegroups=site_C_services
Thank you.

First one (worker.conf files) was my typo in forum, not on workers
forgot about module.conf on XI (Done) - must be XI-local worker taking care of these.

How to verify that service checks are indeed done by the remote worker?
- very important to verify, because this is the best way VS SLA reporting done by the same XI server

Re: Fresh out of Advanced training and need help (modGearman

Posted: Thu Apr 14, 2016 5:44 pm
by Box293
dlukinski wrote:How to verify that service checks are indeed done by the remote worker?
On the XI server run this:

Code: Select all

gearman_top2
On the worker run this:

Code: Select all

service mod-gearman2-worker stop
At this point you should see the queues building up on the gearman_top2 output.

Re: Fresh out of Advanced training and need help (modGearman

Posted: Mon Apr 25, 2016 4:25 pm
by dlukinski
Box293 wrote:
dlukinski wrote:How to verify that service checks are indeed done by the remote worker?
On the XI server run this:

Code: Select all

gearman_top2
On the worker run this:

Code: Select all

service mod-gearman2-worker stop
At this point you should see the queues building up on the gearman_top2 output.
WORKS!
with 4 gearmans in very remote locations

THANK YOU!

Re: Fresh out of Advanced training and need help (modGearman

Posted: Mon Apr 25, 2016 4:52 pm
by rkennedy
Are we good to mark this one as resolved?

Re: Fresh out of Advanced training and need help (modGearman

Posted: Tue Apr 26, 2016 2:45 pm
by dlukinski
rkennedy wrote:Are we good to mark this one as resolved?

Yes. works really well