Quick MOD-GEARMAN question

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
coitop
Posts: 49
Joined: Fri Jul 17, 2020 7:35 am

Quick MOD-GEARMAN question

Post 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!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Quick MOD-GEARMAN question

Post 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/

Image

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.
Former Nagios employee
https://www.mcapra.com/
Locked