Versions Compared

Key

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

...

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

    Click Properties.
  2. The Connection Properties dialog is displayed. Click the Definition tab:


  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,

...

  1.  
    min(p.cpu_sys+p.cpu_usr+p.cpu_wio),

...

  1.  
    max(p.cpu_sys+p.cpu_usr+p.cpu_wio),

...

  1.  
    avg(p.cpu_sys+p.cpu_usr+p.cpu_wio),

...

  1.  
    min(p.free_mem), max(p.free_mem),

...

  1.  
    avg(p.free_mem)

...

  1.  
    FROM performance_aggregate p, performance_sample s, entity 

...

  1. WHERE p.sample_id = s.

...

  1. id 
    AND s.uptimehost_id = e.entity_

...

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

...

  1.  
    AND s.sample_time < now()

...

  1.  
    GROUP BY e.display_

...

  1. name 
    ORDER BY s.sample_time;

...

 

    Code Blocklanguagesql
  1. This sample query retrieves CPU- and memory-related data that was collected by up.time over the last seven days.

  2. 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 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.

 

...

Retrieving up.time Data in Excel 2007: Creating a New Database Connection

...