# Xenserver # Introduction This document aims to describe the monitoring of XenServer servers with Pandora FMS. Based on our experience in system monitoring, a series of parameters have been chosen to be monitored by default; later modifications can be made according to the needs of each client. To broadly describe the XenServer architecture we can talk about three elements: ● The XenServers or hosts (Citrix calls the XenServers “hosts”, do not confuse VMs with hosts). ● The virtual machines or VMs that will be installed on a given host. ● The Storage Repositories or SRs that will also be associated with a specific host. The information of these elements will be extracted through queries to the XenAPI and RRD queries. More information at [https://pypi.org/project/XenAPI/](https://pypi.org/project/XenAPI/). [![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-10/scaled-1680-/YIuimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-10/YIuimage.png) The plugin will make the queries to extract the information, select the required information and generate an XML document for each VM, for each host and for each SR. Each XML will contain the data of the parameters that we have decided to monitor for each element. These xml will be sent by Tentacle to Pandora server. Once these xml arrive at the server, in the web console we will see how a new agent is generated for each xml, and how in these agents a module is generated for each parameter that we are monitoring. On the XenServer, port 443/TCP must be enabled so that API queries can be made. In addition, port 80/TCP (or the port through which http connections occur) must be enabled, so that the DRR consultations. # Compatibility matrix
**Environments where it has been tested**XenServer 6.2
**Environments where it works**XenServer 6.2 o superior
**Systems where it has been tested**Rocky linux, Fedora 34
**Systems where it works**Any linux system
# Prerequisites - Machine with XenServer, with port 443/TCP open. - Port 80/TCP (or the port where http connections occur) must be enabled - Have the Pandora FMS Data Server enabled - Have the Pandora FMS Plugin Server enabled

It is recommended that virtual machines have XenServer Tools installed, otherwise the information reported on the machines will be very limited.

# Parameters **Parameters**
- `-c ` o `--conf ` Path to the plugin configuration file containing the configured parameters.
- `--as_discovery_plugin <1|0>` Run the plugin in discovery mode, it will show information about the execution, such as the number of machines.
In the configuration file (.conf) we will indicate the following parameters: ``` [CONF] xen_server_ip = user = password = temporary = [PANDORA] group = logfile = interval = transfer_mode = tentacle_ip = tentacle_client = tentacle_port = tentacle_opts = data_dir = [TUNING] time_adjustment =