Tuesday, 25 September 2012

Installation of Hyperic Application & System Monitoring



သင့္ရဲ့  virtual, physical, and cloud infrastructures ေတြရဲ့ အမ်ိဳးမ်ိဳးေသာ availability, performance, utilization, and throughput ေတြအတြတ္ Monitoring  လုပ္ဖို႕ အသံုး ျပဳပါတယ္

Description
Hyperic is application monitoring and performance management for virtual, physical, and cloud infrastructures. Auto-discover resources of 75+ technologies, including vSphere, and collect availability, performance, utilization, and throughput metrics.



Features

  • vSphere auto-discovery of all components of virtualized applications
  • Automatically discovers, monitors, and manages software and network resources
  • Monitors apps on any platform, including Unix, Linux, Windows, Solaris, AIX, HPUX, VMware, and Amazon Web Services
  • Built-in support for 75 common components—including databases, application servers, middleware, web servers, network devices and more
  • Optimized for virtual environments with integration with vCenter and vSphere
Requirements

  • 1GHz or higher Pentium 4, or equivalent (2x2.4GHz Pentium Xeon or equivalent recommended)
  • 1GB RAM (4 or more GB recommended)
  • 1-5GB free disk space
  • Supported Operating System [Linux, Solaris 10 or higher, Mac OS X(Intel x86), Window 2003 Server, Window 2008 Server, Window 2008, Window Vista, Windows 7]
  • Oracle Java JDK 7 update 04
  • VMware vFabric Hyperic 4.6.6 Server and Agent
  • Supported Database Product [MySQL, Orcale, PostgreSQL] and can use the build-in database for production deployments
Notes: For Linux, Unix-based platforms, the libxp.so.6 X library is required.

Download Link
http://www.hyperic.com/hyperic-open-source-download

ဒီမွာေတာ့ Centos 6 (64bit)  ေပၚမွာ Install လုပ္ပံုကို ေဖာ္ျပမွာျဖစ္ပါတယ္..

Current OS Setting
  • CentOS 6 (64 bit)
  • i7 CPU 950 @ 3.07GHz
  • 2GB RAM
  • 30GB HDD
  • 100 MBps Network Cards
  • java-1.6.0-openjdk-devel-1.6.0.0-1.45.1.11.1.el6.x86
Notes: OS virtually installed on ESXi .

အရင္ဆုံး OS installation ျပီးျပီ ဆိုတာနဲ႕ Update လုပ္ဖို႕ မေမ့သင့္ပါ
#yum update

လိုအပ္တဲ့ Packages ေတြကို Download လုပ္ျပီး Server ရဲ့ အဆင္ေျပတဲ့ ေနရာမွာ ခဏ တင္ထားပါမယ္.. ဒီမွာေတာ့ /mnt မွာထားပါတယ္..


လိုအပ္တဲ့ libxp library  ကို install လုပ္ပါမယ္
#yum install libXp


User တခု Add ပါမယ္.. Username: hyperic | Home Directory location: /home/hyperic
#useradd hyperic


ျပီးေနာက္ အေစာက /mnt ေအာက္က packages ေတြကို hyperic user ရဲ့ home directory (/home/hyperic) ေအာက္ထဲကို ေရႊ႕လိုက္ပါမယ္...
#mv /mnt/* /home/hyperic


 Packages ေတြရဲ့ Owner ကို Hyperic user သို႕ change ေပးပါ
#chown hyperic:hyperic *


package ေတြကို extract လုပ္ပါမယ္..
#tar -zxvf hyperic-hq-installer-4.6.6-x86-64-linux.tar.gz
#tar -xvf hyperic-hq-agent-4.6.6-x86-64-linux.tar



စျပီး Server ကို install လုပ္ပါမယ္
#cd hyperic-hq-installer-4.6.6
#./setup.sh


