Friday, 25 July 2014

Steps to configure Nagios 4 on Ubuntu 14.04 LTS

Steps to configure Nagios 4 on Ubuntu 14.04 LTS

1. Go to Ubuntu Home > Type Terminal in the search box > Open Terminal.

2. After opening the Terminal type the following commands below:-

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install \
> wget \
> build-essential \
> apache2 \
> apache2-utils \
> php5-gd \
> libgd2-xpm-dev \
> libapache2-mod-php5 \
> postfix
$ sudo useradd --system --home /usr/local/nagios -M nagios
$ sudo groupadd --system nagcmd
$ sudo usermod -a -G nagcmd nagios
$ sudo usermod -a -G nagcmd www-data
$ cd /tmp
$ tar -xzvf nagios-4.0.6.tar.gz
$ tar -xzvf nagios-plugins-2.0.tar.gz
$ cd nagios-4.0.6/
$ sudo ./configure \
> --with-nagios-group=nagios \
> --with-command-group=nagcmd \
> --with-mail=/usr/sbin/sendmail \
> --with-httpd_conf=/etc/apache2/conf-available

General Options:
 -------------------------
        Nagios executable:  nagios
        Nagios user/group:  nagios,nagios
       Command user/group:  nagios,nagcmd
             Event Broker:  yes
        Install ${prefix}:  /usr/local/nagios
    Install ${includedir}:  /usr/local/nagios/include/nagios
                Lock file:  ${prefix}/var/nagios.lock
   Check result directory:  ${prefix}/var/spool/checkresults
           Init directory:  /etc/init.d
  Apache conf.d directory:  /etc/apache2/conf-available
             Mail program:  /usr/sbin/sendmail
                  Host OS:  linux-gnu
          IOBroker Method:  epoll

 Web Interface Options:
 ------------------------
                 HTML URL:  http://localhost/nagios/
                  CGI URL:  http://localhost/nagios/cgi-bin/
 Traceroute (used by WAP):

Review the options above for accuracy

$ sudo make all
$ sudo make install
$ sudo make install-init
$ sudo make install-config
$ sudo make install-commandmode
$ sudo make install-webconf
$ sudo cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
$ sudo chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
$ sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
$ sudo ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
$ cd ..
$ cd nagios-plugins-2.0/
$ sudo ./configure \
> --with-nagios-user=nagios \
> --with-nagios-group=nagios \
> --enable-perl-modules \
> --enable-extra-opts
$ sudo make
$ sudo make install
$ sudo a2enmod cgi
$ sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
$ sudo vi /etc/apache2/sites-enabled/000-default.conf

After entering the VIM Editor the editing instructions are below:

press a Append text following current cursor position
press A Append text to the end of current line
press i Insert text before the current cursor position
press I Insert text at the beginning of the cursor line
press o Open up a new line following the current line and add text there
press O Open up a new line in front of the current line and add text there
press :wq to save & quit
press :q! to quit with out saving

Include conf-available/nagios.conf
Insert the above line into VIM Editor and quit with saving.

$ sudo service apache2 restart
$ sudo service nagios start


Thursday, 24 July 2014

Steps to configure Nagios & SNMP on CentOS 6.3



Steps to configure Nagios on CentOS

Command to configure required packages:
# yum install httpd gcc glibc glibc-common gd gd-deve1 php
# yum -y install net-snmp-utils
# yum -y install wget

Command to create and setup a User and Group for Nagios:
# useradd -m nagios
# groupadd nagcmd

Commands to add Nagios User and Apache User to Nagios Group:
# usermod -a -G nagcmd nagios
# usermod -a -G nagcmd apache

Command to create directory for Nagios download:
# mkdir /etc/downloads

Commands to download Setup and Plugin files for Nagios:

Commands to extract .tar.gz file which we have downloaded:
# tar xzf nagios-3.2.3.tar.gz
# tar xzf nagios-plugins-2.0.tar.gz

Commands to configure and compile Nagios:
# cd nagios-3.2.3
# ./configure –with-command-group=nagcmd
# make all
# make install
# make install-init
# make install-config
# make install-commandmode
# make install-webconf

Commands to configure Apache:
# htpasswd -c /usr/local/nagios/etc/htpasswd.users admin
# service httpd restart

Commands to install Nagios Plugin files:
# ./configure –with-nagios-user=nagios –with-nagios-group=nagios
# make
# make install

Steps to configure NET-SNMP on CentOS 6.3
# yum install net-snmp-utils
# yum install net-snmp
# cd /etc/snmp
# vi smpd.conf
Change group name
# service snmp restart
# chkconfig snmpd on
# snmpwalk -v 1 -c group name -O e 127.0.0.1

