Monday, January 5, 2015

Nagios core Installation Guide

Home

Nagios Monitoring Tool Installation in Centos 6.2
Download the package using below link
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.4.tar.gz

Download the Nagios Plugins using below Link
wget http://nagios-plugins.org/download/nagios-plugins-2.0.tar.gz

Install Pre-requisites before going to install the nagios monitoring tool
yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp

useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios

tar -xzvf nagios-plugins-2.0.tar.gz
cd nagios-plugins-2.0
 ./configure
make install

tar -xzvf nagios-4.0.4.tar.gz
cd nagios-4.0.4
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf

cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios start
/etc/init.d/httpd start

htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin

Then go the Browser open your monitoring system using
http://localhost/nagios OR http://NAGIOSSERVERIP/nagios

Contact: aravikumar48@gmail.com

4 comments: