Installing Nagios Core From Source
Installing Nagios Core From Source
Installing Nagios Core From Source
Target Audience
This document is intended for use by anyone wishing to install Nagios Core from source.
Prerequisites
For Ubuntu users, run all ste s from this document with root ermissions. The following command can be run to switch to a root shell. sudo -i Pac!age re"uirements may vary de ending on what ty e of installation latform Nagios is being installed on. For RHEL/ ent!S users# yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp For Ubuntu users# sudo apt-get install wget install build-essential apache2 php5-gd wget libgd2-xpm libgd2-xpm-dev libapache2-mod-php5
"o#n$oad %agios
For all systems, run the following commands in your terminal# cd /tmp wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4. . .tar.g! wget https://www.nagios-plugins.org/download/nagios-plugins-".5.tar.g! This will download Nagios Core, and it$s re"uired lugins.
Page '
Co yright & '()(*'()) Nagios +nter rises, ,,C -evision ).( . October, '()/
tar !xvf nagios-4. . .tar.g! tar !xvf nagios-plugins-".5.tar.g! Change to the new Nagios directory and install the ac!ages# cd nagios For RHEL/ ent!S users# ./configure --with-command-group$nagcmd For Ubuntu users# ./configure --with-nagios-group$nagios --with-command-group$nagcmd -%with-mail$/usr/bin/sendmail A$$ syste*s, make make make make make make all install install-init install-config install-commandmode install-webconf
cp -& contrib/eventhandlers/ /usr/local/nagios/libexec/ chown -& nagios:nagios /usr/local/nagios/libexec/eventhandlers /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg /etc/init.d/nagios start For RHEL/ ent!S users# /etc/init.d/httpd start
Page 9
Co yright & '()(*'()) Nagios +nter rises, ,,C -evision ).( . October, '()/
)inishing Thoughts
2f you have further "uestions lease visit our su at# htt #33su ort.nagios.com3forum3 ort forum
Page <
Co yright & '()(*'()) Nagios +nter rises, ,,C -evision ).( . October, '()/