Thursday, 25 July 2013

Installing  Nagios Enterprise (Nagios XI)  on rhel 6.4


What is Nagios ?
Nagios is an open source computer system monitoring, network monitoring and infrastructure monitoring software application. Nagios offers monitoring and alerting services for servers, switches, applications, and services. It alerts the users when things go wrong and alerts them a second time when the problem has been resolved.

Before installing Nagios XI make sure that your system is connected to Internet, check that the proxy is disabled, and your system have RHN registration and able to use yum.

Important: Nagios Enterprises highly recommends and will only support installing Nagios XI on a newly installed, “clean” system (a bare minimal install with nothing else installed or configured).
Attempting to install Nagios XI on a pre-existing system with other applications already installed can cause the Nagios XI installation process to fail.

Downloading the Latest Release
Make sure to download the Nagios XI installation package to the /tmp directory of the server on which you wish to install it, as shown in the following commands:

# cd /tmp

To download the latest stable release, use the following command:

# wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz

After downloading the Nagios XI untar the file

# tar -xzvf xi-latest.tar.gz

To get started, change to the newly created nagiosxi subdirectory to get started with the installation:

# cd /tmp/nagiosxi

Note: Do not install Nagios XI from a directory that does not allow other users to have read/execute permissions to the installation files. Part of the installation requires switch to different user accounts, which need to have access to the installer scripts.
Run the wrapper script:

# ./fullinstall

If its fail installation first time don't worry run the cmd again it will work.

This will automatically take care of a number of things for you, including
• Modifying the yum configuration and installing prerequisite packages
• Creating required uses and groups
• Initializing PostgreSQL and MySQL databases, and set the MySQL root password to 'nagiosxi'
• Modifying sudoers and iptables to allow certain commands and traffic
• Installing backup scripts for the databases
• Adjusting PHP settings and installing the SourceGuardian PHP loaders for encrypted files
• Compiling and installing various components, including Nagios Core, the plugins, NDOUtils, PNP, webinject, etc.
• Installing the Nagios XI scripts and PHP files in /usr/local/nagiosxi
• Installing cron jobs for the root and nagios users
• Setting appropriate services to start in runlevels 3 and 5 and starting them now
• Importing base object definitions (templates, commands, etc.) into NagiosQL for use with Nagios Core
• Installing a welcome page in the root webserver directory /var/www/html

If the installation commands completed successfully
You can  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.