2014年1月25日 星期六

[研究] Hyperic HQ Open Source Edition 5.0 安裝 (CentOS 6.5 x64)

[研究] Hyperic HQ Open Source Edition 5.0 安裝 (CentOS 6.5 x64)

2014-01-24

Hyperic HQ是一套開放原始碼電腦系統和網路監視應用軟體。它看守著主機和服務,當事情出錯時提醒使用者,並當事情變好時再次提醒。它也提供歷史圖表和事件關聯讓我們可以快速的確認問題。Hyperic HQ是由自由軟體基金會在GPL 2.0的授權證下發行的。它主要是由Java和少部分C所寫成,並在Jboss這個應用伺服器上執行。有很好的agent支援,可以連續不斷的自動發現系統資源。

官方網站
http://www.hyperic.com/

下載



安裝參考
https://support.hyperic.com/display/DOC/HQ+Installation+and+Configuration+Guide

安裝

# 後面的 setup.sh 無法用 root 帳號執行

useradd  hyperic;  
passwd  hyperic
su  hyperic;  
cd  

wget http://nchc.dl.sourceforge.net/project/hyperic-hq/Hyperic%205.0.0/hyperic-hq-installer-x86-64-linux-5.0.0.tar.gz

tar xvzf hyperic-hq-installer-x86-64-linux-5.0.0.tar.gz
cd hyperic-hq-installer-5.0.0/
./setup.sh


回答一些簡單的問題就開始安裝,要注意若是選擇安裝Server,在安裝步驟的後面會停在一個畫面,需要另外用root去執行tune-os.sh,之後才能再接下去繼續安裝的動作。

[hyperic@localhost hyperic-hq-installer-5.0.0]$ ./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 5.0.0 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']:

Enter the email address that HQ will use as the sender for email messages [default 'hqadmin@localhost.localdomain']:

Choices:
        1: Yes
        2: No
Would you like to use an auto generated encryption key to encrypt the database password? [default '1']:
What should the username be for the initial admin user? [default 'hqadmin']:

What should the password be for the initial admin user?:  (設定密碼)
(again):  (設定密碼)
What should the email address be for the initial admin user? [default 'hqadmin@localhost.localdomain']:

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...

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-5.0.0/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.

(執行到這裡要另外開個 terminal,用 root 執行 /home/hyperic/hyperic-hq-installer-5.0.0/installer/data/hqdb/tune-os.sh,然後回到這裡按下 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...
Built-in database stopped.
Installing the server JRE ...
Unpacking JRE amd64-linux-1.6_33.tar.gz to: /home/hyperic/server-5.0.0...
Setting permissions on /home/hyperic/server-5.0.0...
Setting permissions on server binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
  Server successfully installed to: /home/hyperic/server-5.0.0
--------------------------------------------------------------------------------


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

  /home/hyperic/server-5.0.0/bin/hq-server.sh start

 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:

  http://localhost.localdomain:7080/
  username: hqadmin
  password: password

 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-5.0.0/installer/logs/hq-install.log

Deleting temporary JRE
[hyperic@localhost hyperic-hq-installer-5.0.0]$


==============

(以下為另外開個 terminal,用 root 執行 /home/hyperic/hyperic-hq-installer-5.0.0/installer/data/hqdb/tune-os.sh )

login as: root
root@192.168.128.104's password:
Last login: Sat Jan 25 05:57:14 2014 from 192.168.128.1
[root@localhost ~]# /home/hyperic/hyperic-hq-installer-5.0.0/installer/data/hqdb/tune-os.sh
/etc/sysctl.conf defined an adequate kernel.shmmax, not changing anything

Tuning completed successfully!

[root@localhost ~]#

==============


預設在Server端的服務啟動指令為


/home/hyperic/server-5.0.0/bin/hq-server.sh  start

[hyperic@localhost hyperic-hq-installer-5.0.0]$ /home/hyperic/server-5.0.0/bin/hq-server.sh  start
Starting HQ Server...
[hyperic@localhost hyperic-hq-installer-5.0.0]$

,停止則祇要將參數改成stop即可。

成功安裝後祇要用瀏覽器連到
http://localhost:7080
就可以開始使用了;預設的網頁介面管理使用者帳號為hqadmin,密碼為你剛剛設定的。




PS:若一開始是選擇安裝agent,祇要額外輸入Server的IP位址,不需另外執行其他腳本即可安裝完成。

預設agent端的服務啟動指令為

/home/hyperic/server-5.0.0/bin/hq-agent.sh  start

(完)

十大優秀開源(Open Source) 網路及系統管理工具
http://caresys.blogspot.tw/2009/02/open-source.html

[研究] Hyperic HQ Open Source Edition 5.0 安裝 (CentOS 6.5 x64)
http://shaurong.blogspot.com/2014/01/hyperic-hq-open-source-edition-50.html
http://forum.icst.org.tw/phpbb/viewtopic.php?f=22&t=80706

[研究] Hyperic HQ 4.5.2 安裝 (CentOS 6.0 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=20284

[研究] Hyperic HQ 4.2.0 安裝 (CentOS 5.4 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=18027

[研究] Hyperic HQ 4.0.1簡易安裝教學(Fedora 9)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=16093

沒有留言:

張貼留言