This section provides setup and installation instructions for the optionalExplorer History database tier.
The Explorer History Database (MON-ExplorerHDB) service can be used to collect and analyze dataset and volume event records produced by the MON-RTM host component. Use this feature to research past events or for trending and capacity planning via the Explorer GUI application.
The MON-ExplorerHDB service runs on a Linux server. ExplorerHDB is written in Java and stores records produced by MON-RTM in a MySQL database.
System requirements
The Explorer history database tier components are Java applications and therefore can run on any platform that provides a Java Runtime Environment (JRE). Currently the components run on a Linux system. The following prerequisites are required prior to installing and running the Explorer history database.
Prerequisites
Follow the prerequisites list below.
Setup/start Expdbd daemon
Step 5a - Start expdbd at system start
From the PuTTY console, run:
chkconfig --add expdbd
Step 5b - Verify daemon autostart
From the PuTTY console, run:
chkconfig --list | grep expdb
Expected sample output (run levels 3, 4, 5 should be set to on):
# [root@centosnc expdb-120305]# chkconfig --list | grep expdb
# expdbd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
Step 5c - Start expdbd daemon
From the PuTTY console, run:
service expdbd start
Step 5d - Verify expdbd daemon status
From the PuTTY console, run:
service expdbd status
Sample expected output:
# [root@centosnc expdb-120305]# service expdbd status
# Checking for ExpDB: running PID=23663
Step 5e - Check expdbd log
From the PuTTY console, run:
tail /var/log/expdb.log
Step 5f - Final notes
- Use the
expdbcommand-line tool for testing only. - When running
expdbfrom the command line, output goes to the terminal (not to the log file). - Do not run
expdbandexpdbdsimultaneously; both cannot bind to the same port.
Example bind error:
Mar 6, 2012 4:30:28 PM - java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at com.dtssoftware.expdb.ExpDB.startTCPServer(ExpDB.java:92)
at com.dtssoftware.expdb.ExpDB.<init>(ExpDB.java:77)
at com.dtssoftware.expdb.ExpDB.main(ExpDB.java:174)
Typical commands for normal operations:
service expdbd status # determine expdbd daemon status
service expdbd stop # stop the expdbd daemon
service expdbd start # start the expdbd daemon
tail /var/log/expdb.log # view the bottom (last few records) of the expdb.log
- The
/var/log/expdb.logfile is maintained by logrotate. When the log reaches 1 MB a new log is created and the last 10 versions are saved.
Virtual machine with a pre-configured MON-ExplorerHDB
(See the VM section earlier for details on using the pre-configured virtual machine, port forwarding, and firewall configuration.)
Step 1 - Open the Connection Manager in the Explorer GUI
Open the Explorer GUI application. From the menu, choose the Connection Manager via:
The Connection Manager screen displays. Use the Connection Type drop-down to list configured Database connections. Database connections can be added, modified, or deleted using the buttons at the bottom of the dialog.
The Database Connection Manager dialog lists defined database connections and the default database connection. To manage connections, either right-click a connection item to display a popup menu or use the buttons at the bottom of the window.
- Add — Add a new database connection.
- Modify — Edit the selected database connection.
- Delete — Delete the selected database connection.
- Default History — Make the selected database the default history DB connection.
Step 2 - Add or modify a database connection
When you select Add or Edit, the Database Connection dialog is displayed.
|
|
- Name: The name used to identify the database connection.
- Host: Format: <hostname or IP>. Use 127.0.0.1 or localhost if MySQL resides on the same computer as the Explorer GUI.
- Username: The username used to connect to the MON-ExplorerHDB.
- Password: The password for the specified username.
- Database: File name of the MON-ExplorerHDB.
- Test Connection: Click this button to test the database connection as currently configured.
You must successfully test the connection before using the query functions.
Step 3 - Test the connection
When the appropriate values have been entered, click the Test Connection button. For a successful connection, the MySQL service must be installed, configured, and active on the target computer.
If the connection test is successful, a confirmation window is displayed:
|
|
Step 4 - Select a default history database connection
Use the Connection Manager to select the MySQL History database connection, then click the Default History button.