Nagios - Mod-Gearman - NSclient Encyption

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
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Nagios - Mod-Gearman - NSclient Encyption

Post by andyb4u »

I have been tasked to find out how to configure Nagios to work securely with mod-gearman and monitor windows machines which have NSclient installed. At a high level, am I right in thinking that the Nagios server communicates with the mod-gearman workers using it's own encryption? If so what level of encryption is this? Can the worker server then be configured to communicate securely with the NSClients using certs? Apologies if these questions have been answered before.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios - Mod-Gearman - NSclient Encyption

Post by mcapra »

Mod_Gearman uses Rijndael 256 by default I believe:
https://github.com/sni/mod_gearman/blob ... .h#L36-L37
https://github.com/sni/mod_gearman/blob ... rypt.c#L60

Unless the encryption directive in the workers is disabled, then that worker will send it's results un-encrypted. You'd need to verify all of this against the Nagios XI setup script if you used that, I'm not sure what it sets.
andyb4u wrote:Can the worker server then be configured to communicate securely with the NSClients using certs?
That depends on the NSClient++ setup. Following some official NSClient++ documentation, it seems doable:
https://www.medin.name/blog/2012/12/02/ ... ntication/

But I don't have any direct experience with such a setup.
Former Nagios employee
https://www.mcapra.com/
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios - Mod-Gearman - NSclient Encyption

Post by tgriep »

Thanks @mcapra for the help. @andyb4u if you have any more questions, let us know.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked