Jasper Report Integration Specification
Subscribe

From OpenNMS

Jump to: navigation, search

Contents

Jasper Report Integration

The OpenNMS softwareʼs reporting capabilities will be enhanced to support an extensible reporting API implemented on top of the JasperReports engine.

Strategy

  • Use JasperReports API to generate a report.
  • Report jobs are defined in reportd-configuration.xml
  • Reports are delivered via email using groups, users, or specified email addresses.

Acceptance Criteria

To verify the function of this User Story use the following steps

Step 1

Install the opennms-enterprise-reporting package.

Step 2

Copy any new report template(s) to $OPENNMS_HOME/etc/report-templates. Verify that the sample report is installed if you need it.

 ls $OPENNMS_HOME/etc/report-templates/sample-report.jrxml

Step 3

Configure the sample report to run every day at midnight.

Reportd Example Configuration
   <report report-name="sample-report" report-template="sample-report.jrxml" report-output="sample">
       <cron-schedule>0 0 0 * * ? *</cron-schedule> 
       <recipient>me@host.com</recipient>
   </report>

Step 4

Start OpenNMS

Step 5

Check email for me@host.com to verify report was received.