当前位置: 首页 > 工具软件 > Hyperic HQ > 使用案例 >

hyperic HQ安装配置

贡光明
2023-12-01

一.apache

yum -y install httpd-----------------------------------------安装Apache

二.mysql

yum -y install mysql-server--------------------------------安装Mysql
chkconfig mysqld on-----------------------------------------配置Mysql自动启动
service mysqld start-----------------------------------------启动Mysql服务

mysql
>CREATE USER 'hq'@'localhost' IDENTIFIED BY 'hq';----创建Mysql帐号hq,设置密码hq
>create database HQ;---------------------------------------创建HQ库

>grant all on HQ.* to 'hq'@'localhost';-------------------赋予用户权限
三.安装Hyperic-Hq

mkdir /opt/hq---------------------------------------------------创建HQ文件夹
useradd hq------------------------------------------------------创建hq用户
chmod -R a+rwx hq--------------------------------------------赋予HQ文件夹权限

wget -------------------------------------------------------------获取Hyperic-HQ安装包
tar zxvf hyperic-hq-installer-4.5.1-x86-linux.tar.gz------解压缩Hyperic-HQ安装包
chmod -R a+rwx hyperic-hq-installer/----------------------改变目录权限
su hq-------------------------------------------------------------切换至hq用户
 ./setup.sh -full-------------------------------------------------安装
/opt/hq/server-4.4.0/bin/hq-server.sh start--------------启动Hyperic-HQ
 vi /etc/sysconfig/iptables-------------------------------------修改防火墙端口,启用TCP7080、7443、2099、9093端口
service iptables restart----------------------------------------重启防火墙

设置邮件告警

打开<HQ Server 安装目录>/conf/hq-server.conf ,设置server.mail.host=smtp.X.com
进入HQ的安装服务器,打开<HQ Server 安装目录>/conf/templates/jboss-service-events.xml ,设置如下
<attribute name="User">登录帐号</attribute>
<attribute name="Password">登录密码</attribute>
在<HQ Server 安装目录>/conf/templates/jboss-service-events.xml 的confguration段内,添加如下
<property name="mail.smtp.auth" value="true"/>
进入administration界面,HQ Server Settings设置From Email Address为你用来做smtp转发的邮箱地址。

进入每个alter,设置接受这个报警的邮箱地址。

 类似资料: