Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
Overview
maxLevel
Before You Begin
Retrieving Uptime Infrastructure Monitor Data in Excel 2010: Creating a New Database Connection Retrieving Uptime Infrastructure Monitor Data in Excel 2010: Querying an Established Database Connection Retrieving Uptime Infrastructure Monitor Data in Excel 2007: Creating a New Database Connection Retrieving Uptime Infrastructure Monitor Data in Excel 2007: Querying an Established Database Connection
Image Removed Retrieving Uptime Infrastructure Monitor Data in Excel 2003

...

2
minLevel2

...

While Uptime Infrastructure Monitor has a powerful reporting function, you may want to generate reports that use a specific set of data and/or put that data into a custom report format. Using Microsoft Excel, you can take data from the up.time UIM DataStore and use that data to create a report that specifically suits your requirements.

...

Before you begin

If you have not already done so, install the MySQL ODBC driver and create a data source to access the up.time UIM DataStore. This article assumes you have performed these steps. For more information, see the see Connecting to the up.time Uptime Infrastructure Monitor DataStore via ODBC Knowledge Base article.

...

...

Retrieving UIM data in Excel 2010: Creating a

...

new database connection

To Follow these steps to establish the Uptime Infrastructure Monitor DataSource as an external data source for use in Excel 2010:

  1. Start Microsoft Excel 2010.
  2. # Open the Data Connection Wizard : click on Data on by going to the menu bar, click on and then clicking Data > From Other Sources, then click > From Data Connection Wizard.
    Image Modified

...

  1. The Data Connection

...

  1. wizard appears

...

  1. .
    Image Added
  2. Select ODBC DSN as the type of data source you want to use to make a connection, and then click click Next.
  3. In the next Wizard step, select the Uptime Infrastructure Monitor UIM ODBC data source, and then click click Next. The name of the data source in the list is the name you gave the

...

  1. UIM DataStore when

...

  1. you created its profile in the ODBC Data Source Administrator

...

  1. control panel.
  2. Image Removed
    In the next step, select a database and specific table from the data source:.
    Image Added
    The database name you select is the name you gave to the

...

  1. UIM DataStore when

...

  1. you created its profile in the ODBC Data Source Administrator

...

  1. control panel. The database table you select depends on the type of

...

  1. UIM data you want to import into Excel (in this example, we are importing aggregate performance data).
  2. In the final Wizard step, remember the Friendly Name assigned to this connection profile, then click Finish to save the database connection profile.
    Info

...

  1. Now that you

...

  1. created an Office database connection (.odc) file for the

...

  1. UIM database and specified table, you

...

  1. can use this existing connection to perform new database queries in future Excel sessions (on the Data tab, in the Get External Data group, click Existing Connections, then select the connection by clicking the Friendly Name). When you begin to work with data using an existing connection, Excel

...

  1. prompts you with the Import Data dialog box, which you can use to modify your database query.

...

  1. When you create a connection to the

...

  1. UIM database for the first time, you

...

  1. are always

...

  1. prompted with

...

  1. the Import Data

...

  1. dialog box; this dialog box is described in the next section.

...

...

Retrieving UIM data in Excel 2010: Querying an

...

established database connection

To Follow these steps to import data from an Uptime Infrastructure Monitor a UIM DataSource into Excel 2010:

  1. Whenever you finish creating a connection profile to the up.time UIM DataStore, or open an existing connection profile, the Import Data dialog is displayed:
    Image Modified

...

  1. Click Properties.

...

  1. Image Removed
    The Connection Properties dialog is displayed.
  2. Click the Definition tab:.
    Image Added
  3. In the Command text box, enter the SQL statement that retrieves the data you wish to use in Excel. For example:
    Code Block
    languagesql
    SELECT e.display_name, 
    min(p.cpu_sys+p.cpu_usr+p.cpu_wio), 
    max(p.cpu_sys+p.cpu_usr+p.cpu_wio), 
    avg(p.cpu_sys+p.cpu_usr+p.cpu_wio), 
    min(p.free_mem), 
    max(p.free_mem), 
    avg(p.free_mem)

...

  1. 
    FROM performance_aggregate p, performance_sample s, entity e 
    WHERE p.sample_id = s.id

...

  1. 
    AND s.uptimehost_id = e.entity_id

...

  1. 
    AND s.sample_time > DATE_SUB(now(), INTERVAL 7 DAY) 
    AND s.sample_time < now()

...

  1. 
    GROUP BY e.display_name 
    ORDER BY s.sample_time;
    This sample query retrieves CPU- and memory-related data that was collected by Uptime Infrastructure Monitor over the last seven days.
  2. Click Click OK.
  3. # If you are prompted with the ODBC 3.51 Connector dialog box, ensure your user and password information is correct, then click click OK.
    Once your queried data is in an Excel sheet, you can work with it as required. The example below is an inserted table displaying CPU usage highs, lows and averages for all monitored systems over the last seven days.
    Image Modified

...

Retrieving

...

UIM data in Excel 2007: Creating a

...

new database connection

