Reports

The Reporting module brings report creation and automation capabilities to Opsview Monitor SMB, Enterprise and MSP plans (optional module for Opsview Monitor SMB customers). Based on JasperReports, the module creates and distributes professional-looking reports to your customers and staff.

Dependencies

It requires java up to version 7 and MySQL or MariaDB.

Installation

Refer to Reports Module (Optional).

Management

Configuration

DPKGs

Watchdog service files are now managed by the package, doing a remove would leave the watchdog service file behind with a .save extension. Purging the package will remove it. The package managed config file:

/opt/opsview/watchdog/etc/services/opsview-reportingmodule.conf

RPMs

Watchdog service files are now managed by the package. Any modifications will be saved at upgrade and remove time.

/opt/opsview/watchdog/etc/services/opsview-reportingmodule.conf

Service administration

As root, start, stop and restart the service using:

/opt/opsview/watchdog/bin/opsview-monit <start|stop|restart> opsview-reportingmodule

Administration tools

Set up the reports environment variables to facilitate in using the proceeding tools:

su - opsview
cd /opt/opsview/jasper/
source ./bin/rc.java

Backup the ODW datasource information

./buildomatic/js-export.sh --uris /datasources --output-zip /var/tmp/reports-datasource-backup.zip

Backup the scheduled reports information

./buildomatic/js-export.sh --report-jobs --output-zip /var/tmp/reports-jobs-backup.zip

Export reports

./buildomatic/js-export.sh --uris /reports --output-dir /var/tmp/reports
./buildomatic/js-export.sh --uris /reports --output-zip /var/tmp/reports.zip

Update reports with modified content

./buildomatic/js-import.sh --input-dir /var/tmp/reports --update

Restore Scheduled jobs and Datasources

./buildomatic/js-import.sh --input-zip /var/tmp/reports-jobs-backup.zip --update
./buildomatic/js-import.sh --input-zip /var/tmp/reports-datasource-backup.zip --update
["Opsview"] ["User Guide"]

Was this topic helpful?