RE: [Nagios-db-devel] Error loading module
Status: Beta
Brought to you by:
bench23
From: Michael H. <mic...@ax...> - 2005-05-05 23:52:08
|
I modified the makefile with the correct locations of the postgres = libraries and Nagios headers for my system: =20 all: gcc -Wall -g -O2 -o inserter.o inserter.c -shared = -I/usr/local/src/nagios-2.0b3/include -I/usr/local/pgsql/include = /usr/lib/libpq.a =20 and did "make all". In hindsight the pgsql include directory did nothing = as that directory doesn't exist but the postgres header is in = /usr/include (rpm install of postgres) so it all worked out in the end. = I copied the resulting inserter.o to my nagios installation. =20 I am using the tarball from sourceforge; I'm not a developer and don't = have CVS set up. =20 Is there any chance that you could do a new release? Being able to = configure the module would be a really nice feature to have... :) =20 Also if you could add a paragraph to README about how to add the NEB = module to nagios (ie use a "broker_module" directive in nagios.cfg) this = would be appreciated. As with all things it's obvious in hindsight but I = did spend some time yesterday wondering WTF I was supposed to do with = inserter.o. =20 Thanks! =20 Michael =20 =20 ________________________________ From: Ben [mailto:be...@si...] Sent: Fri 6/05/2005 9:37 AM To: Michael Henry Cc: nag...@li... Subject: Re: [Nagios-db-devel] Error loading module How did you compile the module? Somebody else had a similar issue, but they had ommited some libraries. If you pull from CVS, you can set the connection params in your nagios config file. If you pull the most recent tarball (0.91 I believe) then = you have to modify inserter.c to change your connection settings. On Thu, 5 May 2005, Michael Henry wrote: > Hi, >=20 > I get the following error in my nagios.log when I configure Nagios = to use the provided postgres module: >=20 > [1115279003] Error: Could not load module = '/usr/local/nagios/neb/inserter.o' -> /usr/local/nagios/neb/inserter.o: = undefined symbol: BIO_new_mem_buf > > Also: How do I configure the module to connect to my database? Is it = hard-coded in the source? >=20 > Thanks, >=20 > Michael >=20 >=20 >=20 > |