Saturday, March 19, 2011

NagiosXI installation


1) Download package form this link
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz

2) copy to the /usr/local/src
 #cp xi-latest.tar.gz /usr/local/src

3) Untar the package
 #tar -xvf xi-latest.tar.gz

4) Configure yum Server or yum client
 #vi /etc/yum.repo.d/rhel.repo
[rhel]
name=yum client
baseusr=ftp://192.168.XX.XX/pub
enabled=1
gpgcheck=0

5) Installs the Dag Wiers repo definition for RPM installations with yum
cd /usr/local/src/nagiosxi

#./0-yum
Yum configured ok
Note:- Run the ./0-yum twice

6)Installs required RPM, Perl, and other packages required for XI and its related
components.
#./1-prereqs

7)Creates Nagios user and groups on the system
#./2-usersgroups

8)Initializes the Postgres and MySQL databases. Sets the MySQL root password to 'nagiosxi'
#./3-dbservers
            
9)Adds entries to /etc/services
#./4-services

10)Modifies /etc/sudoers to allow the nagios user to run certain commands
#./5-sudoers

11)Updates the iptables definitions in /etc/sysconfig/iptables to allow traffic for various components
#./6-firewall
          
12)This is currently a null operation and can be ignored.
#./7-sendmail

13)Disables SELinux by putting it into non-enforcing mode and modifying /etc/selinux/config
#./8-selinux
          
14)Installs backup scripts for MySQL and Postgres in the /root/scripts directory and creates backup directories in /store/backups
#./9-dbbackups

15)Increases memory limit for PHP to 64MB in /etc/php.ini
#./10-phplimits

16)Installs the SourceGuardian loaders for 32-bit or 64-bit Linux platforms to
   /usr/lib/php/modules or /usr/lib64/php/modules. SourceGuardian is required to
   decrypt and run some protected PHP files distributed with Nagios XI. Loaders for
   other platforms can be downloaded from http://www.sourceguardian.com/ixeds/
#./11-sourceguardian

17)Modifies the MRTG config file in /etc/mrtg/mrtg.cfg to use the RRDTool format and
   changes permissions so the webserver can write to the file.
#./12-mrtg

18)Installs various components required by Nagios XI - including Nagios Core, Nagios
   Plugins, NDOUtils, PNP, extra plugins, webinject, etc.
#./A-subcomponents

19)Installs the Nagios XI scripts and php files in /usr/local/nagiosxi, sets appropriate
   file/directory ownership, and creates and htpasswd file for use with Nagios Core and
   PNP.
#./B-installxi

20)Installs cron jobs for the root and nagios users.
#./C-cronjobs

21)Sets all appropriate services to start up in runlevels 3 and 5.
#./D-chkconfigalldaemons

22)Imports base object definitions (templates, commands, etc.) into NagiosQL for use with Nagios Core
#./E-importnagiosql

23)Starts the NDOUtils, Nagios Core, and PNP daemons
#./F-startdaemons 

24)Installs a welcome page in the root webserver directory /var/www/html Finishing Up
./Z-webroot 

If the installation commands completed successfully, you should now have a fully functioning Nagios XI system!
You are access the Nagios XI interface by pointing your web browser to:
http://<xiserver>/
where <xiserver> is the IP address of the server you just installed Nagios XI on.


 

1 comment:

  1. Prshant please elaborate it in details with all required package. with easiest way.

    ReplyDelete