Table of Contents

Discovery 2 . 0

We are working on the translation of the Pandora FMS documentation. Sorry for any inconvenience.

What is Pandora FMS Discovery?

Version NG 732 or later.

Discovery PFMS provides a set of tools to simplify monitoring through wizards. You can get more information in the video tutorial “Learning about Pandora FMS Discovery

See also .Disco development

Task list

The Discovery Pandora FMS tool allows you to see a list of all the tasks scheduled in the environment, both at the Web Console level and at the server level. These tasks are distributed in blocks, depending on the type of task configured.

Console tasks

Enterprise VersionFor each console task listed we will see:

  • Version 770 or later.
  • You can indicate the console that will execute the task by Console ID.
  • Each console has its own CRON that executes the respective tasks. You can only force the execution of a console task in its respective button. For example, if you have two consoles named A and B, these consoles work independently of each other, both are incommunicado with each other.
  • See also Manage Consoles.

Create or edit console tasks

To create a Console task go to the Management menu → DiscoveryNew console task.

To edit a Console task go to the Management menu → DiscoveryTask list and click the pencil icon corresponding to each task.

In both cases the interface is the same except for the respective button to create (Create) or edit (Update) and save the changes.

The common fields for each task are:

  1. Scheduled: Periodicity of the task, daily (Daily), every hour (Hourly), monthly (Monthly), once (Not scheduled , see next point), weekly (Weekly) and annually (Yearly).
  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 one).- Group: Group to which the task will belong.

The parameters to fill in change depending on the task you choose from the Task drop-down list:

Pandora FMS database backup task:

Save to disk in path: Path in which the information backup will be stored.

Active backups: Specific number of backups to keep to conserve storage space.

Function execution task written in PHP language:

Function name: Name of the PHP function to be executed once or periodically.

Script execution task

Custom script: Name of the script to execute.

Custom report generation and saving task.

Report pending to be created: Custom report (drop-down list) from which this report will be generated. See “Creating a (custom) report”.

Save to disk in path: Path where the created report will be stored (the apache user must have read and write rights to that directory)

File name prefix: Name prefix for successive reports.

Report Type: To be saved in XML, PDF, JSON or CSV format.

Task for sending event records (logs) in CSV format, by email.

Send to e-mail: Mailbox to which to send the event records (logs) in CSV format.

Reports (created from a template) to be sent by email:

Reports to be sent by email:

Host & devices tasks

For each task listed:

Applications tasks, cloud tasks and custom tasks

For each task listed:

Discovery Host&Devices

NetScan

NetScan allows you to discover devices on a network and apply different monitoring rules to them.

When creating a task, the group to which it will belong is established in advance and you must select, in recognition, between uploading a file in CSV format with the specific devices to be checked (Use CSV file definition:) or the network (Network:).

Intervals selected as manual will need to be launched manually. Discovery will not launch a manual task automatically.

Automatic configuration allows you to apply policies, group and configuration changes, as well as launch custom events or execute scripts on actions.

The agents detected by NetScan are remote agents without a configuration file. You won't be able to apply local monitoring policies or add configuration changes in bulk if you don't deploy an agent to the targets.

The different credentials provided will be tested against the detected targets that support WMI, complementing the monitoring with modules that will report on the use of CPU, memory and disk.

After the wizard completes, Discovery will start running it at each defined interval. If the interval is manual, the task must be started manually.

Once the task is finished, if accessed from Review, you will see a summary of the devices found and that respond to ping or fping and the rest of the metrics available through SNMP or WMI. All IP addresses will be displayed, each in one of these two states:

Once the objectives to be monitored have been selected, the system will create them systematically. During this process, the target's operating system will be detected to complement the information already collected.

Automatic agent deployment

The steps to deploy Software Agents from the Console are:

This system does not perform PUSH type operations; all deployments are broadcast offering the software and ordering the target to install it.

Goal Pursuit

Objectives for deployment

You can use any of the following options to define goals:

Scan one or more networks for targets

Pressing the scan targets button will display a pop-up box with the following fields:

When you press the Scan button you will receive a confirmation, with a link you can follow to check the progress of this task.

The discovered targets added to this list are all devices found whose operating system matches Windows or Linux/Unix based systems, regardless of whether or not valid credentials were found.

Manually define a goal

You can manually register the target by defining:

Upload a CSV file with objective information

Attention, this CSV importer will not perform any Discovery tasks, it will only create empty agents with the name, IP address, OS type, description and group provided in the CSV file.

If you want to register targets in bulk, you can upload a CSV file in the following format:

Agent alias, IP address, OS id, Interval, Group id, Description

The system will create the objectives based on what is defined in the CSV.

Deploy the software

You can only schedule the deployment against targets whose information is complete, specifying both credentials and software versions to deploy

