Error Starting Nagios 1.1 on RH 9

Marc Powell mpowell at ena.com
Wed Nov 19 19:15:32 CET 2003


Try doing a 'make distclean' first then ./configure --...., then make
all. 

Also, just random commentary, you seem to be using an awful lot of
configure options. I think it could be simplified quite a bit.
--with-mysql-xdata implies (--with-mysql-status --with-mysql-comments
--with-mysql-extinfo --with-mysql-retention --with-mysql-downtime),
(--with-nagios-user=nagios --with-nagios-grp=nagios
--with-command-user=nagios --with-command-grp=nagios) can all be removed
as they default to the user 'nagios' anyway, and (--enable-DEBUG0
--enable-DEBUG1 --enable-DEBUG2
--enable-DEBUG3 --enable-DEBUG4 --enable-DEBUG5) should be removed
unless you intend to be doing nagios development. I'm sure all that
extra debugging code will only hamper performance.

I also think that your --with-mysql-lib should be /usr/lib/mysql/ and
--with-mysql-inc should be /usr/include. The xdata routines
automatically add an additional /mysql/ to the path unless that's been
changed recently in CVS. If you're not seeing any compile time errors or
warnings then you can probably ignore this paragraph.

--
Marc 

> -----Original Message-----
> From: Rhugga [mailto:nagios at zulu420.com]
> Sent: Wednesday, November 19, 2003 12:01 PM
> To: Marc Powell
> Cc: Nagios Mailing List
> 
> 
> 
> Marc Powell wrote:
> 
> > Ah. I've got it. Referencing your earlier email with the compile
flags I
> > see that you used '--with-default-objects'. That's where your
problem
> > lies. Hold on, this might get confusing --
> >
> > Nagios came from Netsaint. Netsaint used single line command, host
and
> > service definitions ala --
> >
> > command[check-host-alive]=/usr/local/nagios/libexec/check_ping -H
> > $HOSTADDRESS$ -w 1000.0,80% -c 2000.0,100%
> >
> > Then came templates. Templates are great and very useful but they
were
> > new so they were not the default. As Nagios evolved, templating
became
> > the preferred method of defining objects within Nagios because of
its
> > power and so became the configure-time default (even though the old
> > method was called 'default' by default.)
> >
> > Long story short, remove the --with-default-objects from your
configure
> > line, recompile and you should be good to go to use your template
based
> > config files.
> >
> > --
> > Marc
> 
> Okay, I removed that option and configured a fresh tarball. Now 'make
> all' craps out with this error:
> 
> gcc -g -O2 -I/usr/include/mysql -I/usr/include  -D_REENTRANT
> -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/gdbm
-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE
>   -DHAVE_CONFIG_H -DNSCGI -L/usr/lib/mysql/mysql -L/usr/lib
> -lmysqlclient  avail.c getcgi.o cgiutils.o auth.o popen.o
> ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c
> ../xdata/xsddb.c -o avail.cgi
> ../xdata/xodtemplate.c: In function `xodtemplate_add_object_property':
> ../xdata/xodtemplate.c:1344: `temp_buffer' undeclared (first use in
this
> function)
> ../xdata/xodtemplate.c:1344: (Each undeclared identifier is reported
> only once
> ../xdata/xodtemplate.c:1344: for each function it appears in.)
> ../xdata/xodtemplate.c:1346: `NSLOG_CONFIG_ERROR' undeclared (first
use
> in this function)
> make[1]: *** [avail.cgi] Error 1
> make[1]: Leaving directory `/usr/local/src/nagios-1.1/cgi'
> make: *** [all] Error 2
> 
> 
> Anyone seen this one before?
> 
> Thx,
> CC



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list