# 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 host (Citrix calls the XenServers “hosts”, not to confuse VM 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 given host.
The information of these elements will be extracted by queries to the XenAPI and RRD queries. More information in
[https://pypi.org/project/XenAPI/](https://pypi.org/project/XenAPI/).
[](https://pandorafms.com/guides/public/uploads/images/gallery/2023-05/image-1683797512042.png)
The plugin will make the queries to extract the information, it will select the required information and it will 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 inquiries.
# Compatibility matrix
**Systems where it has been tested**
XenServer 6.2 or higher works
**Environments where it works**
XenServer 6.2 or higher works
**Systems where it has been tested**
Rocky linux, Fedora 34
**Systems where it works**
Any linux system
# Prerrequisites
- Machine running XenServer, with port 443/TCP open.
- Port 80/TCP (or the port where the 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 =
id_as_name = < 1 if you want to use the SR id as the name of the SR agents (the alias will remain the name of the SR).)
[TUNING]
time_adjustment =