Hyperic HQ installation

Create user hyperic with home directory
[root@drash ~]# useradd hyperic -m -b /home/ -p password

Execute hyperic installer script
[jandra@drash ~]$ /home/jandra/Downloads/hyperic-hq-installer-4.6.6/installer/bin/hq-setup.sh
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.6 Installation…
Choose which software to install:
1: Hyperic HQ Server
2: Hyperic HQ Agent
You may enter multiple choices, separated by commas.
1,2
HQ server installation path [default ‘/home/hyperic’]:

Enter the email address that HQ will use as the sender for email messages [default ‘hqadmin@168.1.106’]:
jan.drasnar@gmail.com
Choices:
1: Yes
2: No
Would you like to use an auto generated encryption key to encrypt the database password? [default ‘1’]:

What should the username be for the initial admin user? [default ‘hqadmin’]:

What should the password be for the initial admin user?:
(again):
What should the email address be for the initial admin user? [default ‘jan.drasnar@gmail.com’]:

HQ agent installation path [default ‘/home/hyperic’]:

Loading install configuration…
Install configuration loaded.
Preparing to install…
Validating agent install configuration…
Validating server install configuration…
Checking server webapp port…
Checking server secure webapp port…
Verifying admin user properties
Validating server DB configuration…
Installing the agent…
Looking for previous installation
Unpacking /home/jandra/Downloads/hyperic-hq-installer-4.6.6/hyperic-hq-agent-4.6.6-x86-linux.tar.gz to: /home/hyperic/agent-4.6.6…
Setting permissions on /home/hyperic/agent-4.6.6…
Setting permissions on agent binaries…
Fixing line endings on text files…
——————————————————————————–
Installation Complete:
Agent successfully installed to: /home/hyperic
——————————————————————————–
You can now start your HQ agent by running this command:

/home/hyperic/agent-4.6.6/bin/hq-agent.sh start
Installing the server…
Unpacking server to: /home/hyperic…
Creating server configuration files…
Using “small” installing profile…
Copying binaries and libraries to server installation…
Copying server configuration file…
Copying server db-upgrade files…
Copying server libs…
Setting up server database…

Now login to another terminal as root and execute this script:

/home/jandra/Downloads/hyperic-hq-installer-4.6.6/installer/data/hqdb/tune-os.sh

This script sets up the proper shared memory settings to run the
built-in database.

Press Enter after you run the script to continue this installation.

Setting up JDBC driver…
Copying database files…
Configuring 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 x86-linux-1.6_30.tar.gz to: /home/hyperic/server-4.6.6…
Setting permissions on /home/hyperic/server-4.6.6…
Setting permissions on server binaries…
Fixing line endings on text files…
——————————————————————————–
Installation Complete:
Server successfully installed to: /home/hyperic/server-4.6.6
——————————————————————————–

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

/home/hyperic/server-4.6.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 at:

http://192.168.1.106:7080/
username: hqadmin
password: xxxxxxx

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:
/home/jandra/Downloads/hyperic-hq-installer-4.6.6/installer/logs/hq-install.log

Deleting temporary JRE
[jandra@drash ~]$

Error encountered in logs directory
[root@drash logs]# tail -f wrapper.log
STATUS | wrapper | 2013/10/31 20:43:15 | Launching a JVM…
INFO | jvm 1 | 2013/10/31 20:43:16 | WrapperManager: Initializing…
INFO | jvm 1 | 2013/10/31 20:43:18 | invalid binary “/home/hyperic/server-4.6.6/hqdb/bin/pg_ctl”
INFO | jvm 1 | 2013/10/31 20:43:18 | pg_ctl: cannot be run as root
INFO | jvm 1 | 2013/10/31 20:43:18 | Please log in (using, e.g., “su”hat will
INFO | jvm 1 | 2013/10/31 20:43:18 | own the seged) user that will
INFO | jvm 1 | 2013/10/31 20:43:18 | own the server process.
INFO | jvm 1 | 2013/10/31 20:43:38 | [HQServer.main(start)]: Shutdown of type ‘AbnormalStop’ was request
INFO | jvm 1 | 2013/10/31 20:43:39 | [HQServer.main(stop)]: Shutdown of type ‘NormalStop’ was request
STATUS | wrapper | 2013/10/31 20:43:40 | <– Wrapper Stopped

some progress
[jandra@drash ~]$ /home/hyperic/server-4.6.6/bin/hq-server.sh start
Starting HQ Server…
[jandra@drash ~]$ /home/hyperic/server-4.6.6/bin/hq-server.sh status
HQ Server is running (PID:31607).

Once you get server.log up and running you are OK
[hyperic@drash logs]$ ls -ltr
total 192
-rwxr-xr-x. 1 jandra jandra 0 Jun 10 2012 server.log.2012-06-10
-rwxr-xr-x. 1 root root 15414 Oct 31 20:43 bootstrap.log
-rwxr-xr-x. 1 root root 4128 Oct 31 20:43 wrapper.log
-rwxr-xr-x. 1 jandra jandra 266 Oct 31 20:52 hqdb.log
-rwxr-xr-x. 1 jandra jandra 42996 Oct 31 20:53 hqdb-2013-10-31.log
-rw-r–r–. 1 jandra jandra 120176 Oct 31 20:55 server.log
[hyperic@drash logs]$ tail -5 server.log
31-10-2013 20:55:34,437 CET INFO [main] [org.springframework.web.servlet.view.tiles2.TilesConfigurer@222] TilesConfigurer: adding definitions [/WEB-INF/jsp/**/tiles.xml]
31-10-2013 20:55:34,459 CET INFO [main] [org.apache.tiles.context.AbstractTilesApplicationContextFactory@76] Initializing Tiles2 application context. . .
31-10-2013 20:55:34,462 CET INFO [main] [org.apache.tiles.context.AbstractTilesApplicationContextFactory@95] Finished initializing Tiles2 application context.
31-10-2013 20:55:34,537 CET INFO [main] [org.apache.tiles.access.TilesAccess@113] Publishing TilesContext for context: org.springframework.web.servlet.view.tiles2.SpringTilesApplicationContextFactory$SpringWildcardServletTilesApplicationContext
31-10-2013 20:55:34,566 CET INFO [main] [org.springframework.web.servlet.DispatcherServlet@320] FrameworkServlet ‘webapp’: initialization completed in 1254 ms

don’t forget to start your agent
[jandra@drash bin]$ pwd
/home/hyperic/agent-4.6.6/bin
[jandra@drash bin]$ ./hq-agent.sh status
HQ Agent is not running.
[jandra@drash bin]$ ./hq-agent.sh start
Starting HQ Agent…… running (1839).
[ Running agent setup ]
What is the HQ server IP address: 192.168.1.106
Should Agent communications to HQ always be secure [default=yes]:
What is the HQ server SSL port [default=7443]:
– Testing secure connection … Success
What is your HQ login [default=hqadmin]:
What is your HQ password:
What IP should HQ use to contact the agent [default=67.215.65.132]: 192.168.1.106
What port should HQ use to contact the agent [default=2144]:
– Received temporary auth token from agent
– Registering agent with HQ
The server to agent communication channel is using a self-signed certificate and could not be verified
Are you sure you want to continue connecting? [default=no]: yes
– HQ gave us the following agent token
1383250406252-7884159535797568064-7840151640642023315
– Informing agent of new HQ server
– Validating
– Successfully setup agent

Configure SNMP V3
http://docs.fedoraproject.org/en-US/Fedora/16/html/System_Administrators_Guide/sect-System_Monitoring_Tools-Net-SNMP-Configuring.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s