Friday, 18 July 2014

Process to have Xperia Z Series 5 Custom Rom for Tipo

Xperia Z Fire
Stable – Smoothest Rom Till Now

Required Downloads:

Warning:
  • You need to root your Sony Xperia Tipo before attempting to install this custom ROM.
  • Rooting and installation of custom ROM’s on an Android Smartphone tends to void its warranty.
  • We are not responsible if you damage your Sony Xperia Tipo during or after completing the tutorial written below. Therefore, proceed at your own will only.

Process to Update Sony Xperia Tipo to Xperia Z Series 5 Custom Rom:
  • Install PC Companion on your Laptop (or) PC.
  

 

 

 

 


  • Install Unlock Root Pro on your Laptop (or) PC.

  • After completion of installation Unlock Root Pro gets automatically launched but don't use it. Close the launched Unlock Root Pro because the Unlock Root Pro gets updated automatically to latest version.
  • Open the Unlock Root Pro for second time and you are asked to enter "Registration Key". Enter the following keys below.
URPAVBLGBLSHNNFYOQKI

URPJWYFIKEHMXUDZWSDC

URPTKVMURDKBFEYNOFUK



  • Connect Sony Xperia Tipo Via USB to your PC (or) Laptop, make use that Debugging Mode is ON in Developer Options of Sony Xperia Tipo.


     
     

  • Wait until the Unlock Root Pro identifies your device.
  • Select the option "Root" after Unlock Root Pro identifies your device.

  • This process make take few minutes to complete, after completion of process you will getting a message saying that "Rooting Successfully Done And Your Device Will Be Re-booting", the device automatically get Re-booted with this stage you done with Rooting your Sony Xperia Tipo.
 


     
  • After Re-booting again connect your device to PC with Debugging Mode ON.
  • Extract CWM.zip file which you have already downloaded.
 
 
  • Open folder Tipo and run install.bat.
 
 
  • You will see Command Prompt on you screen saying that "please press any key to continue installation" press any of key in your key board.
 
  • With the press of a key in key board the installation gets started, this might few minutes to complete installation, with this completion of CWM installation you are half way done.
  • Next step is to Extract Flash Tool which you have already downloaded
 
 
 
  • Run  FlashTool.exe and install according to the instructions displayed on your screen of your Laptop.
 
 
 
 
 
  • After installing Flash Tool Go to Computer > Local Disk (C:) > Program Files > Flash Tool > Driver. In Driver folder you will find FlashTool-drivers.exe.
 
 
 
  • Run Flashtool-drivers.exe.
 
  • In next step of installation you will be asked to select the drivers you want to install.
  • Then select two drivers named as "Flashmode Drivers, Fastboot Drivers" and click "Install". 
 


  • When undergo installation process you will getting many error on you screen as displayed below.
 
  • Please be patient and click "Install Any Way" as many errors you come across and complete installation of drivers successfully.
 
 
  • After completing the installation according to above displayed Images, Go to Start > All Programs > Flashtool > Open Flashtool.
 
  • Connect Sony Xperia Tipo Via USB cable to PC (or) Laptop, make sure that the Debugging Mode is ON in your Developer Options.
  • Click on the BLU button which be situated beside symbol of Flash.
 
  • After selecting the BLU button you will be asked to Switch Off your device and connect your Device in Flash Mode.

Please follow my instructions very carefully Switch Off your device press hold Power + Volume Down and insert USB cable at the same time.
  • Tip: You should connect the USB cable very quickly and it should be done in between the vibration and a blink of Green LED On your device. If you have done it correctly the Green LED stays ON for a longer time.
  • After Completing Flashmode installation again you will be asked to Switch Off  your device and re-boot in  Fastboot mode it is same as you  connect your phone in Flashmode but with one change, you should press hold Power + Volume Up.
  • After Completing Both Flashmode and Fastboot mode installation Copy the downloaded Xperia Z Series 5 Rom to you internal memory of your device.
  • After Copying Xperia Z Series 5 Rom to internal memory of device Switch Off your device and enter CMW Mode by press holding Power + Volume up buttons.
  • Once the CMW recovery mode in loaded, perform a “Data Factory Reset”, “Wipe Cache Partition” and “Wipe Dalvik Cache”.
  • Now choose the “Install ZIP From SD Card” option.
  • Then choose the ROM installation kit that you have copied to Internal Memory.
  • The ROM will now be installed on your Sony Xperia Tipo.
  • Now click on the “Reboot System Now” option.
  • Your Sony Xperia Tipo will now reboot.
As it is the first boot after installing the ROM, it might take some time longer than usual.

Congratulations, you have finished the tutorial on
Xperia Z Series 5 Custom Rom for Tipo.