As soon as you have possible targets on the list, you can launch the agent deployment. Select the IP addresses of the targets from the list (only valid targets will appear) and press drop down.

A Discovery task will automatically be created for deployment in the background, which will be in charge of installing the agent on the desired targets.

You will be able to confirm that the agent has been successfully installed from the target list of the deployment center. The target name also becomes a link to the corresponding Pandora FMS agent.

Custom NetScan

It allows the execution of custom scripts for the execution of network recognition tasks.

Please specify:

Once the task creation process is completed, it will be necessary to specify the script that you want to run, as well as the configuration file necessary for its execution.

Net scan scripts

This section shows the different scripts that have been created for the custom recognition tasks. A view is displayed in which the name and description of the task are defined.

Pandora FMS allows adding additional scripts to facilitate the monitoring and recognition of the required networks.

Parameters to define:

The creation of scripts allows adding macros with which to define all the parameters that are necessary for the correct execution.tion of the script.

Applications, cloud and custom

Version NG 773 or later.

With Pandora FMS it is possible to monitor applications and cloud environments remotely using Discovery PFMS.

To do this, it will be necessary to load the plugins that you want to use for monitoring, which may be custom or official Pandora FMS plugins.

These plugins are loaded in ''.disco'' packages which will include their own configuration interface and executables necessary for proper operation.

Creating and editing tasks

When creating or editing a task for applications, cloud or custom, the form that we must fill in will be adjusted according to the plugin used in the task. This means that, for example, the VMware task form will be different from the XenServer task form.

However, for all tasks, a minimum necessary information must be indicated.

Once this minimum information is filled in, the following steps of the form will be adjusted according to the plugin used, being able to have tasks with more configuration steps than others.

During the definition of the task we can go from one step to the next using the Next button, which will update the parameters of each step for the task.

We can also finish the definition of the task using the Complete setup button, which will update the parameters of the step in which we are and mark the task as fully configured so that the server can execute it.

A task that has not been completely configured will not be executed by the Pandora FMS server, which is why the last configuration step of any task will always only give us the option of the Complete setup button.

When a task is not fully configured, it will be displayed in the task list with an icon indicating so.

Task execution result

When a task has finished its execution, from the list of tasks we can see the result of it.

All completed tasks will have a status associated, which may be:

For any completed task, we can consult its execution summary, which, depending on how the plugin used for the task is defined, will be displayed with different information.

In the cases in which the task ends with a failed status, we can also see the execution summary to check the errors produced.

The result of a task execution will always depend on the plugin used by it, so it is possible that even having finished with a failed status, the task is capable of generating monitoring for a set of agents.

Applications

Enterprise Version The applications available to officially monitor with Pandora FMS are:

Cloud

Enterprise VersionThe cloud environments available to officially monitor with Pandora FMS are:

Custom

Pandora FMS currently does not have official custom plugins.

Manage disk packages

This section allows plugins to be loaded from .disco packages that can be used to monitor environments or applications.

Version NG 773 or later.

From the console you can see the list of plugins available for Discovery PFMS and you can load new ones, whether they are official Pandora FMS or customized.

For each listed plugin:

File Synchronization

For the tasks of a plugin to work, it is necessary that both the console and the Pandora FMS server have the content of the .disco package in an accessible directory.

That is why the list of plugins includes the action button to synchronize the files with the server in each plugin.

Since the console is in charge of uploading new .disco files, it is the same console that is in charge of synchronizing the necessary files with the server.

The moment a .disco file is loaded, the console automatically synchronizes the files with the server. However, if necessary, the button to synchronize the plugin files will force the synchronization to be carried out at that moment when it is pressed.

Files in the console

As an entry point, the console stores the files for each plugin in a directory with the short name of the plugin inside:

pandora_console/attachment/discovery

For example, the directory for the pandorafms.vmware application would be:

/var/www/html/pandora_console/attachment/discovery/pandorafms.vmware

If the minimum necessary files are not found for a plugin within its directory, the following icon will be displayed, preventing file synchronization with the server, and it will be necessary to upload its .disco package again to solve the mistake.

Files on the server

In order to execute the tasks defined for a plugin, the Pandora FMS server must have the plugin files.

To achieve this, the console synchronizes the files of each loaded plugin with a directory accessible by both the console and the server.

Said directory, called discovery, is found within the one configured in the general configuration of the Pandora FMS console, in the Remote configuration directory field.

By default, the route in which the console would synchronize the files with the server would be:

/var/spool/pandora/data_in/discovery

Within this directory, one will be created for each plugin, using their short names, and inside the plugin files that the server may need.

For example, the directory for the pandorafms.vmware application would be:

/var/spool/pandora/data_in/discovery/pandorafms.vmware

See also .Disco development

Back to Pandora FMS documentation index