You are here: Viewpoint Reporting Overview
|
|
10.0 Viewpoint Reporting Overview |
Viewpoint has extended the BIRT Reporting Framework for report viewing and there are several standard reports that are available when Moab is configured to use the MySQL database.
Due to the memory intensive nature of reporting, Tomcat's permanent generation (PermGen) memory and heap space should be increased. Add the following configuration setting to your other JAVA_OPTS settings. For Ubuntu server this can be done in the /usr/share/tomcat6/bin/setenv.sh file with the following: export JAVA_OPTS="-Djava.awt.headless=true -Xmx1G -XX:MaxPermSize=256M" Check your specific tomcat platform documentation for other Unix/Linux systems. |
Moab must use an ODBC-compliant database to report statistics with Viewpoint reports. |
Once Moab is configured to use MySQL for statistics, configure Viewpoint to view standard reports by following these steps:
<permission name="report.read" />
<permission name="report.[category].[report_name]" />
The permission may have any name; however, organizing them according to the [category].[report_name] format is a best practice. Doing so makes managing user permissions easier. For example, when permissions are named this way, you can easily grant a user access all reports in a single category by replacing the report name with an asterisk (*) as in the following example: <permission name="report.[category].*" /> |
<menu label="Reporting"> <link href="page://Local;page=gsp/reporting/reporting.gsp" label="Reporting"> <permission name="report.read" /> </link> </menu>
<reporting xsi:schemaLocation="http://www.adaptivecomputing.com reporting.xsd"> <reports> <report> <display-name>Jobs Submitted</display-name> <report-design>jobs_submitted.rptdesign</report-design> <display-category>Adaptive</display-category> <category>adaptive</category> <description>Report for viewing submitted jobs by user, group, qos and account</description> <permission name="adaptive.jobs_submitted"></permission> </report> </reports> <database-connection type="mysql-jdbc"> <url>jdbc:mysql://localhost/Moab</url> <username>root</username> <password>root</password> <driver>com.mysql.jdbc.Driver</driver> </database-connection> </reporting>
<database-connection type="mysql-jdbc"> <url>jdbc:mysql://localhost/Moab</url> <username>root</username> <password>root</password> <driver>com.mysql.jdbc.Driver</driver> </database-connection>
type
of connection is mysql-jdbc
.url
> element contains a JDBC database connection URL to either your own database or Moab's ODBC database.username
> and <password
> elements are for the Moab ODBC database.driver
> element is the MySQL JDBC driver that you're using. Note that you must include the JDBC driver in the Viewpoint application WEB-INF/lib directory.The VM Lifecycle and Events reports require a script to convert data from the Moab event files. To install the script, do the following:
# cd /usr/moab-dist/contrib/events
# chmod u+x events2db.pl
# ./events2db.pl -m
Read the entire document. There is information in the manual not included here. |
# ./events2db.pl --dbname=Moab --dbuser=bob --dbpassword=p@ssw0rd --create-schema /opt/moab/stats
The script must complete successfully before you set up the crontab schedule. Running the script could take a good deal of time depending on how many events you have. |
# crontab -e
0 * * * * /usr/moab-dist/contrib/events/events2db.pl --dbname=Moab --dbuser=bob --dbpassword=p@ssw0rd /opt/moab/stats
This runs without the --create-schema option. |
For more information on crontab, see the crontab man page.
# man crontab |