To establish the UIM Follow these steps to establish the Uptime Infrastructure Monitor DataSource as an external data source for use in Excel 2007:

  1. Start Microsoft Excel 2007.
  2. Open the Data Connection Wizard : on the Data by going to the Data tab, and in the the Get External Data group, click From Other Sources, then click  > From Data Connection Wizard. The Data Connection Wizard appears

...

  1. .
    Image Modified
  2. Select Select ODBC DSN as the type of data source you want to use to make a connection, and then click click Next.In the next Wizard step, select the Uptime Infrastructure Monitor
  3. Select the UIM ODBC data source, and then click click Next. The name of the data source in the list is the name you gave the

...

  1. UIM DataStore when you created its profile in the ODBC Data Source Administrator

...

  1. control panel.
  2. In the next step, select a database and specific table from the data source:.

    The database name you select is the name you gave to the up.time UIM DataStore when you you created its profile in the ODBC Data Source Administrator Control Panelcontrol panel. The database table you select depends on the type of Uptime Infrastructure Monitor UIM data you want to import into Excel (in this example, we are importing aggregate performance data).
  3. In the final Wizard step, remember the the FriendlyName assigned to this connection profile, and then click click Finish to save the database connection profile.

...

Info

Now that you

...

created an Office database connection (.odc) file for the

...

UIM database and specified table, you

...

can use this existing connection to perform new database queries in future Excel sessions (on the Data tab, in the Get External Data group, click Existing Connections, then select the connection by clicking the Friendly Name). When you begin to work with data using an existing connection,

...

Excel  prompts you with the Import Data dialog box, which you can use to modify your database query.

When you create a connection to the Uptime Infrastructure Monitor UIM database for the first time, you will always be are prompted with the Import Data
dialog box; this dialog box is described in the next section.

...

Retrieving UIM data in Excel 2007: Querying an

...

established database connection

To Follow these steps to import data from an Uptime Infrastructure Monitor a UIM DataSource into Excel 2007:

  1. Whenever you finish creating a connection profile to the up.time UIM DataStore, or open an existing connection profile, the Import Data dialog is displayed.

...

  1. Image Modified

...

  1. Click Properties.

...

  1. Image Removed
     The Connection Properties dialog is displayed.
  2. Click the Definition tab:.
    Image Added
  3. In the the Command text box, enter the SQL statement that retrieves the data you wish to use in Excel. For example:
    Code Block
    languagesql
    SELECT e.display_name, 
    min(p.cpu_sys+p.cpu_usr+p.cpu_wio), 
    max(p.cpu_sys+p.cpu_usr+p.cpu_wio), 
    avg(p.cpu_sys+p.cpu_usr+p.cpu_wio), 
    min(p.free_mem), 
    max(p.free_mem), 
    avg(p.free_mem)

...

  1. 
    FROM performance_aggregate p, performance_sample s, entity e 
    WHERE p.sample_id = s.id

...

  1. 
    AND s.uptimehost_id = e.entity_id 
    AND s.sample_time > DATE_SUB(now(), INTERVAL 7 DAY) 
    AND s.sample_time < now()

...

  1. 
    GROUP BY e.display_name 
    ORDER BY s.sample_time;
    This sample query retrieves CPU- and memory-related data that was collected by

...

  1. UIM over the last seven days.
  2. Click Click OK.
  3. If you are prompted with the ODBC 3.51 Connector dialog box, ensure your user and password information is correct, then click click OK.
    Once your queried data is in an Excel sheet, you can work with it as required. The example below is an inserted table displaying CPU usage highs, lows and averages for all monitored systems over the last seven days.

    Anchor_bookmark40_bookmark40

Retrieving

...

UIM data in Excel 2003

...

To establish the

...

UIM DataSource as an external data source for use in Excel 2003

...

  1. Start Microsoft Office Excel 2003.
  2. On the Data menu, click Import External Data, and then click click New Database Query. The Choose Data Source dialog box is displayed:.Image Modified
  3. On the Databases tab, select the

...

  1. UIM ODBC data source.

...

  1. The name of the data source in the list is the name you gave the

...

  1. UIM DataStore when you created its profile in the ODBC Data Source Administrator Control Panel (in this example, the database is simply named "uptime").

...

  1. Click OK.

...

  1. The Query Wizard appears:.
  2. Choose the columns (and tables) to include in your query, and then click click Next.
  3. For the Filter the Filter Data Wizard step, if desired, provide specific rows to include in your query, then click Next.
  4. For the Sort the Sort Order Wizard step, if desired, indicate how the data will be sorted, then click Next.
  5. On the final Wizard step, opt to to View data or edit query in Microsoft Query, then click Finish. The Import Data dialog box is displayed:.
    Image Modified
  6. Click Edit Query to open Microsoft Query and preview the retrieved data

...

  1. .
    Image Modified
  2. Click the the View menu, then click SQL to display the query. The columns you selected in the Query Wizard (step 4) will be displayed as the SQL statement:.
    Image Modified
  3. Edit the SQL statment statement to refine which of the data from the selected columns will be used in the Excel sheet, then click OK to return to Microsoft Query.
  4. Click Click File, then click Return Data to Microsoft Office Excel.

Once your queried data is in an Excel sheet, you can work with it as required.