Note: ဒီမွာေတာ့ Default Build-in Database နဲ႕ပဲ အသံုးျပဳမွာ ဆိုေတာ့ Script  အေနာက္မွာ ဘာ option  မွမပါပဲ install လုပ္ပါတယ္. အကယ္၍ database ကို mysql သံုးမယ္ဆိုရင္ေတာ့ option အေနနဲ႕ -mysql ဆိုျပီး run လုပ္ရပါမယ္ (#./setup.sh -mysql) MySql server ကို install လုပ္ျပီး database ကို create လုပ္ထားဖို႕ေတာ့လိုပါမယ္.. Default မသံုးဘူး တျခား database နဲ႕ အသံုးျပဳမယ္ဆိုရင္ေတာ့ link ပါ PDF မွာ ဆက္လက္ ၾကည့္ပါရန္..

Script ကို run လိုက္ျပီဆိုတာနဲ႕ ေအာက္က steps ေတြအတိုင္း သြားပါမယ္ ..

##########
[hyperic@centos02 hyperic-hq-installer-4.6.6]$ ./setup.sh
Unpacking JRE to temporary directory /tmp/jre
Please ignore references to missing tools.jar
Unable to locate tools.jar. Expected to find it in /tmp/lib/tools.jar
Loading taskdefs...
Taskdefs loaded
Initializing Hyperic HQ 4.6.6 Installation...
Choose which software to install:
1: Hyperic HQ Server
2: Hyperic HQ Agent
You may enter multiple choices, separated by commas.
1
HQ server installation path [default '/home/hyperic']:
/home/hyperic/hyperic-hq-installer-4.6.6
Enter the fully qualified domain name of the SMTP server that HQ will use to send email messages [default '192.168.1.138']:
enter
Enter the email address that HQ will use as the sender for email messages [default 'hqadmin@168.1.138']:
enter
Choices:
        1: Yes
        2: No
Would you like to use an auto generated encryption key to encrypt the database password? [default '1']:
enter
What should the username be for the initial admin user? [default 'hqadmin']:
enter
What should the password be for the initial admin user?: type password
(again): type password
What should the email address be for the initial admin user? [default 'hqadmin@168.1.138']:
enter
Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating server install configuration...
Checking server webapp port...
Checking server secure webapp port...
Verifying admin user properties
Validating server DB configuration...
Installing the server...
Unpacking server to: /home/hyperic/hyperic-hq-installer-4.6.6...
Creating server configuration files...
Using "small" installing profile...
Copying binaries and libraries to server installation...
Copying server configuration file...
Copying server db-upgrade files...
Copying server libs...
Setting up server database...

Now login to another terminal as root and execute this script:

    /home/hyperic/hyperic-hq-installer-4.6.6/installer/data/hqdb/tune-os.sh


This script sets up the proper shared memory settings to run the
built-in database.

Press Enter after you run the script to continue this installation.


ဒီေနရာမွာ enter ႏွိပ္ျပီး ဆက္ မသြားေသးပဲ တျခား terminal  တခု ဖြင့္ျပီး root user နဲ႕ ဒီ /home/hyperic/hyperic-hq-installer-4.6.6/installer/data/hqdb/tune-os.sh ကို ေပးရပါမယ္
# sh /home/hyperic/hyperic-hq-installer-4.6.6/installer/data/hqdb/tune-os.sh


 Root user နဲ႕ script ကို run ျပီး ဆိုရင္ေတာ့ install လုပ္ေနတဲ့ terminal ကိုျပန္သြားျပီး enter ႏွိပ္ေပးရပါမယ္.. သူ႕ဟာသူ လိုအပ္ သလို လုပ္ေဆာင္ သြားပါလိမ့္မယ္..

Setting up JDBC driver...
Copying database files...
Configuring database...
Loading taskdefs...
Taskdefs loaded
Starting repopulation of configuration table...
Waiting for built-in database to start (on port 9432)...
Starting built-in database...
Preparing database...
Loading taskdefs...
Taskdefs loaded
Loading taskdefs...
Taskdefs loaded
Loading taskdefs...
Taskdefs loaded
Waiting for server to stop...
Stopping built-in database...
Built-in database stopped.
Installing the server JRE ...
Unpacking JRE amd64-linux-1.6_30.tar.gz to: /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6...
Setting permissions on /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6...
Setting permissions on server binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
  Server successfully installed to: /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6
--------------------------------------------------------------------------------


 You can now start your HQ server by running this command:

  /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6/bin/hq-server.sh start (server  ကို run ရန္ script location)

 Note that the first time the HQ server starts up it may take several minutes
 to initialize.  Subsequent startups will be much faster.

 Once the HQ server reports that it has successfully started, you can log in
 to your HQ server at:
(Server ကို Access လုပ္ရန္ Information)
  http://192.168.1.138:7080/
  username: hqadmin
  password: xxxxxxxx


 To change your password, log in to the HQ server, click the "Administration"
 link, choose "List Users", then click on the "hqadmin" user.

Setup completed.
A copy of the output shown above has been saved to:
  /home/hyperic/hyperic-hq-installer-4.6.6/installer/logs/hq-install.log

Deleting temporary JRE
##########
ဒါဆို ရင္ေတာ့ Hyperic Server Installation  ျပီးသြားပါျပီ..
ဆက္လက္ျပီး Hyperic Agent ကို Install လုပ္ပါမယ္..

Server Install လုပ္တုန္းက script ကိုပဲျပန္ run ပါမယ္
#cd hyperic-hq-installer-4.6.6
#./setup.sh

#############
[hyperic@centos02 hyperic-hq-installer-4.6.6]$ ./setup.sh
Unpacking JRE to temporary directory /tmp/jre
Please ignore references to missing tools.jar
Unable to locate tools.jar. Expected to find it in /tmp/lib/tools.jar
Loading taskdefs...
Taskdefs loaded
Initializing Hyperic HQ 4.6.6 Installation...
Choose which software to install:
1: Hyperic HQ Server
2: Hyperic HQ Agent
You may enter multiple choices, separated by commas.
2
HQ agent installation path [default '/home/hyperic']:
/home/hyperic/hyperic-hq-agent-4.6.6
Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating agent install configuration...
Installing the agent...
Looking for previous installation
Unpacking /home/hyperic/hyperic-hq-installer-4.6.6/hyperic-hq-agent-4.6.6-x86-64-linux.tar.gz to: /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6...
Setting permissions on /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6...
Setting permissions on agent binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
  Agent successfully installed to: /home/hyperic/hyperic-hq-agent-4.6.6
--------------------------------------------------------------------------------
You can now start your HQ agent by running this command:

       /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6/bin/hq-agent.sh start ( agent ကို run ရန္ script ပါ )
Setup completed.
A copy of the output shown above has been saved to:
  /home/hyperic/hyperic-hq-installer-4.6.6/installer/logs/hq-install.log

Deleting temporary JRE
############
Hyperic Agent ကို Installation ျပီးပါျပီ..

Server  နဲ႕ Agent  ကို အခ်ိတ္အဆက္ လုပ္ပါမယ္..

အရင္ဦးဆုံး Server ကို run ပါမယ္..
# sh /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6/bin/hq-server.sh start


ျပီးရင္ Agent ကို configure လုပ္ဖို႕ Agent Script ကို ပါမယ္..

#sh /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6/bin/hq-agent.sh start

############
[hyperic@centos02 /]$ sh  /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6/bin/hq-agent.sh start
Starting HQ Agent...... running (5530).
[ Running agent setup ]
What is the HQ server IP address: 127.0.0.1 ( Server ေရာ Agent ေရာ တေနရာထဲမွာ တင္ေတာ့ Server ကို 127.0.0.1  ပဲ type ပါမယ္)
Note: Agent ကို တျခား Machine တေနရာမွာ တင္ျပီး ခ်ိတ္ဆက္ ဖို႕ support မေပးေသးပါ
Should Agent communications to HQ always be secure [default=yes]: enter
What is the HQ server SSL port [default=7443]: enter
- Testing secure connection ... Success
What is your HQ login [default=hqadmin]: enter
What is your HQ password: type password
What IP should HQ use to contact the agent [default=192.168.1.138]: enter
What port should HQ use to contact the agent [default=2144]: enter
- Received temporary auth token from agent
- Registering agent with HQ
The server to agent communication channel is using a self-signed certificate and could not be verified
Are you sure you want to continue connecting? [default=no]: yes
- HQ gave us the following agent token
    1348630693911-7668705443229188126-6509605970126664619
- Informing agent of new HQ server
- Validating
- Successfully setup agent
##################
Hyperic Server and Agent Installation ျပီးဆုံး ပါျပီ..

Hyperic Server ကို Restart လုပ္ေပးလိုက္ပါ..
# sh /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6/bin/hq-server.sh restart

ျပီးေနာက္ Web-browser  မွာ server ip port 7080  နဲ႕ browse လုပ္ျပီး အေစာက server installation တုန္းက username password နဲ႕ ဝင္ျပီး အသံုး ျပဳႏိုင္ပါျပီ..



  ဒီ server ကေန ဥပမာ network router  တလုံးကို monitoring လုပ္မယ္ဆိုရင္ေတာ့ ထို router မွ snmp support လုပ္ဖို႕ေတာ့ လိုအပ္ ပါမယ္
hyperic က snmp version 1, 2, 3 support ေပးပါတယ္..

Server မွာ Resource Add တာေတြ Server Function ေတြကိုေတာ့ ကိုယ္ဟာကို စမ္းေစ ခ်င္ပါတယ္ .. (တကယ္ေတာ့ က်ေနာ္လဲ Fully မစမ္း ရေသး လို႕ပါ .. :D)


>>

UTEE


Ref : http://www.hyperic.com/
        https://support.hyperic.com/download/attachments/77004927/vFabric_Hyperic_4.5_Installation_and_Configuration.pdf



3 comments:

  1. ၾကိဳက္တယ္ ဦးတီးေရ အားေပးေနတယ္ ေန႔တိုင္းလာၾကည့္ရတာအေမာပဲ BOT နဲ႔ပဲ လႊတ္ေပးထားတယ္ လူဇိုး

    ReplyDelete
  2. ဟုတ္ကဲ့ ခဗ်ာ အခုလို အားေပးတဲ့ အတြက္ ေက်းဇူး တင္ပါတယ္.. :)

    ReplyDelete
  3. terimakasih atas semua http://goo.gl/72ocGX info dan beritanya, sangat menarik http://goo.gl/agUBtA dan bermanfaat. ditunggi juga postingan http://vigpowercapsulegreenworld.web.id/ yang berikutnya

    ReplyDelete