Table of Contents

Reports

Reports

The information to be presented within a report is organized into report elements. There are different types of elements that perform calculations and display information in very different ways.

Although they generally have a very similar configuration form, each type of element will be configured separately. You may have as many type and style items as you need.

  • Pandora FMS simplifies monitoring management through user permissions. There are several permission systems that restrict what users can see or manage. The most important one is the groups concept (either groups predefined by Pandora FMS and/or custom groups) combined with the profile of each user. Pay special attention to the notes about the ALL group throughout the documentation.
  • In version 771 and later, the “Enterprise ACL System” has specific options enabled for administration and report management with custom user profiles to suit any need.

Creating a report

Menu Operation → Reporting → Custom reports → Create report. A form will be presented, where the name of the report must be indicated, (Name) and select the group (Group) the report will belong to, and also whether the report is private or not (Write access) with its description (optional).

In the Write access field you will be able to choose the report editing rights:

By default the report will be interactive (checked as No in Non-interactive Report). By checking a report as non-interactive, the report can only be sent by email. The options to create a cover page (Generate cover page in PDF render) and an index (Generate index in PDF render) when generating a PDF from the report are also enabled.

Click Save to save. Once done you will have an empty report ready to add elements to it by means of the icons arranged on the edit form.

Version 770 or later: In the List of reports, by clicking on the corresponding icon in the HTML column (except if the report is not interactive), you will be able to see the filters and the report itself on the screen. The report can be added (or removed) to your list of favorite reports by clicking on the star icon next to the report name.

Report management

Menu Operation → Reporting → Custom reports → Reports.

In the list of registered reports, for each item, in the Op. column you have the options of:

Main data tab

It is the only one available when creating a new report, since the basic data of the report is defined here. Once saved properly, you will have access to the rest of the tabs. These fields are the same for both report creation and editing.

When finished creating or editing, click Update to save the field data.

List Items tab

An overview of all items that make up a report is displayed. Use the Filters subsection to search among the items recorded in the report; for example displaying the Agents list will display the agents recorded in that selected report.

The Agent and Module columns appear blank for some item types (e.g. S.L.A or Text): that is completely normal.

The items in the list will appear following the order in which they will be displayed in the report, this order can be modified in the Sort items subsection (or deleted in the Delete items subsection, see Op. column).

Item editor tab

Clicking Item editor will allow you to create a new item for the selected report.

The form is dynamic according to the type of item (Type) to create. If you are editing you may modify all fields except for type.

If you need to change the type, the way to do it is to delete the current one and create it again with the same settings.

The fields common to all types are:

The fields are filled in according to the type of item selected and to save click Create item.

Saving an item adds a new item but if the just created item has more configurable options, then the button Update item will appear.

Types of items

There are different report types:

In addition, in the Global tab you may add several additional report types.

Wizard tab

This tab allows you to create a full report automatically and with a few clicks. By applying common configurations, it is possible to generate elements applied to multiple agents and/or modules.

Again this form is dynamic according to the report type chosen in the Type list:

Once the type of report, the period, the agents and, if necessary, the modules have been selected, by clicking on the Add button as many items will be generated in the report as agents and/or modules have been selected.

SLA-Wizard tab

This wizard allows you to specifically create SLA report items automatically.

You will be able to choose the value validity ranges of the modules to be selected. This feature will allow you to check the time percentage a module maintained values within specific ranges.

If no thresholds are defined, they will be dynamically adjusted to the criticality thresholds of each module.

Even if the person creating the report item does not explicitly belong to the group (ALL), you may still assign the ALL group as a filter of Agents from which to choose Modules.

Global Tab

In this report section you may create type elements:

That way you may add different modules from different agents, in addition to being able to choose the operation to be performed in each module: summation, average, minimum, maximum.

Even if the person creating the report item does not explicitly belong to the group (ALL), you may still assign the ALL group as a filter of Agents from which to choose Modules.

Once the parameters have been chosen and the Add button is clicked, a report item containing the selected agents and modules will be created.

Advanced options Tab

By default pandora_log.jpg will be used. You may select from the drop-down list any of the possible logos to decorate the header of each PDF page. This list is built from the image files contained in the directory:

/var/www/html/pandora_console/images/custom_logo/

You may add the image files to this directory. They must have the correct permissions so that the user with which the web service is provided has access to these files, by default apache:apache.

Macros

To reuse editing templates, you may use the following macros in rich text fields:

View report tab

