Mod_Gearman Worker Hostgroups
Posted: Thu May 07, 2015 3:34 pm
I have defined a hostgroup to test the plugins and mod_gearman_worker.
1. I have added a host to a "test" hostgroup.
2. I have configured a specific worker to handle that hostgroup.
3. I perform a check from XI, and noticed that the check is running on the XI host instead.
Steps taken:
1. Went into HostGroup, created "test" and then added host to it.
2. edit the /etc/mod_gearman/mod_gearman_worker.conf on worker2. Restarted mod_gearman_worker.
3. enable debug and tail log on all worker nodes.
4. monitor gearman_top to confirm that the hostgroup is recognized.
5. Initiate a service check of the host => check performed via XI.
Ine added to /etc/mod_gearman/mod_gearman_worker.conf on woker 2
Confirmation message from log on worker1 which is the XI servier
Gearman Top showing the hostgroup
Did I miss anything here?
1. I have added a host to a "test" hostgroup.
2. I have configured a specific worker to handle that hostgroup.
3. I perform a check from XI, and noticed that the check is running on the XI host instead.
Steps taken:
1. Went into HostGroup, created "test" and then added host to it.
2. edit the /etc/mod_gearman/mod_gearman_worker.conf on worker2. Restarted mod_gearman_worker.
3. enable debug and tail log on all worker nodes.
4. monitor gearman_top to confirm that the hostgroup is recognized.
5. Initiate a service check of the host => check performed via XI.
Ine added to /etc/mod_gearman/mod_gearman_worker.conf on woker 2
Code: Select all
hostgroup=testCode: Select all
[2015-05-07 13:32:40][9811][DEBUG] got service job: kdcnaggm01 - Memory UsageCode: Select all
2015-05-07 13:33:40 - localhost:4730 - v1.1.8
Queue Name | Worker Available | Jobs Waiting | Jobs Running
----------------------------------------------------------------------------------
check_results | 1 | 0 | 0
eventhandler | 99 | 0 | 0
host | 99 | 0 | 0
hostgroup_test | 25 | 0 | 0
service | 99 | 0 | 0
worker_kdcnaggm01 | 1 | 0 | 0
worker_kdcnaggm02 | 1 | 0 | 0
worker_kdcnaggm03 | 1 | 0 | 0
worker_kdcnagxi01 | 1 | 0 | 0
----------------------------------------------------------------------------------