---
title: "Hyperic HQ"
author: "harbey"
date: "2013-01-06T16:50:40Z"
tags: []
categories: ["开源软件"]
slug: "hyperic-hq"
draft: false
lastmod: "2013-01-07T12:02:06Z"
id: 1763838
url: "https://harbey.iteye.com/blog/1763838"
---

Hyperic HQ
官方网站：<http://www.hyperic.com/>

1、linux安装：
1.1>安装参见<http://support.hyperic.com/display/DOC/Choose+and+Download+an+Installation+Package>
1.2>安装
解压：
tar zxvf hyperic-hq-installer-4.6-x86-64-linux.tar.gz
解压后生成目录：hyperic-hq-installer-4.6
cd hyperic-hq-installer-4.6
./setup.sh

安装过程中会提示：
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 :
/george/installs/hyperic-hq  （安装的路径）
Choices:
        1: Yes
        2: No
Should we overwrite the existing HQ server installation? :
1 （因为我已经安装一次，但是不成功，再安装的时候会提示是否覆盖）
Enter the email address that HQ will use as the sender for email messages :

Enter an encryption key to use to encrypt the database password.:
password
What should the username be for the initial admin user? :

What should the password be for the initial admin user?: 
(again): 
What should the email address be for the initial admin user? :


我在安装时报如下错误：
--------------------------------------------------------------------------------
An ERROR occurred, the installation cannot continue.

You must run this script as root:
  /george/installs/hyperic-hq-installer-4.6/installer/data/hqdb/tune-os.sh
before continuing the installation.
FATAL EXCEPTION at /george/installs/hyperic-hq-installer-4.6/installer/data/setup.xml:510: : The following error occurred while executing this line:
......
/george/installs/hyperic-hq-installer-4.6/installer/data/setup-db-PostgreSQL.xml:224: ^^^ERROR:\
You must run this script as root:
  /george/installs/hyperic-hq-installer-4.6/installer/data/hqdb/tune-os.sh
before continuing the installation.
--------------------------------------------------------------------------------
错误分为两类：目录没权限，赋权即可；使用root用户执行调优的脚本tune-os.sh。
错误提示比较明确；

出现如下信息表明安装成功：
Installation Complete:
  Server successfully installed to: /george/installs/hyperic-hq/server-4.6
.......
Setup completed.

在安装完成后，查看bootstrap.log日志时，会有<span style="color:red">org.postgresql.util.PSQLException: Cannot change transaction isolation level in the middle of a transaction.</span>异常。
经查明，该异常为4.6版本的一个bug,可见参hyperic的jira系统：
https://jira.hyperic.com/browse/HHQ-5054
问题出在应用tomcat的jdbc pool的lib的bug。但是不影响HQ的使用，后续HQ会修复这个BUG；