<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.8">
</HEAD>
<BODY>
Sorry to say but I was told the RPM's are not compiled for database support. You will have to compile Nagios with DB support. I am working on a procedure to do just this. I recommend the following Redhat RPM packages be installed before starting, they all may not be required but Nagios compile clean after installing them:<BR>
<BR>
autoconf<BR>
gd-devel<BR>
gd-progs<BR>
libgd<BR>
libgd-dev<BR>
libpng<BR>
libpng-devel<BR>
libpng10<BR>
libpng10-devel<BR>
libungif<BR>
libungif-devel<BR>
libungif-progs<BR>
mysql<BR>
mysql-devel<BR>
mysql-server<BR>
<BR>
The steps below are what I did to compile Nagios with MySQL support, they have not been verified (ran from a fresh install of RH) so I would take them with a grain-of-salt; the most important thing the is the RPsM listed above and to run autoconf before continuing. Hope this helps.<BR>
<BR>
<BR>
1) This step prepares Nagios to be compiled. Expand the Nagios download to /tmp/nagios-1.1 and cd into it.<BR>
<BR>
<PRE> autoconf
./configure --with-htmurl=/monitor --with-cgiurl=/monitor/cgi-bin \
--prefix=/opt/monitorsvr \
--with-nagios-user=nagios --with-nagios-grp=nagios \
--with-mysql-inc=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql \
--with-mysql-xdata
</PRE>
2) Compile Nagios:<BR>
<BR>
make all<BR>
<BR>
3) Install Nagios, supporting init script and command file permissions:<BR>
<BR>
make install; make install-init; make install-commandmode<BR>
<BR>
3a) If you wish to install SAMPLE configuration files run:<BR>
<BR>
make install-config<BR>
<BR>
4) Cd'ed to /opt/monitorsvr/etc and copied cgi.cfg-example and<BR>
resource.cfg-sample to cgi-cfg and resource.cfg respectively.<BR>
Edited all DataBase directives to match the MySQL database information.<BR>
DB Name: nagios DB user: nagios<BR>
DB Port: 3306 DB host: localhost DB Password: <password><BR>
<BR>
5) Created a DB Using phpMyAdmin called nagios. Created a user named<BR>
nagios and gave full control of the nagios DataBase to user nagios.<BR>
NOTE: This step does not have to be done if a DB user has already<BR>
been established - Sorry I will not cover this. This user will need<BR>
the following DB permissions to the nagios database: SELECT, INSERT,<BR>
UPDATE, DELETE and CREATE. CREATE is only needed for the next step<BR>
so it can be revoked afterwords.<BR>
<BR>
6) Run: mysql --user=nagios --password=<password> nagios \<BR>
< /tmp/nagios-1.1/contrib/database/create_mysql<BR>
<BR>
<BR>
NOTE: I use the nagios user so I can make sure the appropriate<BR>
DB permission have been set.<BR>
<BR>
<BR>
<BR>
On Tue, 2003-11-25 at 02:13, k.l. muthu kumar wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>I have installed nagios in redhat 9 using rpm.
now i would like to have mysql database support for nagios. can anyone
tellme how to configure database support in this senario.
Thanks,
KLM
Need a new email address that people can remember
Check out the new EudoraMail at</FONT>
<A HREF="http://www.eudoramail.com"><U>http://www.eudoramail.com</U></A>
<FONT COLOR="#737373">
-------------------------------------------------------
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: </FONT><A HREF="http://sourceforge.net/donate/"><U>http://sourceforge.net/donate/</U></A>
<FONT COLOR="#737373">_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net</FONT>
<A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users"><U>https://lists.sourceforge.net/lists/listinfo/nagios-users</U></A>
<FONT COLOR="#737373">::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</I></FONT></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>--
Jamie Bohr
Agilent Technologies, Inc.
IT | Technical Computing
719-590-2396
Jamie_Bohr@Agilent.com</PRE>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>