Welcome to docs.opsview.com

Using Graphical Report Designer


iReport is the graphical designer for creating the XML to run a Jasper report.

Download iReport from: http://sourceforge.net/projects/ireport/

We used iReport 3.7.4 and 4.0.1

Running iReport (in Ubuntu Linux)

  • Download the linux version of iReport (tar.gz file).
  • Extract the files into a folder.
  • Copy the file /usr/lib/jvm/java-6-sun- into libs folder in ireport folder of the extracted folder.
  • In command line type, get inside iReport-3.7.4/bin

This should run the iReport standalone application. Details about running iReports in Linux available at Installing iReport

iReport Help

Help regarding using iReport is available at iReport Tutorials & Help.

Deploying Report on JasperServer

  • Create a new .jrxml file using iReport.
  • In JasperServer (Refer Opsview Reporting Module for details on JasperServer), click on 'Add Resource' icon and then JasperServer report.
  • The rest of the steps are self-explanatory. Give link to the new .jrxml file when prompted for.

Notes on using iReport

Can be slow. Watch out for changes that are not in sync (ie, if you change the XML, need to ensure that the Designer section has acknowledged the changes). Elements are not always obvious.

Make sure the following windows are available:

  • Report Inspector - access to report objects (lots of things unavailable unless this is open, like adding groups or adding parameters)
  • Properties - will list things that can be changed for an particular object

To add a new group, right click on “report name”.

When charting data, use a time series chart. You then have to right click on the chart element and enter the necessary data:

  • Dataset:
    • Reset type: group
    • Reset group: hostnameservicename
    • Increment group: none
  • Details:
    • Time period: hour (this may be different between a weekly and a monthly report)
    • Add a time series
      • Series expression: $F{perf_label}
      • Time period expression: $F{datetime}
      • Value expression: $F{value}

WARNING: The graph takes the last value in each hour, rather than an average value. This is why some graphs which change frequently (such as ping rta) do not make sense. You will need to do the consolidation at the SQL level to guarantee what the graph should look like.

If you have problems where the category name is too large, switch the style to aegen, which puts the categories in a slanted line.

repo versus local filesystem

This is a useful trick so that the same report can run in iReport as on the Jasper Server. Involved getting a variable called isOnJS which can then be used to work out other parameters.


However, this trick doesn't work from Jasper Server 3.7.0 onwards. The isOnJS parameter needs to be manually changed.