Pandora: Documentation en: Discovery

From Pandora FMS Wiki
Revision as of 15:58, 26 March 2019 by Irene (talk | contribs)
Jump to: navigation, search

Volver a Indice de Documentacion Pandora FMS

1 What is Pandora FMS Discovery?

Template warning.png

Available for versions of Pandora FMS 732 or higher.


Discovery provides a set of tools to simplify monitoring through wizards.

The following tools are included:

Discovery Host&Devices
Includes the necessary tools to discover or import devices and equipment into your network.
Discovery Applications
Allows you to monitor a VMware environment from a new management console.
Discovery Cloud
Through this utility you can monitor an infrastructure hosted in Amazon Web Services (AWS.EC2).
Console Tasks
Allows you to automate console tasks within the Discovery system, from programming reports, making backups or executing customized scripts from Pandora FMS Console.


2 Discovery Host&Devices

Inside Host&Devices it's possible to:

  • Import devices using a CSV file.
  • Discover devices in a network using NetScan.


2.1 Import a list of your devices in CSV

You can import a list of devices to represent them as agents using the agent import wizard via CSV.


Select the separator used, the server into which you want to import and the file containing the data, then click on next.


2.2 NetScan

With the NetScan tool you can discover devices in a network and apply different monitoring rules to them.

First, you must define the name of the task, the Discovery server that will execute it, the network to be scanned, the group to which the discovered agents will be assigned and the scanning interval.



The intervals selected as manual must be triggered manually. Discovery will not launch a manual task automatically.


In the characteristics section, you can specify the following options:


  • Apply a module template.
  • Apply the automatic configuration rules to the detected agents. For more information go to the following [1]


Automatic configuration allows you to apply policies, group and configuration changes, as well as launch custom events or execute scritps 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 block if you don't deploy an agent in the targets.


  • Improve detection by scanning available SNMP information on discovered targets:
    • To improve the information obtained from discovered devices, SNMP must be enabled.
    • A comma-separated list of communities to test in the discovered targets will be requested.
    • Devices found to support SNMP will report detailed information on the use of their interfaces as well as a series of useful default modules.
    • SNMP is supported in versions 1,2c and 3.
  • The WMI scanning can be enabled. Simply add credentials to be tried in auth. strings separated by commas, for example:


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.


  • Detect the operating system of the objetive.
  • Resolve the objective's name.
  • Parent detection: Through the information collected through SNMP, the different interconnections between devices will be calculated in order to represent their network infrastructure.
  • Parent recursion: Improves parent detection adding recursion to the process.
  • VLAN detection: Detects the VLANs to which the different devices are connected.

Once the wizard is complete, Discovery will start running it at each defined interval, if the interval is manual you must manually start the task:


3 Discovery Applications

Now it's possible to monitor applications remotely using Discovery Applications.


3.1 Discovery Applications: VMware

From Pandora FMS version 7.0-732 VMware infrastructures can be monitored using Discovery Applications.


It must be specified:

  • A name to identify the task.
  • A Discovery server to run it.
  • A group to which the agents generated by the VMware task will be associated.


It must be taken into account that if Pandora FMS server has the token autocreate_group active, priority will be given to the group corresponding to the ID indicated, instead of applying the configuration of the wizard.


The necessary data to monitor VMware are:

  • V-Center IP
  • The datacenter's name (it can be seen through the admin screen of the VMware installation).
  • User with enough permissions.
  • User password.
  • Monitoring interval.

Password encryption can be enabled by pressing the button encrypt passwords. Only applies to the current wizard.

On the next page you can specify the details of VMware monitoring:


  • Max threads: The number of threads used by the VMware monitoring script is chosen to speed up data collection.
  • Retry send: The information of the detected agents is sent by XML to the DataServer. This option must be activated to retry the shipments in case of error.
  • Event mode: Only for VCenter. Event based monitoring of the VMware VCenter is enabled. This working mode is exclusive and independent of the standard monitoring.
  • Virtual network monitoring: Enables the monitoring of the virtual network devices defined in VMware.
  • Extra settings: Any advanced settings needed to customize VMware monitoring must be included here in text mode. For more info, visit this [2].

