RE: [Nagios-db-devel] Segfault
Status: Beta
Brought to you by:
bench23
From: Kevin M. <km...@te...> - 2005-07-12 00:41:14
|
I grabbed the most recent CVS before the current one and this worked fine. Thanks -----Original Message----- From: Ben [mailto:be...@si...]=20 Sent: Monday, July 11, 2005 6:38 PM To: Kevin Mau Cc: nag...@li... Subject: Re: [Nagios-db-devel] Segfault Ah, yes, this problem. I knew there were some good fixes in CVS that weren't in a released version. I recall that Ethan "recently" made a checkin to nagios which fixed the compile warnings you're seeing. I don't honestly remember what else it fixed. Do you have a recent version of Nagios? Do you have a recent cvs version of nagios?=20 On Mon, 11 Jul 2005, Kevin Mau wrote: > Im currently using a redhat ES 4 box with Nagios 2.0 beta 3 with > Nagios-db-0.91 > =20 > I have nagios up and running perfectly. > Ive unpacked and modified the make file and inserter.c with the=20 > correct information Everything compiles without error Ive put the=20 > inserter.o into /usr/local/nagios/neb and modified the nagios.cfg to=20 > point to this this. > When I start up nagios it segfaults and in the nagios log I have the=20 > following > =20 > [1121118074] Nagios 2.0b3 starting... (PID=3D1825) [1121118074] LOG=20 > VERSION: 2.0 [1121118074] initializing nagios-db postgres inserter... > [1121118074] nagios-db: inserter locked into db [1121118074] Event=20 > broker module '/usr/local/nagios/neb/inserter.o' > initialized successfully. > [1121118074] nagios-db: couldn't clear config info () [1121118074]=20 > nagios-db: couldn't configure host using 'nagios-db: > couldn't configure host using 'nagios-db: couldn't configure host usi' > () > [1121118074] nagios-db: configured 1 hosts [1121118074] nagios-db:=20 > couldn't configure hostgroup using 'nagios-db: > couldn't configure hostgroup using 'nagios-db: couldn't configure=20 > hostgroup using 'nagios-db: couldn't configure ho' () [1121118074]=20 > Caught SIGSEGV, shutting down... > =20 > =20 > Ive tried the current version from CVS and during the compile i=20 > receieve > =20 > =20 > In file included from pgwrapper.c:7: > /install/nagios-2.0b3/include/../include/common.h:310:1: warning: "TRUE" > redefined > In file included from /usr/lib/glib-2.0/include/glibconfig.h:9, > from /usr/include/glib-2.0/glib/gtypes.h:30, > from /usr/include/glib-2.0/glib/galloca.h:30, > from /usr/include/glib-2.0/glib.h:30, > from pgwrapper.h:4, > from pgwrapper.c:5: > /usr/include/glib-2.0/glib/gmacros.h:147:1: warning: this is the=20 > location of the previous definition In file included from=20 > pgwrapper.c:7: > /install/nagios-2.0b3/include/../include/common.h:311:1: warning: > "FALSE" redefined > In file included from /usr/lib/glib-2.0/include/glibconfig.h:9, > from /usr/include/glib-2.0/glib/gtypes.h:30, > from /usr/include/glib-2.0/glib/galloca.h:30, > from /usr/include/glib-2.0/glib.h:30, > from pgwrapper.h:4, > from pgwrapper.c:5: > /usr/include/glib-2.0/glib/gmacros.h:143:1: warning: this is the=20 > location of the previous definition In file included from=20 > /install/nagios-2.0b3/include/../include/objects.h:31, > from > /install/nagios-2.0b3/include/../include/nebstructs.h:30, > from inserter.c:11: > /install/nagios-2.0b3/include/../include/common.h:310:1: warning: "TRUE" > redefined > In file included from /usr/lib/glib-2.0/include/glibconfig.h:9, > from /usr/include/glib-2.0/glib/gtypes.h:30, > from /usr/include/glib-2.0/glib/galloca.h:30, > from /usr/include/glib-2.0/glib.h:30, > from pgwrapper.h:4, > from inserter.c:6: > /usr/include/glib-2.0/glib/gmacros.h:147:1: warning: this is the=20 > location of the previous definition In file included from=20 > /install/nagios-2.0b3/include/../include/objects.h:31, > from > /install/nagios-2.0b3/include/../include/nebstructs.h:30, > from inserter.c:11: > /install/nagios-2.0b3/include/../include/common.h:311:1: warning: > "FALSE" redefined > In file included from /usr/lib/glib-2.0/include/glibconfig.h:9, > from /usr/include/glib-2.0/glib/gtypes.h:30, > from /usr/include/glib-2.0/glib/galloca.h:30, > from /usr/include/glib-2.0/glib.h:30, > from pgwrapper.h:4, > from inserter.c:6: > /usr/include/glib-2.0/glib/gmacros.h:143:1: warning: this is the=20 > location of the previous definition >=20 > It looks like it compiles fine however this causes nagios to SegFault=20 > right away > =20 > Any support for either of these versions would be greatly appreciated. > =20 >=20 |