Page 2 of 2

Re: mod gearman

Posted: Wed Nov 01, 2017 2:18 pm
by elinagios
Installed mod gearman, but i need a bit of info:
gearman_top2 output:
Queue Name | Worker Available | Jobs Waiting | Jobs Running
----------------------------------------------------------------------
check_results | 1 | 0 | 0
eventhandler | 14 | 0 | 0
host | 14 | 0 | 0
service | 14 | 0 | 2
worker_servername | 1 | 0 | 0
----------------------------------------------------------------------

What does the worker available: eventhandler, host, service value 14 mean?

Re: mod gearman

Posted: Wed Nov 01, 2017 3:18 pm
by vAJ
That means you have 14 worker threads alive right now.

Re: mod gearman

Posted: Wed Nov 01, 2017 3:58 pm
by elinagios
That means 14 current check made at the moment?
After installing mod gearman, found out that many service checks that use ssh login to remote hosts, get one reply from nagiosxi and different from running script from command line. For some reason running checks from nagiosxi web, they often get UNKNOWN(sometimes OK from web too, but rarely) but from command line OK.
This server also has serveral IP addresses, is it possible these checks via web use wrong interface or mod gearman process uses this. Or what could cause this?

Re: mod gearman

Posted: Wed Nov 01, 2017 4:04 pm
by vAJ
No, this means that gearman has spawned 14 threads to handle checks that were sent to the gearmand queue.

There are many fine points that need to be followed when switching to mod_gearman with NagiosXI. It's a great upgrade. We use it in a very distributed fashion so that certain checks are run local to a given datacenter and not across the WAN.

Have you followed the guide located: https://support.nagios.com/kb/article/n ... os-xi.html ?

Re: mod gearman

Posted: Wed Nov 01, 2017 4:20 pm
by elinagios
Yes, i used nagiosxi guide on how to install mod gearman server. This is also the only worker on the environment and i havent touced any worker or mod gearman configuration, it has the default conf, all checks should be run through this nagios server what is also a worker.

Re: mod gearman

Posted: Thu Nov 02, 2017 9:15 am
by kyang
Hey @elinagios,

Have you taken a look at the documentation for Mod Gearman? This will give you a run-down of what a worker is and how mod gearman works.

https://labs.consol.de/nagios/mod-gearm ... es_it_work

There is also a lot more information on that same page.