4 Discovery Cloud

An infrastructure in Cloud can be monitored thanks to Discovery Cloud.


4.1 Discovery Cloud: AWS

To monitor an infrastructure in Amazon Web Services you must follow the different pages of the wizard, step by step.

4.1.1 AWS. Credentials Validation

You must create a query account at Amazon WS with the following permissions:


  • Billing (read)
  • CloudWatch (list,read)
  • Cost Explorer Service (Full access)
  • EC2 (full read, limited: list)

Summary of the policy in JSON:

   "Version": "2012-10-17",
   "Statement": [
           "Sid": "VisualEditor0",
           "Effect": "Allow",
           "Action": [
           "Resource": "*"

The policy must be assigned to a new user.


Back in Pandora FMS, Amazon Web Services credentials must be entered.



In case of not having pandora-cm-api in the installation, it can be obtained in the following link: [3]


4.1.2 Discovery Cloud. AWS

Upon credential validation, the menu Discovery Cloud => Amazon Web Services will be accessed.



You can only have one active recognition task by Cloud technology. The account will be the same for all technologies monitored within the provider.


4.1.3 Discovery Cloud. AWS.EC2

Within EC2 monitoring you can find it:

  • Cost monitoring.
  • Overview of resources recorded in AWS.EC2.
  • Monitoring of specific instances.
  • Monitoring of volumes and elastic IP addresses.

In order to start the monitoring process, a series of basic data are requested:


You will need a name for the task, specify the Discovery server from which it will run, and the monitoring interval. Discovery Cloud AWS.EC2 Costs

When pressing "Next", the AWS costs monitoring configuration will start:

Template warning.png

Amazon Web Services cost monitoring means extra costs. More information can be found in the following link [


Cost monitoring provides an independent monitoring interval to avoid extra charges.


You can monitor both the overall cost and the region-independent costs. Discovery Cloud AWS.EC2 Resumen

The Discovery task can be configured to collect general information on the status of reserves in all regions.

To enable it, you must activate the option Scan and general monitoring.


You can add generic counters for CPU usage, input-output operations (disk), volume of disk and network data transferred (bytes). Discovery Cloud AWS.EC2 Monitof¡ring Specific Instances

You can monitor specific instances to get readings from:

  • CPUUtilization: Average CPU usage
  • DiskReadBytes: Read bytes (disk)
  • DiskWriteBytes: Writing bytes (disk)
  • DiskReadOps: Read operations (disk)
  • DiskWriteOps: Writing operations (disk)
  • NetworkPacketsIn: Input packets (network)
  • NetworkPacketsOut: Output packets (network)

The agents that represent the specific instances will have as their parent the agent that represents the region in which they are hosted.

It is necessary to verify that the token update_parent is configured to 1 in the Pandora FMS server configuration to keep the parent-child relations updated.

You must navigate through the explorer selecting the instances you need to monitor:

Cloud6.png Discovery Cloud AWS.EC2 Extras

In this last screen you can indicate if you want to monitor the volumes used by the reserved instances.

Two extra modules will appear in the region agents:

  • Total reserved volume (GB)
  • Total volumes recorded (number)

You can also choose to activate the Elastic IP addresses token. The number of elastic IPs registered in the AWS.EC2 account will be reported.


Upon completing the wizard, the progress of the execution will be seen in Discovery Task list:


4.1.4 Discovery Cloud. General view

Discovery Cloud includes an overview where you review the key points of the infrastructure in Amazon Web Services.

It includes:

  • Current cost
  • Cost in the previous period
  • Cost evolution graph (6 months)
  • Reserves/instances evolution graph (1 month)
  • Map of regions with the number of instances per region.