Compling Nagios 1.1 with PostgreSQL 7.3.3 on RH 8.0 issues

James Turnbull james at lovedthanlost.net
Fri Jun 13 07:54:12 CEST 2003


Hi all

After having given up on getting Nagios 1.1 to work with MySQL I tried
installing it with PostgreSQL (7.3.3).

No luck there either.

I configure with:

./configure --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-nagio
s-user=nagios --with-nagios-grp=nagios --with-pgsql-xdata --with-pgsql-lib=/
usr/local/pgsql/lib --with-pgsql-inc=/usr/local/pgsql/include

Configure runs perfectly and says it finds the PostgreSQL libraries.

Then when I run 'make all' I get:

gcc -g -O2 -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DNSCORE   -c -o
perfdata.o perfdata.c
gcc -g -O2 -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DNSCORE -L/usr/local/
pgsql/lib -lpq  nagios.c checks.o config.o commands.o flapping.o logging.o
notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c
../common/comments.c ../xdata/xcddb.c ../common/objects.c
../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c perfdata.o
../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddb.c    -lm -o nagios
../xdata/xrddb.c:46:28: pgsql/libpq-fe.h: No such file or directory
../xdata/xrddb.c:63: parse error before '*' token
../xdata/xrddb.c:63: warning: data definition has no type or storage class
../xdata/xrddb.c:64: parse error before '*' token
../xdata/xrddb.c:64: warning: data definition has no type or storage class
../xdata/xrddb.c: In function `xrddb_connect':

It looks as if it can't find the pgsql/libpq-fe.h file!  Even though it says
it found the libraries fine in the ./configure.

I am not a developer and have no idea why this is happening - simply a
Network Admin wanting to use the product.  Can someone out there please help
with some suggestions!

Thanks in advance

James Turnbull



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
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