Page 2 of 2

Re: Two simultaneous statuses for an active check

Posted: Thu Jul 30, 2015 4:59 am
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

Re: Two simultaneous statuses for an active check

Posted: Thu Jul 30, 2015 12:25 pm
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.

Re: Two simultaneous statuses for an active check

Posted: Fri Jul 31, 2015 5:05 am
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 ?

Re: Two simultaneous statuses for an active check

Posted: Fri Jul 31, 2015 10:33 am
by tgriep
Try setting the max-jobs to zero and see if that fixes it for you.