mod gearman

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
elinagios
Posts: 146
Joined: Thu Feb 16, 2017 3:45 am

Re: mod gearman

Post 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?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: mod gearman

Post by vAJ »

That means you have 14 worker threads alive right now.
Andrew J. - Do you even grok?
elinagios
Posts: 146
Joined: Thu Feb 16, 2017 3:45 am

Re: mod gearman

Post 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?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: mod gearman

Post 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 ?
Andrew J. - Do you even grok?
elinagios
Posts: 146
Joined: Thu Feb 16, 2017 3:45 am

Re: mod gearman

Post 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.
kyang

Re: mod gearman

Post 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.
Locked