06.05.2013 Views

The eG Installation Guide - eG Innovations

The eG Installation Guide - eG Innovations

The eG Installation Guide - eG Innovations

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Installing and Configuring on Windows Environments<br />

3.23 Configuring Applications for Monitoring by <strong>eG</strong> Agents<br />

3.23.1 Configuring a DB2 Database Server<br />

For monitoring an IBM DB2 Universal database server on Windows environments, the DB2 PerfMonitor<br />

has to be started. On Windows 2000, the <strong>eG</strong> DB2 PerfMonitor runs as a service.<br />

To create this service, the users need to run the following command:<br />

\lib\egdb2mon.bat <br />

where indicates the DB2 instance name and indicates the port number associated<br />

with the Db2 server. On successful execution, a service called <strong>eG</strong>urkha DB2 Perfmonitor is<br />

created for monitoring that specific instance of DB2.<br />

Note:<br />

Restart of the DB2 host is mandatory to ensure that the DB2 PerfMonitor service is successfully<br />

created. To enable service creation without system restart, do the following:<br />

After installing the <strong>eG</strong> agent, go to the \lib directory and manually set<br />

the value for the EG_INSTALL_DIR environment variable in the egdb2mon.bat file.<br />

<strong>The</strong>n, run egdb2mon . This will create a new<br />

file called db2.bat. Edit this batch file, set the<br />

value for EG_INSTALL_DIR, and save the file.<br />

Once the service is created, follow the steps given below to start the service (Steps 3-5 are to be<br />

executed for the first time only):<br />

1. Go to Control Panel > Services<br />

2. In the list of services, click on <strong>eG</strong>urkha DB2 Perfmonitor <br />

3. Click the Startup button available in the Services panel to open the Service panel for the<br />

selected service.<br />

4. Click on the This Account radio button at the bottom of the Service panel<br />

5. Enter the username and password of the DB2 admin user in the corresponding text boxes<br />

under the This Account radio button and click the OK button at the bottom of the panel.<br />

6. Start the selected service by clicking the Start button in the Services panel.<br />

3.23.2 Configuring a MySQL Database Server<br />

An <strong>eG</strong> agent can monitor a MySQL database server and return performance metrics only when a<br />

MySQL connector is available in the /lib directory (in Unix, this would be /opt/egurkha/lib<br />

directory). To obtain this web connector, do the following:<br />

1. Go to the URL: http://www.mysql.com/.<br />

2. Click on the Downloads tab at the top of the page that appears (see Figure 3.309).<br />

370

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!