PDA

View Full Version : SSL connections between ndomod and ndo2db


naparuba
6th November 2008, 18:10
Hi,

For those you use the distributed Monitoring and do not want to see in plain text the name of their server in the connections between ndomod (the distrant Nagios) and ndo2db (the central Nagios), you can use a patch I wrote. It apply to ndoutils1.4b7.

The files ndomod and ndo2db take a new argument: use_ssl (=0 or =1). If you do not put this value, the program take use_ssl=1 for default (so you can use with Centreon v2 ;) )

The cpu usage is really soft (I've got a Xeon 1.6ghz and 6000 services and nagios and ndo2db is never more than 3% of CPU).



Nap

nunki
5th May 2009, 09:32
hello,

how install this patch? :s

naparuba
5th May 2009, 11:42
In the source folder of ndoutils, after the configure:
patch -p1 < file.patch

Then make.

nunki
5th May 2009, 11:58
I have some errors during the "make":


../include/common.h:23:17: erreur: rsa.h : Aucun fichier ou dossier de ce type
../include/common.h:24:20: erreur: crypto.h : Aucun fichier ou dossier de ce type
../include/common.h:25:16: erreur: dh.h : Aucun fichier ou dossier de ce type
../include/common.h:26:17: erreur: pem.h : Aucun fichier ou dossier de ce type
../include/common.h:27:17: erreur: ssl.h : Aucun fichier ou dossier de ce type
../include/common.h:29:18: erreur: rand.h : Aucun fichier ou dossier de ce type


Which libraries are missing? I have installed openssl and openssl-devel.

naparuba
5th May 2009, 12:00
What is the output of the patch command?

nunki
5th May 2009, 12:03
the output when I apply the patch:


patching file include/common.h
patching file include/dh.h
patching file include/io.h
patching file src/io.c
patching file src/Makefile.new
patching file src/ndo2db.c
patching file src/ndomod.c


and the command I have used:

patch -p1 < ndo14b7_ssl_patch_v2.patch

naparuba
5th May 2009, 12:08
There must be a pb in the patch: rename
src/Makefile.new
in
src/Makefile

nunki
5th May 2009, 12:19
It is ok! I can do "make" without errors.

Thanks a lot