[Nagios-devel] Patch by Dougal Scott (MySQL History Log) Problem Compiling

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Patch by Dougal Scott (MySQL History Log) Problem Compiling

Post by Guest »

Hi all,

I'm trying to use Dougal Scott's patch to log nagios history info to mysql
db.
First off, I cvsed a fresh nagios. Applying the patch went OK, no problems.
First thing I notice comes up when I run configure. It's supposed to echo
"We'll use MySQL database routines (in xdata/xlogdb.*) for history log"
between the lines for comment data and extended data, but doesn't.
Then, of course, it doesn't show it's planning to use xlogdb in the
configuration summary either. First line after "Web Interface Options"
should be "History Log data: $XLOGCOMMENT". Instead, I get the normal "HTML
URL: ..." There are no error messages. The first error I get in this
procedure is when I run "make all". Maybe the output there can help. For all
command outputs, please see below.
I have checked wheather there it may use the wrong configure.in file, well
there's only one in my nagios source dir (the patched file), so I assume
it's using it, too.

How can I compile nagios so it stores it's history logs in a MySQL DB now?

I'm looking forward to hearing from you all. Thanks.
Sincerely

Daniel


///////////////////////////////
$ ./configure [..] --with-mysql-historylog [..]
[..]
We'll use MySQL database routines (in xdata/xsddb.*) for status data I/O...
We'll use MySQL database routines (in xdata/xcddb.*) for comment data I/O...
We'll use MySQL database routines (in xdata/xeddb.*) for extended data
I/O...
We'll use MySQL database routines (in xdata/xrddb.*) for retention data
I/O...
We'll use template-based routines (in xdata/xodtemplate.*) for object data
I/O...
We'll use file-based routines (in xdata/xpdfile.*) for performance data
I/O...
We'll use MySQL database routines (in xdata/xdddb.*) for scheduled downtime
data I/O...
[..]
*** Configuration summary for nagios 1.0b6 09-15-2002 ***:
[..]
Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /usr/sbin/traceroute
[..]


///////////////////////////////
$ make all
[..]
gcc -g -O2 -I/usr/include/mysql/ -I/usr/local/include/ -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib
/perl5/5.6.1/i586-linux/CORE -DHAVE_CONFIG_H -DNSCORE -L/usr/lib/mysql/ -L/
usr/lib/ -lmysqlclient 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/xpdfile.c ../common/downtime.c ../xdata/xdddb.c
../xdata/@XLOGC@ -rdynamic -L/usr/local/lib
/usr/lib/perl5/5.6.1/i586-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl
5/5.6.1/i586-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt -lutil -lm -o
nagios
gcc: ../xdata/@XLOGC@: No such file or directory
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/usr/local/src/nagios/base'
make: *** [all] Error 2






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: daniel.geske@yoc.de
Locked