[hq@localhost hyperic-hq-installer-4.5.1]$ ./setup.sh -full 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.5.1 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']: What port should the HQ server's web-based GUI listen on for http communication? [default '7080']: What port should the HQ server's web-based GUI listen on for secure https communication? [default '7443']: Enter the base URL for the HQ server's web-based GUI [default 'http://jiankong.dog.com:7080/']: Enter the email address that HQ will use as the sender for email messages [default 'hqadmin@dog.com']: Choices: 1: HQ Built-in Database 2: Oracle 10g/11g 3: PostgreSQL 4: MySQL Enterprise / Community Server 5.x The HQ built-in database is provided for EVALUATION PURPOSES ONLY. For production use, MySQL or Oracle is recommended. What backend database should the HQ server use? [default '1']:4 选择mysql Enter the JDBC connection URL for the MySQL Enterprise / Community Server 5.x database [default 'jdbc:mysql://localhost:3306/HQ']: Enter the username to use to connect to the database: hq 登陆数据库的用户名 Enter the password to use to connect to the database.: (again): 登陆数据库的密码hq Enter an encryption key to use to encrypt the database password.: abcdefg 密码 What should the username be for the initial admin user? [default 'hqadmin']: 登陆监控系统的用户名默认hqadmin What should the password be for the initial admin user?: (again): 输入密码 Values do not match What should the password be for the initial admin user?: (again): What should the email address be for the initial admin user? [default 'hqadmin@dog.com']: 默认
-------------------------------------
客户端设置
tar xvf hyperic-hq-agent-4.5.1-x86-64-linux.tar 下载地址查看上面
cd 解压目录 bin 下
[root@localhost bin]# ./hq-agent.sh setup
root@localhost bin]# ./hq-agent.sh setup [ Running agent setup ] What is the HQ server IP address: 192.168.1.11 这个是服务器IPShould 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.146]: 自动搜出本机IP 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 1304880316310-7629219473865430919-2070226055442958355 - Informing agent of new HQ server - Validating - Successfully setup agent [root@localhost bin]# ./hq-agent.sh restart