Anyone Have template-objects working on Red Hat 9, Anyone???????

Rhugga nagios-user at sandiego420.com
Tue Jul 20 17:51:01 CEST 2004


Wheeler, MG wrote:

>We are using RH9 on all of our machines and yes, we are using templates.
>
>-----Original Message-----
>From: nagios-users-admin at lists.sourceforge.net
>[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Rhugga
>Sent: Tuesday, July 20, 2004 8:22 AM
>To: Nagios-Users List
>Subject: [Nagios-users] Anyone Have template-objects working on Red Hat
>9, Anyone???????
>
>
>
>So I don't waste any more time, just curious if anyone has nagios 1.2 
>working on Red Hat 9 using template based objects?
>Thx,
>Rhugga
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
>_______________________________________________
>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
>
>_____________________________________________________________________
>Message scanned for viruses
>
>_____________________________________________________________________
>This message has been checked for all known viruses
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
>_______________________________________________
>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
>  
>
How did you get it to compile? It complains about one of it's own header 
files and an undefined function. (Normaly this is a porting type issue) 
I could dig down into the code but obviously not the issue if other 
people have it compiled and working.

make[1]: Entering directory `/usr/local/src/nagios-1.2/cgi'
gcc -g -O2 -I/usr/local/mysql/include/mysql -I/usr/include 
-DHAVE_CONFIG_H -DNSCGI -L/usr/lib -L/usr/local/mysql/lib/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.2/cgi'
make: *** [all] Error 2

How did you build and compile nagios with template-objects supported?

Here is what I am trying to use:

My configure is:
syslog:/usr/local/src/nagios-1.2 #./configure 
--prefix=/usr/local/nagios-1.2 --with-nagios-user=nagios 
--with-nagios-grp=nagios --with-init-dir=/etc/init.d 
--with-lockfile=/var/lock/subsys/nagios --with-mysql-xdata 
--with-mysql-lib=/usr/local/mysql/lib/mysql 
--with-mysql-inc=/usr/local/mysql/include/mysql --with-gd-lib=/usr/lib 
--with-gd-inc=/usr/include --with-cgiurl=/nagios-bin 
--with-htmurl=/nagios --enable-DEBUG0 --enable-DEBUG1 --enable-DEBUG2 
--enable-DEBUG3 --enable-DEBUG4 --enable-DEBUG5 --with-template-objects 
--with-default-perfdata

# Misc. env settings
LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql:/usr/local/ssl/lib:/usr/lib
LANG=C
LDFLAGS=-L/usr/lib
CPPFLAGS=-I/usr/include

Also what version of gcc and what was the value of LANG when you compiled?
Thx,
Rhugga




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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