Page 1 of 1

Modgearmn issue

Posted: Tue Nov 21, 2017 9:32 am
by socgenindia
Hi,
We have nagios XI 5.2 , and we are using modgearman. Below is the status of gearman.

Queue Name | Worker Available | Jobs Waiting | Jobs Running
------------------------------------------------------------------
check_results | 1 | 0 | 0
eventhandler | 50 | 10 | 0
host | 99 | 0 | 30
service | 99 | 9475 | 69
worker_<servr1> | 1 | 0 | 0
worker_<serv2> | 1 | 0 | 0
------------------------------------------------------------------

There is no event handler running here. broker module entry in nagios.cfg file.

broker_module=/produits/nagiosXI/gearman/worker/bin/mod_gearman.o config=/produits/nagiosXI/gearman/worker/etc/mod_gearman_neb.conf eventhandler=yes

and i have made eventhandler=yes in mod_gearman_neb.conf , mod_gearman_worker.conf configuration files.

Only service and hosts checks are executing using worker but not eventhandler check.
please suggest here.

Re: Modgearmn issue

Posted: Tue Nov 21, 2017 3:29 pm
by kyang
Anything noticeable inside the log? Can you post the log file? set the debug=3

Code: Select all

/var/log/mod_gearman2/mod_gearman_neb.log
Could you also post your conf files?

Were event handlers ever working?

Re: Modgearmn issue

Posted: Wed Nov 22, 2017 8:11 am
by socgenindia
After enabling the log , i see no log entry for eventhandler. if i enable event handler option in gearman configuration all host checks in nagios grays out and eventhandler execution doesn't takes place.

Re: Modgearmn issue

Posted: Wed Nov 22, 2017 1:22 pm
by kyang
Could you post your conf files?

Code: Select all

/etc/mod_gearman2/module.conf
Were event handler's working before or ever?

If there's nothing specific showing in the log file for event handlers. How is your event handler's set up to run on gearman?