Error Starting Nagios 1.1 on RH 9

Rhugga nagios at zulu420.com
Wed Nov 19 19:00:40 CET 2003



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