Sunday, 24 August 2014

Installation of icinga on the ubuntu


Introduction
Icinga is a popular open source monitoring system that checks hosts and services, and notifies you of their statuses. Icinga is a fork of Nagios, so they are compatible and share many similarities, and it has been gaining popularity due to a more agile development cycle when compared to Nagios. Icinga work as service.

Prerequisites
To complete this tutorial, we'll require root access to an Ubuntu. Also, if you want to set up the mail notification feature, we'll need to properly configure Postfix.

Icinga Installation

Icinga can be installation though the apt-get command or debian package also, we can use MYSQL PostageSQL, SQLite, and Oracle as our database.

To install Icinga, these are the following steps:
1. Enter the command into terminal to install dbconfig-common package:

$ sudo apt-get install dbconfig-common
2. Add Icinga Repository enter this command into the terminal:
   If ''add-apt-repository" command doesn't work, install the following package

$ sudo apt-get install python-software-properties
3. Add Icinga repository:

$ sudo add-apt-repository ppa:formorer/icinga
4. Add Icinga repository:

$ sudo apt-get update
5. Install Icinga and its dependancies

$ sudo apt-get install icinga icinga-idoutils mysql-server libdbd-mysql mysql-client

Now we will get a series of propmts for installation of the Icinga
  • mySQL Configuration: Enter a new MySQL root user password (if you don't have Mysql installed then enter new Mysql password)
  • PostFix configuration: Select "Internet Site"
  • Configuring Icinga-cgi: Enter "Icingaadmin" user's password(login to access Icinga).
  • Configuring icinga-common: Enter "No" to enabling external commands
  • Configuring icinga-idoutils: Enter "Yes" to configuring database for icinga-idoutils with dbconfig-common
  • Configuring icinga-idoutils: Select "mysql" as the dtabase type
  • Configuring icinga-idoutils: Enter MySQL root password (that you just assigned above)
  • Configuring icinga-idoutils: Enter a new icinga-idoutils database user password (MySQL application password for icinga-idoutils
6. Enter this command to add Apache user (ww-data) to nagois group:

$ sudo usermod -a -G nagois www-data
7. Enable the ido2db daemon to start on boot up, which stores icinga events and configures in the database. Edit Icing default configuration:

$ sudo vim /etc/default/icinga
change the value of IDO@DB to yes, so it looks like the following:
IDO@DB-yes

8. save and quit. Now start the ido2db service:

$ sudo service ido2db start

9. Enter this command into the terminal to enable idomod module by copy the sample idoutils.cfg file to Icinga's active configuration:

$ sudo cp /usr/share/doc/icinga-idoutils/examples/idoutils.cfg-sample /etc/icinga/moules/idoutils.cfg

10. Install icinga-web

$ sudo apt-get install icinga-web

11. Now Icinga is configured and ready to be started:

$ sudo service icinga restart
/********** Accessing the Icinga User Interface **********/


http://yourhost/icinga(eg. yourhost will be localhost)

Friday, 22 August 2014

Installation Jesper Reporting server

1.To download run file of the jasperserver from the site
     wget http://sourceforge.net/projects/jasperserver/files/latest/download?source=files
2.To integrate the jasper report and the icinga we have to download a package from
   https://www.icinga.org/download/packages/ and                                                                 
  •    Select the option under Icinga-Reporting (stable)
  •    Put icinga-report package in the opt directory

     

3.To installation enter this run file
   chmod o+x jasperreports-server-cp-5.5.0a-linux-x86-installer.run
   sudo ./jasperreports-server-cp-5.5.0a-linux-x86-installer.run
   select all default settings
accept and press Forword button
Choose custom install option
Put installation directory in the /opt (or where you want to put that)
Select bundled option of postgresql and apache-tomcat
Give unique port no. the tomcat server
Give unique port no. to the postgresql database
now jasper server is installing

4. go to the jasper-server directory
   cd /opt/jasperreports-server12


5 start the server through this command
  ./ctlscript.sh start

6.go to the buildomatic directory of the jasper reports server import the icinga-reports.zip      through js-import.sh (it will be in the jasperreports-server12/buildomatic/)
sudo cd /opt/jasperreports-server-cp-5.5.0a/buildomatic/
Now we have to import the js-icinga-reports.zip in the jasper server through the js-import.sh         script
sudo ./js-import.sh --input-zip /opt/icinga-reports/jasperreports/package/js-icinga-reports.zip

7. go to the icinga-reposts directory
   sudo cd /opt/icinga-reports
8. configure the jasper server
   sudo ./configure --with-jesper-server=opt/jasperreports-server-cp12
9. run this command (if it generate error then we can put the mysql-connector.jar manually)
   sudo make install-mysql-connector
10. copy the icinga-reporting.jar into the jasper server apache-tomcat
sudo cp /opt/icinga-reports-package/jasperreports/classes/icinga/icinga-reporting.jar /opt/jasperreports-server12/apache-tomcat/webapps/jasperserver/WEB-INF/lib
(or we can also put the icinga--reporting.jar manually to destination)
11. go to the jasper-server directory
     $ cd /opt/jasperreports-server12
     and ./ctlscript.sh restart
12. go to the web browser and Enter the

login page, login and admin default user login and password(jasperadmin)

select icinga and then Data Sources and then IDO edit
now in edit driver option you can install mysql-connector mannually this will be the mysql-connector-java.jar path             
/opt/icinga-reports-1.10.0/jsp-server/classes/connector