Debianhelp.co.uk


Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation

What is Nagios ?

Nagios« is a host and service monitor designed to inform you of network problems before your clients, end-users or managers do. It has been designed to run under the Linux operating system, but works fine under most *NIX variants as well. The monitoring daemon runs intermittent checks on hosts and services you specify using external "plugins" which return status information to Nagios. When problems are encountered, the daemon can send notifications out to administrative contacts in a variety of different ways (email, instant message, SMS, etc.). Current status information, historical logs, and reports can all be accessed via a web browser.

What is oreon ?

Oreonę is an Open Source monitoring solution based on Nagios. It offers to this monitoring standard a new front end and brings it a panel of new functionalities.

Oreon Plugins

http://wiki.oreon-project.org/wakka.php?wiki=OreonPluginsEN

http://forum.oreon-project.org/viewforum.php?f=9

Nagios 2.5 and Oreon 1.3 installation on Debian

Preparation

Edit you /etc/apt/sources.list file enter any of the following two source list and save the file

deb ftp://ftp.proxad.net/mirrors/ftp.debian.org/ stable main
deb-src ftp://ftp.proxad.net/mirrors/ftp.debian.org/ stable main

If you modified this file, you must update the package list

# apt-get update

Packages Need to Install

C Compiler and sudo installation

# apt-get install gcc make sudo g++

Web server installation : Apache 2

# apt-get install apache2

Mysql 4.1 database installation (Important Requirement for oreon 1.3)

# apt-get install mysql-server-4.1

PHP4 and PEAR tools installation

# apt-get install php4 php4-gd php4-cgi php4-mysql libapache2-mod-php4 php4-pear php4-ldap php4-snmp

Nagios 2.5 installation

You can download compressor file on : http://www.oreon-project.org/component/option,com_remository/Itemid,53/

Take last version (install_nagios2.5_by_oreon-v1.tar.gz).

Save it in /tmp

Uncompress it

# tar xzf
install_nagios2.5_by_oreon-v1.tar.gz

Now, you should have this directory :

/tmp/
install_nagios2.5_by_oreon-v1/

#cd install_nagios2.5_by_oreon-v1

Edit this file install.sh

In section INSTALL / check for httpd directory , replace

/etc/apache2/conf by /etc/apache2
DIR_APACHE="/etc/apache2/conf" by DIR_APACHE="/etc/apache2"

Save and close the file

Execute installation ./install.sh, any questions asked 

#./install.sh
QUESTION ANSWER TO PUT
install freetype yes
install jpeg yes
install png yes
install zlib yes
install libart yes
install gd yes
install rrdtool yes
install net-snmp
      Version
      System Contact
      System Location
yes
 1
 admin
 lab
install nagios-2.5 yes
restart Apache yes
password nagiosadmin [put password]
start nagios server yes

This will complete the nagios installation now you need to install oreon.

OREON 1.3 installation

You can download compressor file on :http://www.oreon-project.org/component/option,com_remository/Itemid,53/

Take last version (at the moment, the 1.3).

Save it in /tmp

uncompress it

# tar xzf oreon-1.3.tar.gz

Now, you should have this directory

/tmp/oreon-1.2.2/

Execute installation ./install.sh, any questions asked

#./install.sh

 
QUESTION ANSWER TO PUT
Are you sure to continue y
Where is installed nagios [Just press Enter]
Where are your nagios etc directory [Just press Enter]
Where are your nagios plugins / libexec directory [Just press Enter]
Where are your nagios bin directory [Just press Enter]
Where do I install Oreon [Just press Enter]
Where is sudo [Just press Enter]
Where is installed RRD perl modules (RRDs.pm) [Just press Enter]
Where is rrdtool binary /usr/local/rrdtool-1.0.49/bin/rrdtool
Where is mail binary [Just press Enter]
Where is PEAR Path /usr/bin/php/


Last packages to install

nmap installation: Tool for auto-detect in Oreon

# apt-get install nmap

Oreon graphic tool installation

# apt-get install librrds-perl libgd-gd2-perl wget

Perl tool installation for a few plugins

# apt-get install libnet-snmp-perl

Final Steps

Creat symbolic link between rrdtool directory.

# ln -s /usr/local/rrdtool-1.0.49/ /usr/local/rrdtool

This is very important part of installation process installing pear modules for web interface installation

#pear upgrade DB

If you get the error No handlers for No handlers for package.xml version 2.0 you need to upgrade pear with the following command

#pear upgrade PEAR-1.3.5

#pear upgrade PEAR

#pear install Date DB_DataObject Numbers_Roman HTML_Common HTML_QuickForm HTML_QuickForm_advmultiselect Archive_Tar Console_Getopt HTTP Image_Color Image_GraphViz Mail Mail_Mime Net_SMTP Net_Socket Net_Ping XML_RPC PEAR_PackageFileManager

If you get "No release with state equal to: 'stable' found for module name " then you need to install using the following command

#pear install --force Net_Traceroute Validate MDB2 Image_Graph Image_Canvas Auth_SASL HTML_Table Numbers_Words DB_DataObject_FormBuilder
 

So restart 3 services

# /etc/init.d/apache2 restart

# /etc/init.d/mysql restart

# /etc/init.d/nagios restart

Web interface Setup

Use web browser and go this URL : http://serverIPaddress/oreon/ First time,

Welcome to Oreon Setup

This will open web interface like following screen now you need to click on "start" button

If you don't have the above page the FIRST TIME, entrer this URL: http://serverIPaddress/oreon/install/setup.php

Licence

Next Screen Select I Accept and click on Next

Environment Configuration

Next Screen Check environment configuration in this you need to select nagios 2.x and Click on Next

Verifying Configuration

Next Screen is Verifying Configuration This step, all status must be on OK Click on Next

Verifying PHP pear Component

Next Screen is Verifying PHP Pear Component This step, all status must be on OK If you find any fail you need to install the required pear modules Click on Next

Database Configuration

Next Screen is Database Configuration in this you need to fill all the required information i.e root password for mysql (if you have one enter that),Give name for mysql database,Give it password, database location localhost,nagios location and mysql client version Click on Next

Database Verification

Next Screen is Database Verification this should show ok status then Click on Next


User Interface Configuration

Next Screen is User interface Configuration in this you need to enter the Oreon administrator login,password, Firstname,Lastname,Email,Language then Click on Next

LDAP Configuration

Next Screen is LDAP Configuration in this you need to select yes or no in this i am not using LDAP so i choose no if you want to use LDAP select yes and enter all the required information and then click on next


Oreon Configuration File

Next Screen is Oreon Configuration file in this writable oreon configuration file and generate configuration file status should show ok then click on next


Creating Database

Next Screen is Creating database in this it will create all the oreon related configuration in this you should see all status should be ok then click on next


Post Installation

Next Screen is Post installation you need to do the cron DB backup and delete setup click on next


Login Screen

That's it now next screen should appear as below asking for username and password


Once you logged in using the username and password you can add all the required services,hosts,hostgroups,commands,contacts,contact groups and other things to monitor your servers and networks

If you want to install postfix mail server for email notifications check here