Recently, I took over the Server System Monitoring Project, the open-source software hyperic-hq, and installed the test environment. Hyperic HQ is an open-source IT management framework that allows users to manage various IT technologies on a unified interface.
:
Http://sourceforge.net/projects/hyperic-hq/files/
Http://www.hyperic.com/
I am using version 4.6, which has been officially updated to version 5.0.
When downloading the installation package, pay attention to the 32-bit and 64-bit options. Because my system is 64-bit, the following test software will use 64-bit. You can install it in your own environment.
1. Server installation:
Hyperic-hq-installer-4.6-x86-64-linux.tar.gz
Installation Steps
1. Create a hyperic user
# Useradd hyperic
2. Extract the downloaded file and move it to/var/lib/hyperic.
# Tar-zxvf hyperic-hq-installer-4.6-x86-64-linux.tar.gz
# Music hyperic-hq-installer-4.6/var/lib/
3 switching hyperic users
# Su-hyperic
$
4. Run
#/Var/lib/hyperic-hq-installer-4.6/setup. sh-postgresql
Follow the prompts to install
Hyperic-hq supports applying for MySQL, Oracle, postgresql, and other databases. For details, see the official documentation. I will briefly explain:
Default installation:/var/lib/hyperic-hq-installer-4.6/setup. sh will use the hyperic-hq built-in postgresql database
Supports other database installations:/var/lib/hyperic-hq-installer-4.6/setup. sh-full select the desired database in the interaction
Support postgresql database installation:/var/lib/hyperic-hq-installer-4.6/setup. sh-postgresql
Here I select to support postgresql database installation:
# 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 shoshould the username be for the initial admin user? [Default 'hqadmin']:
What shoshould the password be for the initial admin user? :
(Again ):
What shoshould 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...
Processing 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:
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:
/Var/lib/hyperic-hq-installer-4.6/installer/logs/hq-install.log
Deleting temporary JRE
Run the following command to report an error:
You must run this script as root:
/Var/lib/hyperic-hq-installer-4.6/installer/data/hqdb/tune-os.sh
5. After installation, switch to the root user startup command.
$ 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. Port 7443 is open to the client. Port 7080 is open to the ip address.
# 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
Ii. Client installation:
Package hyperic-hq-agent-4.4.0-1509-x86_64-linux.tar
Extract
# Tar-zxvf hyperic-hq-agent-4.4.0-1509-x86_64-linux.tar
# Music hyperic-hq-agent-4.4.0/root/soft/
Edit configuration file
# Vim/root/soft/hyperic-hq-agent-4.4.0/conf/agent. properties
# Add at the end:
Agent. setup. camIP = 192.168.138.1 # point to the server IP Address
Agent. setup. camPort = 7080 # Port
Agent. setup. camSSLPort = 7443
Agent. setup. camSecure = yes
Agent. setup. camLogin = hqadmin # Logon account
Agent. setup. camPword = hqadmin # logon Password
Agent. setup. agentIP = 192.168.138.134 # Client ip Address
Agent. setup. agentPort = 2144 # client listening port
#/Root/soft/hyperic-hq-agent-4.4.0/bin/hq-agent.sh start
3. browser Login
Http: // 192.168.138.1: 7080
At this time, the server will automatically display the client monitoring IP address and the monitoring items that come with the system.
If a monitoring project exception occurs (such as an exclamation point), check whether the time on the server and the client is the same.
This is just the beginning, and a lot of research needs to be done in the future ......