阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

开源IT管理系统 Hyperic HQ 部署测试(监控篇)

134次阅读
没有评论

共计 4719 个字符,预计需要花费 12 分钟才能阅读完成。

最近接手服务器系统监控项目,开源软件 hyperic-hq,安装了测试环境熟悉下。Hyperic HQ 是一个开源的 IT 管理框架,让用户使用统一的界面来管理各种不同的 IT 技术。
下载地址:
http://sourceforge.net/projects/hyperic-hq/files/
http://www.hyperic.com/

我使用的是 4.6 版本,官方已经更新到 5.0 版本
下载安装包要注意,有 32,64 位选择,由于我的系统是 64bit,下面的测试软件都将使用 64bit。大家可以根据自己环境安装。

一、Server 端安装:
hyperic-hq-installer-4.6-x86-64-linux.tar.gz
安装步骤
1 新建 hyperic 用户
#useradd hyperic
2 解压下载文件移动到 /var/lib/hyperic
#tar -zxvf hyperic-hq-installer-4.6-x86-64-linux.tar.gz
#mv hyperic-hq-installer-4.6 /var/lib/
3 切换 hyperic 用户
#su – hyperic
$
4 执行
#/var/lib/hyperic-hq-installer-4.6/setup.sh -postgresql
按步骤提示安装
hyperic-hq 可以支持报考 MySQL、Oracle、postgresql 等数据库,详细可以查看官方文档。我就简单说明下:

默认安装:/var/lib/hyperic-hq-installer-4.6/setup.sh 那么将使用 hyperic-hq 自带 postgresql 数据库
支持其他数据库安装:/var/lib/hyperic-hq-installer-4.6/setup.sh -full 在交互中选择自己想要的数据库
支持 postgresql 数据库安装:/var/lib/hyperic-hq-installer-4.6/setup.sh -postgresql
这里我选择支持 postgresql 数据库安装:

# su – hyperic
-bash-3.2$ /var/lib/hyperic-hq-installer-4.6/setup.sh -postgresql
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 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 fully qualified domain name of the SMTP server that HQ will use to send email messages [default ‘192.168.138.1’]:

Enter the email address that HQ will use as the sender for email messages [default ‘hqadmin@168.138.1’]:

Enter an encryption key to use to encrypt the database password.:
www.igg.com
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@168.138.1’]:

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…
Copying binaries and libraries to server installation…
Copying server configuration file…
Copying server db-upgrade files…
Copying server libs…
Setting up server database…
Setting up JDBC driver…
Copying database files…
Configuring database…
Loading taskdefs…
Taskdefs loaded
Starting repopulation of configuration table…
Starting built-in database…
Waiting for built-in database to start (on port 9432)…
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.tar.gz to: /home/hyperic/server-4.6…
Setting permissions on /home/hyperic/server-4.6…
Setting permissions on server binaries…
Fixing line endings on text files…
——————————————————————————–
Installation Complete:
Server successfully installed to: /home/hyperic/server-4.6
——————————————————————————–

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

/home/hyperic/server-4.6/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://192.168.138.1:7080/

username: hqadmin
password: hqadmin

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:
/var/lib/hyperic-hq-installer-4.6/installer/logs/hq-install.log

Deleting temporary JRE
报错执行:
You must run this script as root:
/var/lib/hyperic-hq-installer-4.6/installer/data/hqdb/tune-os.sh
5 安装完毕之后,切换 root 用户启动命令
$exit
#chmod +x /home/hyperic/server-4.6/bin/hq-server.sh
#/bin/su – hyperic -c ‘/home/hyperic/server-4.6/bin/hq-server.sh start’
Starting HQ Server…
6 相应端口对外限制 7443 端口对客户机开放 7080 端口对访问 ip 开放
# netstat -ntlp | grep java
tcp 0 0 0.0.0.0:7080 0.0.0.0:* LISTEN 24037/java
tcp 0 0 0.0.0.0:7443 0.0.0.0:* LISTEN 24037/java
二、客户端安装:
现在包 hyperic-hq-agent-4.4.0-1509-x86_64-linux.tar
解压
#tar -zxvf hyperic-hq-agent-4.4.0-1509-x86_64-linux.tar
#mv hyperic-hq-agent-4.4.0 /root/soft/
编辑配置文件
#vim /root/soft/hyperic-hq-agent-4.4.0/conf/agent.properties
# 末尾添加:
agent.setup.camIP=192.168.138.1 #指向 server 端 IP
agent.setup.camPort=7080 #端口
agent.setup.camSSLPort=7443
agent.setup.camSecure=yes
agent.setup.camLogin=hqadmin #登陆账号
agent.setup.camPword=hqadmin #登陆密码
agent.setup.agentIP=192.168.138.134 #客户端 ip
agent.setup.agentPort=2144 #客户端监听端口
#/root/soft/hyperic-hq-agent-4.4.0/bin/hq-agent.sh start
三、浏览器登陆
http://192.168.138.1:7080

开源 IT 管理系统 Hyperic HQ 部署测试(监控篇)

此时服务器将会自动显示客户端监控 IP 及系统自带的监控项目
如果出现监控项目异常(如出现感叹号),请确认服务端和客户端的时间是否一样。
这只是开始,后期很多需要细细研究……

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-20发表,共计4719字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中