Anyone Get Nagios to Compile on Red Hat 9??

jeff vier jeff.vier at tradingtechnologies.com
Thu Nov 13 18:01:24 CET 2003


On Thu, 2003-11-13 at 08:49, Rhugga wrote:
> If so what was the trick?

I don't recall there being any tricks, per se.  These instructions are
for nagios v1.1, but I highly recommend getting the 1.x cvs branch.  You
should definitely get the cvs plugins (and that's what these
instructions are for, as well) and patch it as described below.  the
patch is attached.

First, I install these packages:
MySQL-client MySQL-devel MySQL-shared-compat net-snmp tcpdump openssh*
openssl* libgcc libgcj gettext libgcj-devel itcl pidentd radiusclient
radiusclient-devel tix tkinter tcl tk libjpeg-devel

Note, MySQL in this case is v4.0.14

Then I compile and install these:
httpd (and optionally mod_ssl) zlib libpng gd

Then I do this:
useradd -u 113 -s /bin/bash -c "Nagios daemon user" -m nagios
tar xvfz nagios-1.1.tar.gz
cd nagios-1.1
export PATH="$PATH:/usr/sbin:/var/qmail/bin"
./configure  --with-mysql-xdata --with-nagios-user=nagios
--with-nagios-grp=nagios --with-mysql-inc=/usr/include/mysql
--prefix=/usr/local/nagios-1.1 --with-file-perfdata
--with-command-user=apache --with-command-grp=apache
--with-lockfile=/usr/local/nagios-1.1/var/nagios.lock
--with-init-dir=/etc/init.d
make all
su -c "make install"
su -c "make install-init"
su -c "make install-commandmode"
su -c "make install-config"

cd ../nagios-plugins-cvs
make distclean
cvs up -CPd
patch -p0<../nagios-plugins-cvs+mysql.patch
./autogen.sh --prefix=/usr/local/nagios-1.1 --with-nagios-user=nagios
--with-nagios-group=nagios --with-mysql=/usr/lib/mysql
make
su - root -c "make install"
---
done.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-plugins-cvs+mysql.patch
Type: text/x-patch
Size: 1689 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031113/875ad1d3/attachment.bin>


More information about the Users mailing list