0% found this document useful (0 votes)
52 views4 pages

Nagios Installation: No Need To Do This

The document provides instructions for installing and configuring the Nagios monitoring system on a server. It involves installing prerequisite packages like Apache and PHP, downloading and extracting the Nagios source files, adding a nagios user, running the Nagios configuration, installing Nagios plugins, enabling Nagios to start on boot, verifying the configuration, and adding a remote host for monitoring.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views4 pages

Nagios Installation: No Need To Do This

The document provides instructions for installing and configuring the Nagios monitoring system on a server. It involves installing prerequisite packages like Apache and PHP, downloading and extracting the Nagios source files, adding a nagios user, running the Nagios configuration, installing Nagios plugins, enabling Nagios to start on boot, verifying the configuration, and adding a remote host for monitoring.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Nagios Installation

Installing packages. Apache, PHP, GCC & GD


Installing Apache web server:
#yum -y install httpd*
set hostname in FQDN
#service httpd on
Installing PHP, GCC and GD:
#yum -y install php*
#yum -y install gcc*
#yum -y install gd*
Getting the package:
Get the latest packages from net. Mov it to some directory and untar them.
#wget

http://prdownloads.sourceforge.net/sourceforge/nagios/nagios3.2.0.tar.gz
No need to do this
#mv nagios-3.2.0.tar.gz /usr/local/src
start from here again
#tar xvf nagios-3.2.0.tar.gz
#wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/
nagios-plugins-1.4.14.tar.gz
No need to do this
#mv nagios-plugins-1.4.14.tar.gz/usr/local/src
start from here again
#tar xvf nagios-plugins-1.4.14.tar.gz

Adding nagios user and setting password for that user:


#useradd nagios
#passwd nagios
#usermod -a -G nagios apache //To permit the commands through web
interface.
Configuration of Nagios:
#cd /usr/local/src/nagios-3.2.0
or
#cd nagios-3.2.0
#./configure
#make all
#make install
#make install-init
#make install-config
#make install-commandmode
#make install-webconf
Admin account setting for nagios:
#htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
/passwd for web interface
give passwd
#service httpd restart

Nagios Plugin installation:


#install nagios - pluggin
#cd /usr/local/src/nagios-plugins-1.4.14
or
#cd nagios-plugins-1.4.14
#./configure
#make
#make install
Creating entry in /etc/init.d/:
#chkconfig --add nagios
#chkconfig nagios on
Checking the configuration:
#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
#/etc/init.d/nagios restart
Restore all installed file for selinux
#restorecon -RFv

Configuring remotehost in nagios:


#cp /usr/local/nagios/etc/objects/localhost.cfg
/usr/local/nagios/etc/objects/remotehost.cfg
[comment the hostgroup entries in order to prevent duplicate entries]
[change the localhost entries to the remote machine hostname and IP address.]

You might also like