Thursday, March 31, 2011

How to install Redhat Cluster


Note:- Server Hardware must be same and OS configuration must same.

1) yum install cluster*

2) go to the /var/ftp/pub/Cluster folder

rpm -ivh Cluster_Administration-en-US-5.2-1.noarch.rpm

3) yum install python-imaging

4) rpm -ivh luci

5) rpm -ivh modcluster

6) rpm -ivh rgmanager

7) rpm -ivh ricci

8) rpm -ivh system-config-cluster

9) service ricci start

10) luci_admin init
Provied Paasowrd

11) service luci restart

https://ipaddress:8084


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.


 

Wednesday, March 16, 2011

How to Convert .rpm package to .deb package


1) Install below Program
 #apt-get install alien

2) Run Below Command to convert .rpm to .deb package
 #alien <package name.rpm>

3) Install .rpm package after converting
#alien -i <package name.rpm>

Saturday, March 12, 2011

openQRM Cloud management tools Installation

Requested for openQRM

1) Install Mysql with Blank Password
2) Configure Bridge
3) Install all KVM package and Start services
4) Download openQRM
http://sourceforge.net/projects/openqrm/

5)How to build and install openQRM
To build please run :
make
-> this automatically checks the requirements for the compilation
-> it builds the base server and plugins
-> it will download and compile some third-party components
-> it will cache downloads and compile results
-> build-location can be configured in ../src/etc/openqrm-server.conf
6)To install run :
make && make install
-> this installs openQRM-ng
-> install-location can be configured in ../src/etc/openqrm-server.conf
7)To start run :
make start
-> this basically just runs "/etc/init.d/openqrm start"
-> installation phase is not needed any more and got eliminated
-> initialization happens automatically on first-start
-> initialization automatically checks for runtime-requirements
8)To check the install requirements run :
make check
-> this checks the requirements for the compilation
-> if this checks fails it will display the exact missing package requirement
   Then just install the listed package via apt-get/yum/.. and try again.
9)To package (rpm/deb) run :
make package
-> this automatically build .deb or .rpm packages
-> package location can be configured in ../src/etc/openqrm-server.conf
10)To reinstall e.g. after making changes to the sources run :
make reinstall
-> this runs stop, uninstall, clean, all, install, start
Please notice that all make-targets (especially "install") should be executed as root.
After compiling and installing openQRM-ng it automatically
initialises itself during first-start according the configuration
parameters set in the main (and single) configuration file BASEDIR/openqrm/etc/openqrm-server.conf

The openQRM-server is now ready for login at : http://[ip-of-the-openQRM-server]/openqrm

Default username and password after installation are :
User : openqrm
Password : openqrm

-> please change the default password immediately to prevent unauthorized access.