This tab displays the report in HTML format, and it is the same as the HTML view option included in the list of registered reports.

Viewing a report

Menu Operation → Reporting → Custom reports → icon List of reports.

Reports can be displayed in HTML, XML, PDF, JSON or CSV format by clicking on the corresponding icons for each column and report item.

To send them by e-mail, click on the corresponding icon in the E-mail column and a pop-up form will open where the recipient(s) and optionally a subject field and a message field will be displayed.

If you need to send the same report to several recipients, separate the addresses by commas.

Exporting and importing reports

See section for importing and exporting in PRD format.

Automatic report scheduling

To create scheduled reports use the Operation → Reporting → Custom reports → Custom reports → Schedule menu with the Send custom report by e-mail option from the drop-down list in Task. The interface is the same for creating or editing a scheduled report (except for the Create report or Update schedule button to save an edit).

Automatic report scheduling is also included in the Console tasks.

To find out if scheduled report forwarding is enabled, check their status by means of the Console tasks.

Some common fields:

  1. Scheduled: Periodicity of the task: daily, monthly, etc. or once only (Not scheduled, see next item).
  2. Next execution: Next execution of the task, select date in the first field and time in the second field (pop-up menu when clicking on each).
  3. Report pending to be created: From the registered reports, select the one to be sent.
  4. Report Type: Type of report to be sent (XML, etc.). If you select Send custom report (from template) by email in the Task list, additionally configure:

For e-mail forwarding to work, the following must be done previously configured in Pandora FMS forwarding options.

If Save to disk in path is selected, the path to be saved in the report and, optionally, a prefix for the file names must be specified.

Report templates

Report templates are components that allow parameterizing the creation of reports that can later be applied on a set of agents.

Each element of the templates will search for a match with an agent and/or module by means of a regular expression or a substring, making this system very flexible.

When creating a report template, a number of elements are defined. These defined elements are the same report items that are defined for a report.

The difference is that each of these template items will generate one or more report items, provided that when applying the template there is a match with any of the chosen agents and/or modules.

Create template

Menu Operation → Reporting → Custom Reports and click on the icon List of templates in the upper right corner, right next to the List of reports icon. Then click Create template:

To save the template when you finish filling in the fields, click Save.

Item editor

By clicking the icon item editor new items may be created within the screen.

The item types are the same ones as those of reports, except that when applyed to an agent or module, this one will be chosen as a regular expression. For example, oracle_agent.* it may correspond the agents: oracle_agent_1, oracle_agent_2, oracle_agent_producción, etc.

In case of leaving the field empty, the template item may be applied on all agents when applying the report template.

When a module is specified, this one may be literally interpreted by enabling the verification checkbox Module exact match. If not activated, it will use the matching standard method by regular expression.

List of items

Menu Operation → Reporting → Custom reports → icon List of templates → button Edit template → icon List items.

In the item list section you may see and edit the items created within the template and modify their order as well as delete them.

Advanced template options

Menu Operation → Reporting → Custom reports → icon List of templates → button Edit template → icon Advanced options.

In this section you may configure visual aspects of the resulting report such as font, logo, header, first page or report footer, as you would do with a standard report.

Once you have finished editing the visual aspects, click Update to save the changes.

Template management

Menu Operation → Reporting → Custom Reports and click on the List of templates icon.

Direct application of a report template

Menu Operation → Reporting → Custom reports → icon List of templates. Then in each template there are buttons for each display: HTML, JSON, and so on. Clicking on one of them will open the form Generate a dynamic report which will only bring the consultation written in Agents to apply when the template was created.

Template Wizard

You may make use of the template wizard (Template Wizard) if you need to instantiate a report template in a real report to have it available in Pandora FMS report list:

The Create report per agent check box can be activated to generate a report for each selected agent. If it is not checked, a general report with all information will be generated.

Report cleaning

The Report template wizard is used to delete reports created in previous applications from a template.

There select a template from the Templates drop-down list and then click on the delete button (broom icon).

This action will delete all reports created based on this template, automatically.

Enterprise ACL system focused on reporting

Version 771 or later.

By means of the “Enterprise ACL System” it is possible to create custom profiles with which you may assign viewing, modification, creation and deletion permissions for reports.

To do this, go to the ACL Enterprise System settings (Management → Profiles → Enterprise ACL setup), select the profile the permissions are to be assigned to from the drop-down list at User profile.

Select Reporting in Section and then add in Section 2 the necessary permissions:

Go back to Pandora FMS documentation index