Installing Nagios core
INSTALLING NAGIOS CORE
*************************************************************************************************
Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes. First launched in 1999, Nagios has grown to include thousands of projects developed by the worldwide Nagioscommunity.
********************************************************************************************************Use any linux server Rhel, centos, fedora..etc, am using Oracle linux.
Install basic Packages:
#yum install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp
Starting the httpd service:
#service httpd start
Add nagios user:
#useradd nagios
#passwd nagios
creating a groud for nagios setup nagcmd and add nagios user to this group. Also add nagios user in apache group.
#groupadd nagcmd
# usermod -a -G nagcmd nagios
# usermod -a -G nagcmd apache
Change to the following directory, download and install nagios:
# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz [search for latest versions]
# tar xzf nagios-4.0.8.tar.gz
# cd nagios-4.0.8
# ./configure --with-command-group=nagcmd
# make all
# make install
# make install-init
# make install-config
# make install-commandmode
# make install-webconf
Configuring Apache authentication for nagios:
Adding the Httpd service to run at start up:
#chkconfig httpd on
Restarting the service:
Now install the nagios plugins:
# wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
# tar xzf nagios-plugins-2.0.3.tar.gz
# cd nagios-plugins-2.0.3
Install with the make file that is in the nagios plugins folder:
# ./configure --with-nagios-user=nagios --with-nagios-group=nagios
# make
# make install
To verify the nagios configuration use the below command:
Here you should see something like, 0 input errors & 0 warnings.
Now start the nagios service.
# service nagios start
Adding the nagios service to the start up:
# chkconfig nagios on
Access nagios:
To access through web: Copy and paste the below link in your URL.
If we goes as expected you will a web page like below:
Welcome to nagios core :)
We will go with adding of hosts and services in the following posts.
Comments
Post a Comment