Nagios Installation from Source
This documentation will show on how to install nagios from source.
Install prerequisites
yum --enablerepo=base install gcc glibc glibc-common gd gd-devel
yum --enablerepo=rpmforge install perl-rrdtool
Add user
su -
useradd -m nagios
passwd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
Start installation
mkdir /downloads
cd /downloads
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.3.1.tar.gz
tar xzvf nagios*
cd nagios*
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
make install-exfoliationAdd password to nagios
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
service httpd restartInstall nagios-plugin
cd /downloads
wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
tar xzvf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins*
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
chkconfig --add nagios
chkconfig nagios onValidate nagios installation
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
service nagios start
service nagios restart
link binary to path
cd /usr/local/bin/
ln -s /usr/local/nagios/bin/nagios nagios
That's it!. Will publish soon on php4nagios plug-in that will help with gathering graphical details on the captured data by nagios.
Previous page: XForwarding using PUTTY Next page: pnp4nagios plugin installation from source
