Page 1 of 1
Quick MOD-GEARMAN question
Posted: Mon Nov 29, 2021 3:40 am
by coitop
Hello,
Do MOD-GEARMANS cache data in case they lose connectivity with Nagios and send data when the conneciton comes back up?
Thanks!
Re: Quick MOD-GEARMAN question
Posted: Mon Nov 29, 2021 9:50 am
by mcapra
It's actually the Gearman job server you'd need to worry about, in this case. The NEB module on the Nagios side of things simply consumes messages from the check_results queue on that Gearman job server.
http://gearman.org/manual/job_server/
If Nagios is unable to reach the Gearman job server for some reason, it simply can't consume anything. Your check results wait in the check_results queue on that job server until such a time when Nagios is able to consume them. Gearman job server queues, by default, exist only in memory and are not durable -- if the Gearman job server process dies, your check results go poof. You can leverage the
--queue-type argument for the Gearman job server to store the queue in mysql instead, if durability is desired.