Skip navigation
Currently Being Moderated

2.5 Configuring Analytics

VERSION 4  Click to view document history
Created on: Oct 12, 2011 11:51 AM by Zenoss API - Last Modified:  Oct 12, 2011 12:02 PM by Zenoss API

 5. Configuring Analytics

To configure Analytics, you must:

 5.1. Configure the Analytics Host Server

To configure the Analytics host server:

  1. From the  Resource Manager interface navigation bar, select Reports > Configuration.

    The Analytics configuration page appears.

  2. In the Internal URLs area, enter the URLs that  Resource Manager and Analytics will use to communicate directly:

    • Analytics - Enter the fully qualified domain name for the Analytics server.

    •  Resource Manager - Enter the fully qualified domain name for the  Resource Manager server.

  3. In the External URLs area, enter the links that will be displayed to users in each of the applications:

    • Analytics - Enter the complete URL, including port number, to Analytics.

    •  Resource Manager - Enter the complete URL, including port number, to  Resource Manager.

  4. Click Submit.

    After the Analytics server is saved, the configuration page redisplays with the currently scheduled report jobs.

     

    Figure 2.3. Scheduled Jobs

    Scheduled Jobs

 5.2. Configure Database Credentials

When Analytics is installed it configures a JDBC data source for the reporting database.

To change database settings in Analytics:

  1. On the Analytics Getting Started page, click View Reports.

  2. In the Refine area, change the Reports item to "Data sources."

  3. In the JDBC Data Sources area, right-click the  Resource Manager Reporting data source, and then select Edit from the list of options.

  4. After editing, click Test connection to verify the changes are valid.

  5. Click Save.

 5.3. Export Data Point Data

To export data point data (for example, RRD performance metrics), you can:

  • Manually modify each data point

  • Add all data points

    Note

    Adding all data points increases the loading time for adding performance data to Analytics. If too much performance information is sent, then the processing time may exceed eight hours, which is the default window of starting the next load of sending more data. Unless server resources (both  Resource Manager and Analytics) are abundantly supplied, sending all data can interrupt normal operations.

Export data point data by using one of the following methods.

 Manually Modify Each Data Point

  1. Navigate to the RRD template. From the  Resource Manager interface navigation bar, select Advanced > Monitoring Templates.

  2. In the Data Sources area, expand the data source to see the associated data points.

  3. Double-click the data point.

    The Edit Data Point dialog appears.

  4. Add an alias for the data point.

    Tip

    You can use the same name as the data point. No formula is required.

  5. Click Add, and then click Save.

 Add All Data Points

  1. Enter this command to add all data points:

    zendmd --script=$ZENHOME/ZenPacks/ZenPacks.zenoss.ZenETL*/Z*/z*/Z*/add_aliases.zendmd --commit
  2. Export data. (Data export will occur automatically every eight hours, but you can initiate an ETL immediately from the user interface.)

    1. From the  Resource Manager interface, select Reports > Configuration.

    2. Click (Add).

    3. Do not choose a collector. (No selection defaults to all collectors.)

    4. For date range, select yesterday to today. Be sure not to select a range that includes a future date.

    5. Click Submit.

    6. Refresh the page to see the created batches.

      On future page refreshes, they will transition from "Unstarted" to "In Progress," and then to "Finished."

    Tip

    For status, you can view the zenperfetl log (zenperfetl.log).

 5.4. Configure Email Services

If you want to send the output of scheduled reports as email attachments, you must configure email services. To do this:

  1. Enter the following command to edit the js.quartz properties file:

    service zenoss_analytics_configure_mail_server
  2. Change the "host" and "from" values in the file.

    report.scheduler.mail.sender.host=localhost 
    report.scheduler.mail.sender.username= 
    report.scheduler.mail.sender.password= 
    report.scheduler.mail.sender.from=zenoss@localhost 
    report.scheduler.mail.sender.protocol=smtp 
    report.scheduler.mail.sender.port=25 
  3. Save the file.

  4. Restart Analytics for the changes to take effect:

    service zenoss_analytics restart
Comments (1)