Two simultaneous statuses for an active check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: Two simultaneous statuses for an active check

Post by mon-team »

We tried to enable the eventhandler on the worker but it didn't fix the problem

Code: Select all

grep gear /usr/local/nagios/etc/nagios.cfg 
broker_module=/usr/lib64/mod_gearman/mod_gearman.o config=/etc/mod_gearman/mod_gearman_neb.conf eventhandler=no
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Two simultaneous statuses for an active check

Post by tmcdonald »

Is it just the interface checks that show this duplication? I am wondering if a custom plugin could be written to test this, and the plugin just returns the current time on the remote machine. I almost think there could be some results queueing up or being sent late. If two results come back saying "The time is 13:37:01" and "The time is 13:32:01" then there might be something weird with queueing going on.
Former Nagios employee
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: Two simultaneous statuses for an active check

Post by mon-team »

We found this bug fix in mod-gearman 2.0 changelog

2.0.0 Thu Dec 11 23:46:11 CET 2014
- fixed running jobs twice when worker hits max-jobs (Tobias Deiminger)

So we would like to upgrade mod-gearman to try if this solve our issue, but we are concerning about the last stable version of mod-gearman supported by nagios core 4.
We found discordant information about that:
-mod-gearman.org reports 2.1.3 as the last stable version of mod-gearman fo nagios core 4
http://mod-gearman.org/download.html

-the Nagios documentation refers to mod-gearman 1.5 in the "integrating Mod-Gearman With Nagios XI" document
https://assets.nagios.com/downloads/nag ... ios_XI.pdf

Does anybody use mod-gearman 2.x with nagios core 4 ?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Two simultaneous statuses for an active check

Post by tgriep »

Try setting the max-jobs to zero and see if that fixes it for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked