[Nagios-devel] Ndo 1.4b7 patch : SSL connections

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
Guest

[Nagios-devel] Ndo 1.4b7 patch : SSL connections

Post by Guest »

------=_Part_20831_16372504.1225976929326
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi List,


I wrote a patch for ndo 1.4b7 (ndomod and ndo2db) : the SSL
connection. The code come from nrpe. I think this can be useful with
distributed Nagios, the communications between the secondary nagios
and ndo2db are in plaintext and we can see the name of the host in it.

The patch just apply the SSL connection to the sock of the connection
between ndomod and ndo2db (just for a tcp connection, i don't think it
is useful for unix socket...).

In the patch you can see the dh.h file from nrpe. In nrpe it's
generated by ./configure but I don't know how to modified it. The
Makefile need the ssl lib too, but I don't know how to modify the
autoconf (I leave a Makefile.new in the patch to show what to modify),
if someone can help me on this ;)

For the moment the patch apply the SSL for all connections, but maybe
we can put the use_ssl argument into ndo2db.conf and ndomod.conf.

I test with a small server and 4000 services and I don't see any
overload of ndo2db or nagios due to the SSL. It can't be null, just
small.


Jean

------=_Part_20831_16372504.1225976929326
Content-Type: text/x-patch; name=ndo14b7_ssl_patch.patch
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fn7esq4f0
Content-Disposition: attachment; filename=ndo14b7_ssl_patch.patch

ZGlmZiAtdXJOIC4uL25kb3V0aWxzLTEuNGI3L2luY2x1ZGUvY29tbW9uLmggLi9pbmNsdWRlL2Nv
bW1vbi5oCi0tLSAuLi9uZG91dGlscy0xLjRiNy9pbmNsdWRlL2NvbW1vbi5oCTIwMDctMDEtMDgg
MDE6MzU6NTQuMDAwMDAwMDAwICswMTAwCisrKyAuL2luY2x1ZGUvY29tbW9uLmgJMjAwOC0xMS0w
NiAxMjoyNDoxNC4wMDAwMDAwMDAgKzAxMDAKQEAgLTE4LDQgKzE4LDE2IEBACiAjZGVmaW5lIE5E
T19PSyAgICAgICAg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8KQEAgLTE0MCw2ICsxNTEsNyBAQAogCXN0cnVj
dCBob3N0ZW50ICpocD1OVUxMOwogCW1vZGVfdCBtb2RlPVNfSVJVU1IgfCBTX0lXVVNSIHwgU19J
UkdSUCB8IFNfSVdHUlA7CiAJaW50IG5ld2ZkPTA7CisJaW50IHJjOwogCiAJLy

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked