hyperic-hq

标签:
http://sourceforge.net/projects/hyperic-hq
安装满足条件检测
http://support.hyperic.com/display/DOC/Installation+Requirements
HQ Server Resource Requirements
For small to medium deployments, up to 50 managed platforms:

1 GHz or higher Pentium 4, or equivalent (2 x 2.4GHz Pentium Xeon or equivalent recommended)
1 GB RAM (4 or more GB recommended)
1-5 GB Free Disk Space
HQ Database Requirements
1 GHz or higher Pentium 4, or equivalent (2 x 2.4GHz Pentium Xeon or equivalent recommended)
2 GB RAM (4 or more GB recommended)
25 GB Free Disk Space
Agent System Resource Requirements
500 MHz Celeron or higher, or equivalent
256 MB RAM
500 MB Free Disk Space

mysql> create user 'hqadmin'@'%' identified by '1234';
Query OK, 0 rows affected (0.00 sec)

mysql> create database hq;
Query OK, 1 row affected (0.01 sec)

mysql> grant all on hq.* to 'hqadmin'@'%';
Query OK, 0 rows affected (0.00 sec)

[hq@rs1 hyperic-hq-installer]$ ./setup.sh -full -mysql
Unpacking JRE to temporary directory /tmp/jre
WARNING: file was not writeable: /home/hq/hyperic/hyperic-hq-installer/installer-4.1.0/hq-install.log
Logs will be written to /tmp instead.
Initializing Hyperic HQ 4.1.0 Installation...
Loading taskdefs...
Taskdefs loaded
WARNING: Setup properties file can't be written to /home/hq/hyperic/hyperic-hq-installer/installer-4.1.0/data/setup.properties
Setup properties will be written to /tmp/setup.properties instead.
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']:

server.installdir does not exist: /home/hyperic
HQ server installation path [default '/home/hyperic']:
/home/hq
Enter the JDBC connection URL for the MySQL 5.x database [default 'jdbc:mysql://localhost:3306/HQ']:
jdbc:mysql://172.16.1.138:3306/hq
Enter the username to use to connect to the database:
hqadmin
Enter the password to use to connect to the database:
(again):
Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating server install configuration...
Checking server webapp port...
Checking server secure webapp port...
Checking server JRMP port...
Checking server JNP port...
Checking database permissions...
Verifying admin user properties
Validating server DB configuration...
Installing the server...
Unpacking server to: /home/hq/server-4.1.0...
Creating server configuration files...
Copying binaries and libraries to server installation...
Copying server configuration file...
Copying server control file...
Copying server binaries...
Copying server libs...
Setting up server database...
--------------------------------------------------------------------------------
An ERROR occurred, the installation cannot continue.
FATAL EXCEPTION at /home/hq/hyperic/hyperic-hq-installer/installer-4.1.0/data/setup.xml:401: : The following error occurred while executing this line:
/home/hq/hyperic/hyperic-hq-installer/installer-4.1.0/data/setup.xml:407: The following error occurred while executing this line:
/home/hq/hyperic/hyperic-hq-installer/installer-4.1.0/data/setup.xml:531: The following error occurred while executing this line:
/home/hq/hyperic/hyperic-hq-installer/installer-4.1.0/data/setup-db-MySQL.xml:16: The following error occurred while executing this line:
/home/hq/hyperic/hyperic-hq-installer/installer-4.1.0/data/setup-db-hibernate.xml:193: Errors while performing <hbm2ddl>
源码安装出现上述错误信息,改用rpm格式安装Server端,客户端使用源码方式,不需要安装只需要将tgz的包解开,执行bin下的sh脚本就可以完成。

64位程序包不能正常工作,但全下面的错误

下载386包

wget http://nchc.dl.sourceforge.net/sourceforge/hyperic-hq/hyperic-hq-agent-4.0.2-939-x86-linux.tgz

解压它

tar xvfz hyperic-hq-agent-4.0.2-939-x86-linux.tgz

打开端口2144在使用iptables的xenserver所以Hyperic剂能够与Hyperic服务器。

六的/ etc / sysconfig /使用iptables

输入以下

一个相对湿度防火墙- 1输入磷的TCP米的TCP dport 2144年约翰逊接受

重新启动防火墙

重新启动服务使用iptables

运行启动脚本Hyperic代理

/ opt/hyperic-hq-agent-4.0.2/bin/hq-agent.sh

要添加xenserver作为一种资源在Hyperic服务器,您需要做到以下几点。

(见说明http://support.hyperic.com/display/hypcomm/Citrix + XenServer更多深指示。

后藤资源
删除Xenserver这是增加时会自动启动Hyperic代理。
点击工具菜单并选择新的平台。
输入信息,将其添加作为一种资源。
点击进入资源你刚才创建。
点击工具菜单并选择配置平台
输入一些像http://yourhost.com:80在网址
platform.uuid = xenserver名称
输入用户名和密码的xenserver管理工具。
保存。
多数民众赞成它。

更新-在安装和玩我发现周围的代理人不收集数据的CPU或RAM用于Xenserver 5.0主机或虚拟机的,这仅适用于Xenserver 4 。 更新定于2009年。

球形:相关内容

Hyperic , 监测 , Xenserver Hyperic , 监测 , Xenserver

安装Hyperic总部4.0.2转速对Centos 5.2

下载Hyperic
wget http://jaist.dl.sourceforge.net/sourceforge/hyperic-hq/hyperic-hq-installer-4.0.2-1.x86_64.rpm
安装所需的软件包
百胜安装libXp期望
如果有必要安装的MySQL
安装Hyperic 4.0.2转速
每分钟转速,超高压hyperic总部,安装- 4.0.2 - 1.x86_64.rpm
启动Hyperic改变的hyperic用户和使用红旗server.sh
hyperic
/ opt/hyperic/server-4.0.2/bin/hq-server.sh启动
现在,您可以登录使用的用户名- hqadmin ,密码hqadmin 。

--------------------------------------------------------------------------------
Deleting temporary JRE

Hyperic HQ是一个开源(GPL授权)IT资源管理平台。
# Hyperic HQ 可以监控和管理: 操作系统:AIX,HP/UX,Linux,Solaris,Windows,Mac OSX,FreeBSD
# Web服务器:Apache,Microsoft IIS,Sun ONE Web Server
# 应用服务器:BEA WebLogic,IBM WebSphere,JBoss,Apache Geronimo,Macromedia ColdFusion,Macromedia JRun,Microsoft .NET Runtime,Novell Silverstream,Tomcat,Caucho Resin
# 数据库:IBM DB2,Microsoft SQL Server,MySQL,Oracle,PostgreSQL,Sybase Adaptive Server
# 消息中间件: ActiveMQ,Weblogic MQ
# 微软的产品: MS Exchange,MS ActiveDirectory,.NET
# 虚拟产品: VMWare,Citrix Metaframe
# 应用平台: LAMP,LAM-J,J2EE,MX4J
# 其他:网络设备交换机,路由器,网络服务等。

1、环境
Server端系统:Centos 5.0
Client端系统:CentOS 4.6
Server和Client端均需要JRE 1.4或者1.5以上,官方推荐是1.5,注意,这里一定要是JRE,而不能是JDK,我试过用JDK 1.4的来启动Client端,结果如下:
tail /opt/hyperic/hyperic-hq-agent/log/agent.log
Unable to connect to 127.0.0.1:2144
2009-03-13 17:20:11,094 INFO [Thread-0] [ProductPluginManager] Cannot load vim-plugin.jar: requires JRE 1.5 or higher

2、Server端安装
去www.hyperic.com下载hyperic HQ的开源版hyperic-hq-installer-4.1.0-1.i386.rpm,这个安装包里已经包含JRE 1.5
也要下载hyperic-hq-agent-4.1.0-1.noarch.rpm

#rpm -Uvh hyperic-hq-installer-4.1.0-1.i386.rpm

稍等一会,安装完成,切换到hyperic用户启动Server端
#su - hyperic
$/opt/hyperic/server-4.1.0/bin/hq-server.sh start

启动成功后,通过以下信息访问控制台
http://your-server-ip-address:7080/
用户名:hqadmin
密码:hqadmin

如果要监控本机,就要在本机安装Client端
#rpm -Uvh hyperic-hq-agent-4.1.0-1.noarch.rpm
稍等一会,安装完成,如果直接运行/opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh start会叫你先设置JAVA_HOME或者HQ_JAVA_HOME,为避免出现这个提示
我们修改这个启动脚本,
# cp /opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh /opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh.OLD
# vi /opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh
在#!/bin/sh下面一行添加以下内容
export HQ_JAVA_HOME=/usr/java/jdk1.6.0_02/
保存退出

现在运行/opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh start
程序会叫你输入一些资料,如Server端IP地址,是否用安全连接,端口等信息,如果一时手快,填错了,也没关系,可以通过
/opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh setup进行重新配置
当Client启动起来后,我们回到http://your-server-ip-address:7080/,刷新页面,可以看到页面右上角已经有自动识别的被监控resource了,点击添加就可以添加进去。

3、Client端安装
先到http://www.java.com/zh_CN/download/manual.jsp下载jre-6u12-linux-i586-rpm.bin
# chmod a+x jre-6u12-linux-i586-rpm.bin
# ./jre-6u12-linux-i586-rpm.bin
# rpm -Uvh hyperic-hq-installer-4.1.0-1.i386.rpm
# cp /opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh /opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh.OLD
# vi /opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh
在#!/bin/sh下面一行添加以下内容
export HQ_JAVA_HOME=/usr/java/jre1.6.0_12
保存退出,跟在Server设置一样,也需要填入一些资料,启动成功后,我们去到http://your-server-ip-address:7080/,同样可以看到页面右上角已经有自动识别的被监控resource了,点击添加就可以添加进去。

4、监控非常规安装的软件
以上安装设置后可以监控大部分的软件,如Apache,MySQL等,但有些还是不能监控,下面讲下如何添加这些默认不能自动识别的软件,假设hostname为test.example.com的服务器上有个非常规安装的Postfix 2.0,点击
Resources-->test.example.com-->Tools Menu,去到新页面,填写Name,从Server Type下拉菜单中选择Postfix 2.x,填入软件安装的路径,如/usr/local/postfix,点击OK,点击Monitor,页面会有一个黄色的提示“This resource has not been configured. Please set its Configuration Properties.”,点击“Configuration Properties”,process.query的值默认,根据实际情况,填入postconf和configDir的具体路径,点击OK,
接下来,我们要监控Postfix的邮件队列Service,点击Monitor-->Tools Menu-->New Service,Name栏填postfix 2.0 queue,注意hyperic HQ不支持中文,哈,所以只能用英文命名,Service Type里只有一个“Postfix 2.0 Queue”选了,点击OK,至此,非默认安装的软件的监控添加完毕。

# rpm -Uvh hyperic-hq-installer-4.1.0-1.x86_64.rpm
Preparing... ########################################### [100%]
1:hyperic-hq-installer ########################################### [100%]
spawn ./setup.sh
Unpacking JRE to temporary directory /tmp/jre
Initializing Hyperic HQ 4.1.0 Installation...
Loading taskdefs...
Taskdefs loaded
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']:
/opt/hyperic
/opt/hyperic
Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating server install configuration...
Checking server webapp port...
Checking server secure webapp port...
Checking server JRMP port...
Checking server JNP port...
Verifying admin user properties
Validating server DB configuration...
Installing the server...
Unpacking server to: /opt/hyperic/server-4.1.0...
Creating server configuration files...
Copying binaries and libraries to server installation...
Copying server configuration file...
Copying server control file...
Copying server binaries...
Copying server libs...
Setting up server database...
Setting up JDBC driver...
Copying database files...
Configuring database...
Starting repopulation of configuration table...
Waiting for built-in database to start (on port 9432)...
Starting built-in database...
Preparing database...
Waiting for server to stop...
Stopping built-in database...
Built-in database stopped.
Installing the server JRE ...
Unpacking JRE amd64-linux-jre-1_5.tar.gz to: /opt/hyperic/server-4.1.0...
Setting permissions on server binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
Server successfully installed to: /opt/hyperic/server-4.1.0
--------------------------------------------------------------------------------

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

/opt/hyperic/server-4.1.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://rs1.lvs.local: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:
/opt/hyperic/hyperic-hq-installer/installer-4.1.0/./hq-install.log

Deleting temporary JRE

The HQ Server has successfully been installed, and the service has been
configured to start at boot.
The installation log can be found in /opt/hyperic/server-4.1.0-%{HQ_Component_Edition}/hq-install.log.
Manually starting the HQ Server should be done using the hyperic user.
cd /home/hyperic/hyperic/hyperic-hq-agent-4.1.0/bin
./hq-agent.sh start
安装提示信息设置server的信息就可以启动,server会自动发现设置的客户端。
[hyperic@rs3 bin]$ ./hq-agent.sh start
Starting HQ Agent...

[ Running agent setup ]
What is the HQ server IP address: What is the HQ server IP address: 172.16.1.133
Should Agent communications to HQ always be secure [default=no]:
What is the HQ server port [default=7080]:
- Testing insecure connection ... Success
What is your HQ login [default=hqadmin]:
What is your HQ password:
What IP should HQ use to contact the agent [default=192.168.1.145]: 172.16.1.132
What port should HQ use to contact the agent [default=2144]:
- Received temporary auth token from agent
- Registering agent with HQ
- HQ gave us the following agent token
1237788754848-87578817667915123-2358161313637185440
- Informing agent of new HQ server
- Validating
- Successfully setup agent

[hyperic@rs3 bin]$ ps aux|grep hyperic
root 10298 0.0 0.0 101088 1348 pts/3 S 14:01 0:00 su - hyperic
hyperic 10299 0.0 0.0 68116 1396 pts/3 S+ 14:01 0:00 -bash
hyperic 10345 0.0 0.0 60976 572 pts/3 S+ 14:01 0:00 script -q /tmp/.hist/20090323.14:01.10.hyperic.
hyperic 10346 0.0 0.0 60980 344 pts/3 S+ 14:01 0:00 script -q /tmp/.hist/20090323.14:01.10.hyperic.
hyperic 10347 0.0 0.0 68252 1628 pts/4 Ss 14:01 0:00 bash -i
hyperic 10646 0.0 0.0 18844 720 ? Sl 14:03 0:00 /home/hyperic/hyperic-hq-agent-4.1.0/wrapper/sbin/../../wrapper/sbin/wrapper-linux-x86-64 /home/hyperic/hyperic-hq-agent-4.1.0/wrapper/sbin/../../conf/wrapper.conf wrapper.syslog.ident=hq-agent wrapper.pidfile=/home/hyperic/hyperic-hq-agent-4.1.0/wrapper/sbin/../../wrapper/hq-agent.pid wrapper.name=hq-agent wrapper.displayname=HQ Agent wrapper.daemonize=TRUE
hyperic 10648 8.5 4.2 562184 88080 ? Sl 14:03 0:09 /home/hyperic/hyperic-hq-agent-4.1.0/jre/bin/java -Djava.compiler=NONE -Djava.security.auth.login.config=../../bundles/agent-4.1.0-1019/jaas.config -Xmx128m -Djava.net.preferIPv4Stack=true -Dagent.install.home=../.. -Dagent.bundle.home=../../bundles/agent-4.1.0-1019 -Dsun.net.inetaddr.ttl=60 -Djava.library.path=%LD_LIBRARY_PATH%:../../wrapper/lib -classpath ../../bundles/agent-4.1.0-1019/lib/lather.jar:../../bundles/agent-4.1.0-1019/lib/AgentServer.jar:../../bundles/agent-4.1.0-1019/lib/AgentClient.jar:../../bundles/agent-4.1.0-1019/pdk/lib/backport-util-concurrent-3.1.jar:../../bundles/agent-4.1.0-1019/pdk/lib/dnsjava-2.0.3.jar:../../bundles/agent-4.1.0-1019/pdk/lib/activation.jar:../../bundles/agent-4.1.0-1019/pdk/lib/log4j-1.2.14.jar:../../bundles/agent-4.1.0-1019/pdk/lib/ws-commons-util-1.0.2.jar:../../bundles/agent-4.1.0-1019/pdk/lib/jakarta-oro-2.0.7.jar:../../bundles/agent-4.1.0-1019/pdk/lib/getopt.jar:../../bundles/agent-4.1.0-1019/pdk/lib/xmlrpc-client-3.1.jar:../../bundles/agent-4.1.0-1019/pdk/lib/hyperic-util.jar:../../bundles/agent-4.1.0-1019/pdk/lib/json.jar:../../bundles/agent-4.1.0-1019/pdk/lib/commons-logging.jar:../../bundles/agent-4.1.0-1019/pdk/lib/xpp3_min-1.1.3.4.O.jar:../../bundles/agent-4.1.0-1019/pdk/lib/snmp4j.jar:../../bundles/agent-4.1.0-1019/pdk/lib/junit-3.8.jar:../../bundles/agent-4.1.0-1019/pdk/lib/hq-product.jar:../../bundles/agent-4.1.0-1019/pdk/lib/xalan.jar:../../bundles/agent-4.1.0-1019/pdk/lib/sigar.jar:../../bundles/agent-4.1.0-1019/pdk/lib/jdom-1.1.jar:../../bundles/agent-4.1.0-1019/pdk/lib/tomcat-jk.jar:../../bundles/agent-4.1.0-1019/pdk/lib/junit-4.4.jar:../../bundles/agent-4.1.0-1019/pdk/lib/jxla.jar:../../bundles/agent-4.1.0-1019/pdk/lib/commons-httpclient-3.1.jar:../../bundles/agent-4.1.0-1019/pdk/lib/xmlrpc-common-3.1.jar:../../bundles/agent-4.1.0-1019/pdk/lib/jsch-0.1.34.jar:../../bundles/agent-4.1.0-1019/pdk/lib/commons-codec-1.3.jar:../../bundles/agent-4.1.0-1019/pdk/lib/commons-beanutils.jar:../../bundles/agent-4.1.0-1019/pdk/lib/commons-collections-3.2.jar:../../bundles/agent-4.1.0-1019/pdk/lib/ant.jar:../../bundles/agent-4.1.0-1019/pdk/lib/xstream-1.2.1.jar:../../bundles/agent-4.1.0-1019/pdk/lib/xml-apis.jar:../../wrapper/lib/wrapper.jar -Dwrapper.key=rTGu83uMUgMFsub4 -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=10646 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperStartStopApp org.hyperic.hq.bizapp.agent.client.AgentClient 1 start org.hyperic.hq.bizapp.agent.client.AgentClient true 2 die 30
hyperic 10866 0.0 0.0 65620 972 pts/4 R+ 14:04 0:00 ps aux
hyperic 10867 0.0 0.0 61184 756 pts/4 S+ 14:04 0:00 grep hyperic

# ps aux|grep hyper
hyperic 1287 0.0 0.1 143208 2540 pts/1 S 13:57 0:00 /opt/hyperic/server-4.1.0/hqdb/bin/postgres -D /opt/hyperic/serve r-4.1.0/hqdb/data
hyperic 1302 0.0 0.0 71476 692 ? Ss 13:57 0:00 postgres: logger process
hyperic 1304 0.0 0.5 143344 11312 ? Ss 13:57 0:00 postgres: writer process
hyperic 1305 0.0 0.0 71616 992 ? Ss 13:57 0:00 postgres: stats collector process
hyperic 1320 69.1 39.6 1287832 813388 pts/1 Sl 13:57 3:26 /opt/hyperic/server-4.1.0/jre/bin/java -server -XX:MaxPermSize=19 2m -Xmx512m -Xms512m -Dprogram.name=hq-server -Dserver.home=/opt/hyperic/server-4.1.0 -Dengine.home=/opt/hyperic/server-4.1.0/hq-e ngine -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -classpath /opt/hyperic/server-4.1.0/hq-engine/bin/run.jar org.jbos s.Main -b 0.0.0.0
hyperic 1799 0.0 0.4 145400 8372 ? Ss 13:58 0:00 postgres: hqadmin hqdb 127.0.0.1(59208) idle
hyperic 1800 0.0 0.1 144164 3192 ? Ss 13:58 0:00 postgres: hqadmin hqdb 127.0.0.1(35062) idle
hyperic 1801 0.0 0.1 144164 3208 ? Ss 13:58 0:00 postgres: hqadmin hqdb 127.0.0.1(42852) idle
hyperic 1802 0.0 0.1 144164 3876 ? Ss 13:58 0:00 postgres: hqadmin hqdb 127.0.0.1(45340) idle
hyperic 1803 4.5 0.7 147056 16412 ? Ss 13:58 0:12 postgres: hqadmin hqdb 127.0.0.1(49367) idle
root 3473 0.0 0.0 63328 740 pts/6 R+ 14:02 0:00 grep hyper
root 25106 0.0 0.1 87920 3168 ? Ss 13:35 0:00 sshd: hyperic [priv]
hyperic 25109 1.7 0.1 89184 2964 ? S 13:35 0:27 sshd: hyperic@notty
hyperic 25110 0.2 0.1 54956 3148 ? Ss 13:35 0:04 /usr/libexec/openssh/sftp-server
root 32715 0.0 0.0 103220 1376 pts/1 S 12:29 0:00 su - hyperic
hyperic 32716 0.0 0.0 68236 1528 pts/1 S+ 12:29 0:00 -bash
# ps axu|heat -n 3
-bash: heat: command not found
# ps axu|head -n 3
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 10328 688 ? Ss Mar14 0:02 init [5]
root 2 0.0 0.0 0 0 ? S< Mar14 0:00 [migration/0]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值