sni / mod_gearman

Distribute Naemon Host/Service Checks & Eventhandler with Gearman Queues. Host/Servicegroups affinity included.
http://www.mod-gearman.org
GNU General Public License v3.0
122 stars 42 forks source link

Check latency values very high when using mod_gearman #175

Closed sideshowcecil closed 4 months ago

sideshowcecil commented 5 months ago

Hi @sni,

we are using mod_gearman for both host and service checks and, when it is used, the latency values are very high and nowhere near the latency when not using mod_gearman.

For testing purposes we have enabled mod_gearman for services but disabled it for hosts and this results in the following behavior:

image

We can see the same when fetching the latency via livestatus:

$ printf "GET services\nColumns: host_name host_latency service_description latency\n" | unixcat /var/cache/naemon/live
host1;0.0000000000e+00;Apache;3.8603170325e+09

We are using the following versions of gearman/mod_gearman/naemon/thruk:

# dnf list installed | grep gearman
gearmand.x86_64                               1.1.19.1-9.17                                       @naemon
libgearman.x86_64                             1.1.19.1-1.el8                                      @epel
mod_gearman.x86_64                            5.1.2-10.16                                         @naemon
dnf list installed | grep naemon
gearmand.x86_64                               1.1.19.1-9.17                                       @naemon
libnaemon.x86_64                              1.4.2-19.1                                          @naemon
libthruk.x86_64                               3.00-17.23                                          @naemon
mod_gearman.x86_64                            5.1.2-10.16                                         @naemon
naemon.noarch                                 1.4.2-14.1                                          @naemon
naemon-core.x86_64                            1.4.2-19.1                                          @naemon
naemon-livestatus.x86_64                      1.4.2-15.1                                          @naemon
naemon-thruk.noarch                           1.4.2-14.1                                          @naemon
naemon-vimvault.x86_64                        1.4.2-4.1                                           @naemon
thruk.x86_64                                  3.14.2-39.1                                         @naemon
thruk-base.x86_64                             3.14.2-39.1                                         @naemon
thruk-plugin-reporting.x86_64                 3.14.2-39.1                                         @naemon

Could you please advise on any possible fixes to this?

Thanks in advance!

sni commented 5 months ago

Have you tried the modern worker from https://github.com/ConSol-Monitoring/mod-gearman-worker-go/

sideshowcecil commented 5 months ago

Not yet, but I will give it a try an let you know if this solves my issue :)

sideshowcecil commented 4 months ago

Hi @sni, I finally tried the modern worker and the latency values went back to normal. I will try to use the new worker from now on.