VMWare provides cloud computing and virtualization software and services.
The Centreon Plugins and Monitoring Connectors rely on the Centreon VMWare Connector to request the vCenter API.
With this connector, Centreon can monitor VMs, Datastores, ESXs, Clusters, etc.
This Monitoring Connector can be used with either version 6 or 7 of the VMware API.
Pack assets​
Templates​
The Monitoring Connector VMware ESX brings a host template:
The connector brings the following service templates (sorted by the host template they are attached to):
- Virt-VMWare2-ESX-custom
- Not attached to a host template
Service Alias | Service Template | Service Description |
---|
Esx-Cpu | Virt-VMWare2-ESX-Cpu-Generic-custom | Check CPU usage of an ESX Server |
Esx-Health | Virt-VMWare2-ESX-Health-Generic-custom | Check hardware and CPU sensors of an ESX Server |
Esx-Memory | Virt-VMWare2-ESX-Memory-Generic-custom | Check Memory usage of an ESX Server |
Esx-Status | Virt-VMWare2-ESX-Status-Generic-custom | Check global status of an ESX Server |
Esx-Swap | Virt-VMWare2-ESX-Swap-Generic-custom | Check if a virtual machine is swapping on the ESX server |
Esx-Vm-Count | Virt-VMWare2-ESX-Vm-Count-Generic-custom | Check virtual machines running/off/suspended on an ESX Server |
The services listed above are created automatically when the Virt-VMWare2-ESX-custom host template is used.
Service Alias | Service Template | Service Description | Discovery |
---|
Datastore-Io | Virt-VMWare2-Datastore-Io-Generic-custom | Check datastore usage in Kbps | |
Datastore-Iops | Virt-VMWare2-Datastore-Iops-Generic-custom | Check average IOPs of a datastore | |
Datastore-Snapshots | Virt-VMWare2-Datastore-Snapshots-Generic-custom | Check snapshots usage on a datastore | |
Datastore-Usage | Virt-VMWare2-Datastore-Usage-Generic-custom | Check datastore usage | |
Datastore-Vm-Count | Virt-VMWare2-Datastore-Vm-Count-Generic-custom | Check virtual machines running/off/suspended on a datastore | |
ESX-Alarms | Virt-VMWare2-ESX-Alarms-Generic-custom | Check alarms of an ESX host | |
Esx-Datastores-Latency | Virt-VMWare2-ESX-Datastores-Latency-Generic-custom | Check Datastores latency of an ESX Server | X |
Esx-Service | Virt-VMWare2-ESX-Service-Generic-custom | Check services of an ESX Server | |
Esx-Storage | Virt-VMWare2-ESX-Storage-Generic-custom | Check ESX storage informations | |
Esx-Time | Virt-VMWare2-ESX-Time-Generic-custom | Check time of an ESX Server | |
Esx-Traffic | Virt-VMWare2-ESX-Traffic-Generic-custom | Check traffic usages of a physical network interfaces. Thresholds are in percent | X |
Esx-Uptime | Virt-VMWare2-ESX-Uptime-Generic-custom | Get uptime in days of an ESX Server | |
Esx-is-Maintenance | Virt-VMWare2-ESX-Maintenance-Generic-custom | Check maintenance mode of an ESX Server | |
The services listed above are not created automatically when a host template is applied. To use them, create a service manually, then apply the service template you want.
If Discovery is checked, it means a service discovery rule exists for this service template.
Discovery rules​
Host discovery​
Rule name | Description |
---|
VMWare ESX | Discover VMWare ESX |
More information about discovering hosts automatically is available on the dedicated page.
Service discovery​
Rule name | Description |
---|
Virt-VMWare2-Esx-Datastores-Latency-Name | |
Virt-VMWare2-Esx-Nics-Traffic-Name | Discover network interfaces and monitor bandwidth utilization |
More information about discovering services automatically is available on the dedicated page
and in the following chapter.
Collected metrics & status​
Here is the list of services for this connector, detailing all metrics linked to each service.
- Datastore-Io
- Datastore-Iops
- Datastore-Snapshots
- Datastore-Usage
- Datastore-Vm-Count
- ESX-Alarms
- Esx-Cpu
- Esx-Datastores-Latency
- Esx-Health
- Esx-Memory
- Esx-Service
- Esx-Status
- Esx-Storage
- Esx-Swap
- Esx-Time
- Esx-Traffic
- Esx-Uptime
- Esx-Vm-Count
- Esx-is-Maintenance
Metric name | Unit |
---|
datastore.read.usage.bytespersecond | B/s |
datastore.write.usage.bytespersecond | B/s |
datastore#status | N/A |
datastore#datastore.read.usage.bytespersecond | B/s |
datastore#datastore.write.usage.bytespersecond | B/s |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
datastores.read.usage.iops | iops |
datastores.write.usage.iops | iops |
datastore~status | N/A |
datastore~datastore.read.usage.iops | iops |
datastore~datastore.write.usage.iops | iops |
datastore~vm#datastore.vm.read.usage.iops | iops |
datastore~vm#datastore.vm.write.usage.iops | iops |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
datastore~status | N/A |
datastore~datastore.snapshots.usage.bytes | B |
datastore~files#datastore.snapshot.usage.bytes | B |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
datastore#status | N/A |
datastore#datastore.space.usage.bytes | B |
datastore#datastore.space.free.bytes | B |
datastore#datastore.space.usage.percentage | % |
datastore#datastore.space.provisioned.bytes | B |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
datastore.vm.poweredon.current.count | count |
datastore.vm.poweredoff.current.count | count |
datastore.vm.suspended.current.count | count |
datastore#status | N/A |
datastore#datastore.vm.poweredon.current.count | count |
datastore#datastore.vm.poweredoff.current.count | count |
datastore#datastore.vm.suspended.current.count | count |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host.alarms.warning.current.count | count |
host.alarms.critical.current.count | count |
status | N/A |
alarm-warning | N/A |
alarm-critical | N/A |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host~status | N/A |
host~host.cpu.utilization.percentage | % |
host~host.cpu.utilization.mhz | MHz |
host~cpu#host.core.cpu.utilization.percentage | % |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host~status | N/A |
host~datastore#host.datastore.latency.read.milliseconds | ms |
host~datastore#host.datastore.latency.write.milliseconds | ms |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host.health.problems.current.count | count |
host~status | N/A |
host~ok | N/A |
host~host.health.problems.current.count | count |
host~host.health.yellow.current.count | count |
host~host.health.red.current.count | count |
host~global_summary#global-summary | N/A |
host~sensors_temp#host.sensor.temperature.celsius | C |
host~sensors_fan#host.sensor.fan.speed.rpm | rpm |
host~sensors_voltage#host.sensor.voltage.volt | V |
host~sensors_power#host.sensor.power.watt | W |
Metric name | Unit |
---|
host#status | N/A |
host#host.memory.usage.bytes | B |
host#host.memory.overhead.bytes | B |
host#host.memory.state.count | count |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host~status | N/A |
host~service#service-status | N/A |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host#status | N/A |
host#overall-status | N/A |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host~status | N/A |
host~host.adapters.total.count | count |
host~host.adapters.online.count | count |
host~host.adapters.offline.count | count |
host~host.adapters.fault.count | count |
host~host.adapters.unknown.count | count |
host~host.luns.total.count | count |
host~host.luns.ok.count | count |
host~host.luns.error.count | count |
host~host.luns.off.count | count |
host~host.luns.unknown.count | count |
host~host.luns.quiesced.count | count |
host~host.luns.degraded.count | count |
host~host.paths.total.count | count |
host~host.paths.active.count | count |
host~host.paths.disabled.count | count |
host~host.paths.standby.count | count |
host~host.paths.dead.count | count |
host~host.paths.unknown.count | count |
host~adapters#adapter-status | N/A |
host~luns#lun-status | N/A |
host~paths#path-status | N/A |
Metric name | Unit |
---|
host#status | N/A |
host#host.swap.in.usage.bytespersecond | B/s |
host#host.swap.out.usage.bytespersecond | B/s |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host#status | N/A |
host#host.time.offset.seconds | s |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host~status | N/A |
host~host.traffic.in.bitsperseconds | b/s |
host~host.traffic.out.bitsperseconds | b/s |
host~pnic#link-status | N/A |
host~pnic#host.traffic.in.bitsperseconds | b/s |
host~pnic#host.traffic.out.bitsperseconds | b/s |
host~pnic#host.packets.in.dropped.percentage | % |
host~pnic#host.packets.out.dropped.percentage | % |
host~vswitch#host.vswitch.traffic.in.bitsperseconds | b/s |
host~vswitch#host.vswitch.traffic.out.bitsperseconds | b/s |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host#status | N/A |
host#host.uptime.offset.seconds | s |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host.vm.poweredon.current.count | count |
host.vm.poweredoff.current.count | count |
host.vm.suspended.current.count | count |
host#status | N/A |
host#host.vm.poweredon.current.count | count |
host#host.vm.poweredoff.current.count | count |
host#host.vm.suspended.current.count | count |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric name | Unit |
---|
host#status | N/A |
host#maintenance-status | N/A |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Prerequisites​
Centreon VMWare Connector​
For the VMWare monitoring, Centreon use daemon to connect and request the vCenter.
Install this daemon on each needed poller:
yum install centreon-plugin-Virtualization-VMWare-daemon
- Centreon Cloud and OnPrem from version 24.10
- Versions of Centreon OnPrem older than 24.10
To configure the access to your infrastructure, edit the
"/etc/centreon/centreon_vmware.pm" configuration file:
%centreon_vmware_config = (
vsphere_server => {
default => {
url => 'https://<ip_hostname>/sdk',
username => '<username>',
password => '<password>'
}
}
);
1;
Make sure to replace variables with needed information:
- ip_hostname: IP address or hostname of the vCenter or ESX (if standalone),
- username: username with at least "read only" access to the vCenter or ESX (you can use domain user),
- password: password of the username.
You can configure multiple vCenter or ESXi connections using this
structure:
%centreon_vmware_config = (
vsphere_server => {
'my_first_vcenter' => {
url => 'https://<ip_hostname>/sdk',
username => '<username>',
password => '<password>'
},
'my_other_vcenter' => {
url => 'https://<ip_hostname>/sdk',
username => '<DOMAIN>\<username>',
password => '<password>'
},
},
port => 5700
);
1;
Each entry is called a container.
You can also define the "port" attribute to change the listening port.
Then start the daemon and make sure it is configured to start at server boot:
systemctl start centreon_vmware
systemctl enable centreon_vmware
Make sure that the daemon configuration works fine by looking for errors in
/var/log/centreon/centreon_vmware.log.
To discover Tags and Custom Attributes, you must use version 3.2.5 of centreon-vmware-daemon and add --tags in the discovery extra options.
Go to page Configuration > Hosts > Discovery, and at the 3rd step (Define discovery parameters), in section Additional parameters, in the Extra Options field, enter --tags.
Network flows​
The Poller with the Centreon VMware Connector installed needs to access the vCenter on TCP/443 HTTPS.
The Pollers that request the Centreon VMWare Connector host need to access the Centreon VMWare Connector host on TCP/5700.
Installing the monitoring connector​
- If the platform uses an online license, you can skip the package installation
instruction below as it is not required to have the connector displayed within the
Configuration > Monitoring Connectors Manager menu.
If the platform uses an offline license, install the package on the central server
with the command corresponding to the operating system's package manager:
- Alma / RHEL / Oracle Linux 8
- Alma / RHEL / Oracle Linux 9
- Debian 11 & 12
- CentOS 7
dnf install centreon-pack-virtualization-vmware2-esx
dnf install centreon-pack-virtualization-vmware2-esx
apt install centreon-pack-virtualization-vmware2-esx
yum install centreon-pack-virtualization-vmware2-esx
- Whatever the license type (online or offline), install the VMware ESX connector through
the Configuration > Monitoring Connectors Manager menu.
Since Centreon 22.04, you can benefit from the 'Automatic plugin installation' feature.
When this feature is enabled, you can skip the installation part below.
You still have to manually install the plugin on the poller(s) when:
- Automatic plugin installation is turned off
- You want to run a discovery job from a poller that doesn't monitor any resource of this kind yet
More information in the Installing the plugin section.
Use the commands below according to your operating system's package manager:
- Alma / RHEL / Oracle Linux 8
- Alma / RHEL / Oracle Linux 9
- Debian 11 & 12
- CentOS 7
dnf install centreon-plugin-Virtualization-Vmware2-Connector-Plugin
dnf install centreon-plugin-Virtualization-Vmware2-Connector-Plugin
apt install centreon-plugin-virtualization-vmware2-connector-plugin
yum install centreon-plugin-Virtualization-Vmware2-Connector-Plugin
Using the monitoring connector​
Using a host template provided by the connector​
- Log into Centreon and add a new host through Configuration > Hosts.
- Fill the Name, Alias & IP Address/DNS fields according to your ressource settings.
- Apply the Virt-VMWare2-ESX-custom template to the host. A list of macros appears. Macros allow you to define how the connector will connect to the resource, and to customize the connector's behavior.
- Fill in the macros you want. Some macros are mandatory.
Macro | Description | Default value | Mandatory |
---|
CENTREONVMWAREPORT | Connector port (default: 5700) | 5700 | |
CENTREONVMWARECONTAINER | Container to use (it depends on the connector's configuration) | default | |
CENTREONVMWAREHOST | Connector hostname (required) | localhost | |
ESXNAME | Hostnames of the ESX to monitor. If not set, we check all ESX | | |
CENTREONVMWAREEXTRAOPTIONS | Any extra option you may want to add to every command (e.g. a --verbose flag). All options are listed here | | |
- Deploy the configuration. The host appears in the list of hosts, and on the Resources Status page. The command that is sent by the connector is displayed in the details panel of the host: it shows the values of the macros.
Using a service template provided by the connector​
- If you have used a host template and checked Create Services linked to the Template too, the services linked to the template have been created automatically, using the corresponding service templates. Otherwise, create manually the services you want and apply a service template to them.
- Fill in the macros you want (e.g. to change the thresholds for the alerts). Some macros are mandatory (see the table below).
- Datastore-Io
- Datastore-Iops
- Datastore-Snapshots
- Datastore-Usage
- Datastore-Vm-Count
- ESX-Alarms
- Esx-Cpu
- Esx-Datastores-Latency
- Esx-Health
- Esx-Memory
- Esx-Service
- Esx-Status
- Esx-Storage
- Esx-Swap
- Esx-Time
- Esx-Traffic
- Esx-Uptime
- Esx-Vm-Count
- Esx-is-Maintenance
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} | %{accessible} !~ /^true|1$/i | |
DATASTORENAME | The connector will only take into account alerts coming from the datastores listed here | | |
WARNINGREAD | Warning threshold | | |
CRITICALREAD | Critical threshold | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} | | |
WARNINGTOTALREAD | Warning threshold | | |
CRITICALTOTALREAD | Critical threshold | | |
WARNINGTOTALWRITE | Warning threshold | | |
CRITICALTOTALWRITE | Critical threshold | | |
WARNINGWRITE | Warning threshold | | |
CRITICALWRITE | Critical threshold | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} | %{accessible} !~ /^true|1$/i | |
DATASTORENAME | The connector will only take into account alerts coming from the datastores listed here | | |
WARNINGREAD | Thresholds | | |
CRITICALREAD | Thresholds | | |
WARNINGREADTOTAL | Thresholds | | |
CRITICALREADTOTAL | Thresholds | | |
WARNINGREADVM | Thresholds | | |
CRITICALREADVM | Thresholds | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} | | |
WARNINGWRITE | Thresholds | | |
CRITICALWRITE | Thresholds | | |
WARNINGWRITETOTAL | Thresholds | | |
CRITICALWRITETOTAL | Thresholds | | |
WARNINGWRITEVM | Thresholds | | |
CRITICALWRITEVM | Thresholds | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} | %{accessible} !~ /^true|1$/i | |
DATASTORENAME | The connector will only take into account alerts coming from the datastores listed here | | |
WARNINGSNAPSHOT | Warning threshold | | |
CRITICALSNAPSHOT | Critical threshold | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} | | |
WARNINGTOTAL | Warning threshold | | |
CRITICALTOTAL | Critical threshold | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} | %{accessible} !~ /^true|1$/i | |
UNIT | | % | |
DATASTORENAME | The connector will only take into account alerts coming from the datastores listed here | | |
WARNINGPROVISIONED | Thresholds. : 'usage' (B), 'usage-free' (B), 'usage-prct' (%), 'provisioned' | | |
CRITICALPROVISIONED | Thresholds. : 'usage' (B), 'usage-free' (B), 'usage-prct' (%), 'provisioned' | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} | | |
WARNINGUSAGE | Thresholds. : 'usage' (B), 'usage-free' (B), 'usage-prct' (%), 'provisioned' | 80 | |
CRITICALUSAGE | Thresholds. : 'usage' (B), 'usage-free' (B), 'usage-prct' (%), 'provisioned' | 90 | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} | %{accessible} !~ /^true|1$/i | |
DATASTORENAME | The connector will only take into account alerts coming from the datastores listed here | | |
WARNINGOFF | Warning threshold | | |
CRITICALOFF | Critical threshold | | |
WARNINGON | Warning threshold | | |
CRITICALON | Critical threshold | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} | | |
WARNINGSUSPENDED | Warning threshold | | |
CRITICALSUSPENDED | Critical threshold | | |
WARNINGTOTALOFF | Warning threshold | | |
CRITICALTOTALOFF | Critical threshold | | |
WARNINGTOTALON | Warning threshold | | |
CRITICALTOTALON | Critical threshold | | |
WARNINGTOTALSUSPENDED | Warning threshold | | |
CRITICALTOTALSUSPENDED | Critical threshold | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
FILTERTIME | The connector will ignore any alert older than the time period specified here (in seconds). | 3600 | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /yellow/i). You can use the following variables: %{status}, %{name}, %{entity}, %{type} | %{status} =~ /yellow/i | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /red/i'). You can use the following variables: %{status}, %{name}, %{entity}, %{type} | %{status} =~ /red/i | |
WARNINGTOTALALARMWARNING | Warning threshold | | |
CRITICALTOTALALARMWARNING | Critical threshold | | |
WARNINGTOTALALARMCRITICAL | Warning threshold | | |
CRITICALTOTALALARMCRITICAL | Critical threshold | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | --verbose --ignore-warn-msg | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
WARNING | Warning threshold | | |
CRITICAL | Critical threshold | | |
WARNINGCPU | Warning threshold | | |
CRITICALCPU | Critical threshold | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
WARNINGTOTALCPUMHZ | Warning threshold | | |
CRITICALTOTALCPUMHZ | Critical threshold | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
FILTERDATASTORENAME | Datastore to check. If not set, we check all datastores | .* | |
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
WARNINGREADLATENCY | Warning threshold | | |
CRITICALREADLATENCY | Critical threshold | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
WARNINGWRITELATENCY | Warning threshold | | |
CRITICALWRITELATENCY | Critical threshold | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | --verbose | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | | |
WARNINGPROBLEMS | Thresholds | | |
CRITICALPROBLEMS | Thresholds | | |
WARNINGPROBLEMSRED | Thresholds | | |
CRITICALPROBLEMSRED | Thresholds | | |
WARNINGPROBLEMSYELLOW | Thresholds | | |
CRITICALPROBLEMSYELLOW | Thresholds | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
WARNINGTOTALPROBLEMS | Thresholds | | |
CRITICALTOTALPROBLEMS | Thresholds | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | --verbose | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
WARNING | Warning threshold (can use unit option) | | |
CRITICAL | Critical threshold (can use unit option) | | |
WARNINGOVERHEADMEMORY | Threshold overhead | | |
CRITICALOVERHEADMEMORY | Critical threshold | | |
WARNINGSTATEMEMORY | Warning threshold. For state != 'high': --warning-state=0 | | |
CRITICALSTATEMEMORY | Critical threshold. For state != 'high': --warning-state=0 | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i && %{maintenance} =~ /false/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i && %{maintenance} =~ /false/i | |
FILTERSERVICES | Filter services you want to check (can be a regexp) | ^(?!(snmpd|xorg)$) | |
CRITICALSERVICESTATUS | Define the conditions to match for the status to be CRITICAL (Default: '%{policy} =~ /^on|automatic/i && !%{running}'). You can use the following variables: %{running}, %{label}, %{policy} | %{policy} =~ /^on|automatic/i && !%{running} | |
WARNINGSERVICESTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{running}, %{label}, %{policy} | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | --verbose | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
UNKNOWNOVERALLSTATUS | Define the conditions to match for the status to be WARNING (Default: '%{overall_status} =~ /gray/i'). You can use the following variables: %{overall_status} | %{overall_status} =~ /gray/i | |
WARNINGOVERALLSTATUS | Define the conditions to match for the status to be WARNING (Default: '%{overall_status} =~ /yellow/i'). You can use the following variables: %{overall_status} | %{overall_status} =~ /yellow/i | |
CRITICALOVERALLSTATUS | Define the conditions to match for the status to be CRITICAL (Default: '%{overall_status} =~ /red/i'). You can use the following variables: %{overall_status} | %{overall_status} =~ /red/i | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | --verbose | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i && %{maintenance} =~ /false/i'). You can use the following variables: %{status}, %{maintenance} | %{status} !~ /^connected$/i && %{maintenance} =~ /false/i | |
FILTERADAPTERNAME | Filter adapters by name (can be a regexp) | | |
FILTERLUNNAME | Filter luns by name (can be a regexp) | | |
FILTERPATHNAME | Filter paths by name (can be a regexp) | | |
WARNINGADAPTERSFAULT | Thresholds | | |
CRITICALADAPTERSFAULT | Thresholds | | |
WARNINGADAPTERSOFFLINE | Thresholds | | |
CRITICALADAPTERSOFFLINE | Thresholds | | |
WARNINGADAPTERSONLINE | Thresholds | | |
CRITICALADAPTERSONLINE | Thresholds | | |
CRITICALADAPTERSTATUS | Set critical threshold for adapter status (Default: '%{status} =~ /fault/'). You can use the following variables: %{name}, %{host}, %{status} | %{status} =~ /fault/ | |
WARNINGADAPTERSTATUS | Set warning threshold for adapter status. You can use the following variables: %{name}, %{host}, %{status} | | |
WARNINGADAPTERSTOTAL | Thresholds | | |
CRITICALADAPTERSTOTAL | Thresholds | | |
WARNINGADAPTERSUNKNOWN | Thresholds | | |
CRITICALADAPTERSUNKNOWN | Thresholds | | |
WARNINGLUNSDEGRADED | Threshold | | |
CRITICALLUNSDEGRADED | Threshold | | |
WARNINGLUNSERROR | Threshold | | |
CRITICALLUNSERROR | Threshold | | |
WARNINGLUNSOFF | Threshold | | |
CRITICALLUNSOFF | Threshold | | |
WARNINGLUNSOK | Threshold | | |
CRITICALLUNSOK | Threshold | | |
WARNINGLUNSQUIESCED | Threshold | | |
CRITICALLUNSQUIESCED | Threshold | | |
WARNINGLUNSTATUS | Set warning threshold for lun status (Default: '%{status} =~ /degraded|quiesced/'). You can use the following variables: %{name}, %{host}, %{status} | %{status} =~ /degraded|quiesced/ | |
CRITICALLUNSTATUS | Set critical threshold for lun status (Default: '%{status} =~ /lostcommunication|error/'). You can use the following variables: %{name}, %{host}, %{status} | %{status} =~ /lostcommunication|error/ | |
WARNINGLUNSTOTAL | Threshold | | |
CRITICALLUNSTOTAL | Threshold | | |
WARNINGLUNSUNKNOWN | Threshold | | |
CRITICALLUNSUNKNOWN | Threshold | | |
WARNINGPATHSACTIVE | Threshold | | |
CRITICALPATHSACTIVE | Threshold | | |
WARNINGPATHSDEAD | Threshold | | |
CRITICALPATHSDEAD | Threshold | | |
WARNINGPATHSDISABLED | Threshold | | |
CRITICALPATHSDISABLED | Threshold | | |
WARNINGPATHSSTANDBY | Threshold | | |
CRITICALPATHSSTANDBY | Threshold | | |
CRITICALPATHSTATUS | Set critical threshold for path status (Default: '%{status} =~ /dead/'). You can use the following variables: %{name}, %{host}, %{status} | %{status} =~ /dead/ | |
WARNINGPATHSTATUS | Set warning threshold for path status. You can use the following variables: %{name}, %{host}, %{status} | | |
WARNINGPATHSTOTAL | Threshold | | |
CRITICALPATHSTOTAL | Threshold | | |
WARNINGPATHSUNKNOWN | Threshold | | |
CRITICALPATHSUNKNOWN | Threshold | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{maintenance} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{maintenance} | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | --verbose | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
WARNINGSWAPIN | Warning threshold | | |
CRITICALSWAPIN | Critical threshold | | |
WARNINGSWAPOUT | Warning threshold | | |
CRITICALSWAPOUT | Critical threshold | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
WARNINGTIME | Warning threshold in seconds | -2:2 | |
CRITICALTIME | Critical threshold in seconds | -5:5 | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
FILTERNICNAME | ESX nic to check. If not set, we check all nics | .* | |
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
UNKNOWNLINKSTATUS | Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_status}, %{display} | | |
WARNINGDROPPEDIN | Thresholds | | |
CRITICALDROPPEDIN | Thresholds | | |
WARNINGDROPPEDOUT | Thresholds | | |
CRITICALDROPPEDOUT | Thresholds | | |
WARNINGHOSTTRAFFICIN | Thresholds | | |
CRITICALHOSTTRAFFICIN | Thresholds | | |
WARNINGHOSTTRAFFICOUT | Thresholds | | |
CRITICALHOSTTRAFFICOUT | Thresholds | | |
WARNINGIN | Thresholds | 80 | |
CRITICALIN | Thresholds | 90 | |
CRITICALLINKSTATUS | Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} !~ /up/'). You can use the following variables: %{link_status}, %{display} | %{link_status} !~ /up/ | |
WARNINGLINKSTATUS | Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_status}, %{display} | | |
WARNINGOUT | Thresholds | 80 | |
CRITICALOUT | Thresholds | 90 | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | --verbose | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
WARNINGTIME | Warning threshold in seconds | | |
CRITICALTIME | Critical threshold in seconds | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
WARNINGOFF | Warning threshold | | |
CRITICALOFF | Critical threshold | | |
WARNINGON | Warning threshold | | |
CRITICALON | Critical threshold | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
WARNINGSUSPENDED | Warning threshold | | |
CRITICALSUSPENDED | Critical threshold | | |
WARNINGTOTALOFF | Warning threshold | | |
CRITICALTOTALOFF | Critical threshold | | |
WARNINGTOTALON | Warning threshold | | |
CRITICALTOTALON | Critical threshold | | |
WARNINGTOTALSUSPENDED | Warning threshold | | |
CRITICALTOTALSUSPENDED | Critical threshold | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
Macro | Description | Default value | Mandatory |
---|
UNKNOWNSTATUS | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} | %{status} !~ /^connected$/i | |
CRITICALMAINTENANCESTATUS | Define the conditions to match for the status to be CRITICAL (Default: '%{maintenance} !~ /false/'). You can use the following variables: %{maintenance} | %{maintenance} !~ /false/ | |
WARNINGMAINTENANCESTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{maintenance} | | |
WARNINGSTATUS | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} | | |
CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} | | |
EXTRAOPTIONS | Any extra option you may want to add to the command (e.g. a --verbose flag). All options are listed here | | |
- Deploy the configuration. The service appears in the list of services, and on the Resources Status page. The command that is sent by the connector is displayed in the details panel of the service: it shows the values of the macros.
How to check in the CLI that the configuration is OK and what are the main options for?​
Once the plugin is installed, log into your Centreon poller's CLI using the
centreon-engine user account (su - centreon-engine
). Test that the connector
is able to monitor a resource using a command like this one (replace the sample values by yours):
/usr/lib/centreon/plugins/centreon_vmware_connector_client.pl \
--plugin=apps::vmware::connector::plugin \
--mode=countvm-host \
--custommode=connector \
--connector-hostname='localhost' \
--connector-port='5700' \
--container='default' \
--esx-hostname='' \
--unknown-status='%{status} !~ /^connected$/i' \
--warning-status='' \
--critical-status='' \
--warning-total-on='' \
--critical-total-on='' \
--warning-total-off='' \
--critical-total-off='' \
--warning-total-suspended='' \
--critical-total-suspended='' \
--warning-on='' \
--critical-on='' \
--warning-off='' \
--critical-off='' \
--warning-suspended='' \
--critical-suspended=''
The expected command output is shown below:
OK: 51 VM(s) poweredon 93 VM(s) poweredoff 18 VM(s) suspended All ESX Hosts are ok | 'host.vm.poweredon.current.count'=51;;;0;total'host.vm.poweredoff.current.count'=93;;;0;total'host.vm.suspended.current.count'=18;;;0;total'*host*#host.vm.poweredon.current.count'=;;;0;total'*host*#host.vm.poweredoff.current.count'=;;;0;total'*host*#host.vm.suspended.current.count'=;;;0;total
Troubleshooting​
Please find the troubleshooting documentation
for Centreon Plugins typical issues.
Available modes​
In most cases, a mode corresponds to a service template. The mode appears in the execution command for the connector.
In the Centreon interface, you don't need to specify a mode explicitly: its use is implied when you apply a service template.
However, you will need to specify the correct mode for the template if you want to test the execution command for the
connector in your terminal.
All available modes can be displayed by adding the --list-mode
parameter to
the command:
/usr/lib/centreon/plugins/centreon_vmware_connector_client.pl \
--plugin=apps::vmware::connector::plugin \
--list-mode
The plugin brings the following modes:
Mode | Linked service template |
---|
alarm-datacenter [code] | Not used in this Monitoring Connector |
alarm-host [code] | Virt-VMWare2-ESX-Alarms-Generic-custom |
countvm-host [code] | Virt-VMWare2-ESX-Vm-Count-Generic-custom |
cpu-cluster [code] | Not used in this Monitoring Connector |
cpu-host [code] | Virt-VMWare2-ESX-Cpu-Generic-custom |
cpu-vm [code] | Not used in this Monitoring Connector |
datastore-countvm [code] | Virt-VMWare2-Datastore-Vm-Count-Generic-custom |
datastore-host [code] | Virt-VMWare2-ESX-Datastores-Latency-Generic-custom |
datastore-io [code] | Virt-VMWare2-Datastore-Io-Generic-custom |
datastore-iops [code] | Virt-VMWare2-Datastore-Iops-Generic-custom |
datastore-snapshot [code] | Virt-VMWare2-Datastore-Snapshots-Generic-custom |
datastore-usage [code] | Virt-VMWare2-Datastore-Usage-Generic-custom |
datastore-vm [code] | Not used in this Monitoring Connector |
device-vm [code] | Not used in this Monitoring Connector |
discovery [code] | Used for host discovery |
getmap [code] | Not used in this Monitoring Connector |
health-host [code] | Virt-VMWare2-ESX-Health-Generic-custom |
licenses [code] | Not used in this Monitoring Connector |
limit-vm [code] | Not used in this Monitoring Connector |
list-clusters [code] | Not used in this Monitoring Connector |
list-datacenters [code] | Not used in this Monitoring Connector |
list-datastores [code] | Used for service discovery |
list-nichost [code] | Used for service discovery |
maintenance-host [code] | Virt-VMWare2-ESX-Maintenance-Generic-custom |
memory-host [code] | Virt-VMWare2-ESX-Memory-Generic-custom |
memory-vm [code] | Not used in this Monitoring Connector |
net-host [code] | Virt-VMWare2-ESX-Traffic-Generic-custom |
net-vm [code] | Not used in this Monitoring Connector |
service-host [code] | Virt-VMWare2-ESX-Service-Generic-custom |
snapshot-vm [code] | Not used in this Monitoring Connector |
stat-connectors [code] | Not used in this Monitoring Connector |
status-cluster [code] | Not used in this Monitoring Connector |
status-host [code] | Virt-VMWare2-ESX-Status-Generic-custom |
status-vm [code] | Not used in this Monitoring Connector |
storage-host [code] | Virt-VMWare2-ESX-Storage-Generic-custom |
swap-host [code] | Virt-VMWare2-ESX-Swap-Generic-custom |
swap-vm [code] | Not used in this Monitoring Connector |
thinprovisioning-vm [code] | Not used in this Monitoring Connector |
time-host [code] | Virt-VMWare2-ESX-Time-Generic-custom |
tools-vm [code] | Not used in this Monitoring Connector |
uptime-host [code] | Virt-VMWare2-ESX-Uptime-Generic-custom |
vmoperation-cluster [code] | Not used in this Monitoring Connector |
vsan-cluster-usage [code] | Not used in this Monitoring Connector |
Available options​
Generic options​
All generic options are listed here:
Option | Description |
---|
--mode | Define the mode in which you want the plugin to be executed (see--list-mode). |
--dyn-mode | Specify a mode with the module's path (advanced). |
--list-mode | List all available modes. |
--mode-version | Check minimal version of mode. If not, unknown error. |
--version | Return the version of the plugin. |
--custommode | When a plugin offers several ways (CLI, library, etc.) to get information the desired one must be defined with this option. |
--list-custommode | List all available custom modes. |
--multiple | Multiple custom mode objects. This may be required by some specific modes (advanced). |
--pass-manager | Define the password manager you want to use. Supported managers are: environment, file, keepass, hashicorpvault and teampass. |
--verbose | Display extended status information (long output). |
--debug | Display debug messages. |
--filter-perfdata | Filter perfdata that match the regexp. Eg: adding --filter-perfdata='avg' will remove all metrics that do not contain 'avg' from performance data. |
--filter-perfdata-adv | Filter perfdata based on a "if" condition using the following variables: label, value, unit, warning, critical, min, max. Variables must be written either %{variable} or %(variable). Eg: adding --filter-perfdata-adv='not (%(value) == 0 and %(max) eq "")' will remove all metrics whose value equals 0 and that don't have a maximum value. |
--explode-perfdata-max | Create a new metric for each metric that comes with a maximum limit. The new metric will be named identically with a '_max' suffix). Eg: it will split 'used_prct'=26.93%;0:80;0:90;0;100 into 'used_prct'=26.93%;0:80;0:90;0;100 'used_prct_max'=100%;;;; |
--change-perfdata --extend-perfdata | Change or extend perfdata. Syntax: --extend-perfdata=searchlabel,newlabel,target[,[newuom],[min],[m ax]] Common examples: Convert storage free perfdata into used: --change-perfdata=free,used,invert() Convert storage free perfdata into used: --change-perfdata=used,free,invert() Scale traffic values automatically: --change-perfdata=traffic,,scale(auto) Scale traffic values in Mbps: --change-perfdata=traffic_in,,scale(Mbps),mbps Change traffic values in percent: --change-perfdata=traffic_in,,percent() |
--extend-perfdata-group | Add new aggregated metrics (min, max, average or sum) for groups of metrics defined by a regex match on the metrics' names. Syntax: --extend-perfdata-group=regex,namesofnewmetrics,calculation[,[ne wuom],[min],[max]] regex: regular expression namesofnewmetrics: how the new metrics' names are composed (can use $1, $2... for groups defined by () in regex). calculation: how the values of the new metrics should be calculated newuom (optional): unit of measure for the new metrics min (optional): lowest value the metrics can reach max (optional): highest value the metrics can reach Common examples: Sum wrong packets from all interfaces (with interface need --units-errors=absolute): --extend-perfdata-group=',packets_wrong,sum(packets_(discard |error)_(in|out))' Sum traffic by interface: --extend-perfdata-group='traffic_in_(.*),traffic_$1,sum(traf fic_(in|out)_$1)' |
--change-short-output --change-long-output | Modify the short/long output that is returned by the plugin. Syntax: --change-short-output=pattern~replacement~modifier Most commonly used modifiers are i (case insensitive) and g (replace all occurrences). Eg: adding --change-short-output='OK~Up~gi' will replace all occurrences of 'OK', 'ok', 'Ok' or 'oK' with 'Up' |
--change-exit | Replace an exit code with one of your choice. Eg: adding --change-exit=unknown=critical will result in a CRITICAL state instead of an UNKNOWN state. |
--range-perfdata | Rewrite the ranges displayed in the perfdata. Accepted values: 0: nothing is changed. 1: if the lower value of the range is equal to 0, it is removed. 2: remove the thresholds from the perfdata. |
--filter-uom | Mask the units when they don't match the given regular expression. |
--opt-exit | Replace the exit code in case of an execution error (i.e. wrong option provided, SSH connection refused, timeout, etc). Default: unknown. |
--output-ignore-perfdata | Remove all the metrics from the service. The service will still have a status and an output. |
--output-ignore-label | Remove the status label ("OK:", "WARNING:", "UNKNOWN:", CRITICAL:") from the beginning of the output. Eg: 'OK: Ram Total:...' will become 'Ram Total:...' |
--output-xml | Return the output in XML format (to send to an XML API). |
--output-json | Return the output in JSON format (to send to a JSON API). |
--output-openmetrics | Return the output in OpenMetrics format (to send to a tool expecting this format). |
--output-file | Write output in file (can be combined with json, xml and openmetrics options). E.g.: --output-file=/tmp/output.txt will write the output in /tmp/output.txt. |
--disco-format | Applies only to modes beginning with 'list-'. Returns the list of available macros to configure a service discovery rule (formatted in XML). |
--disco-show | Applies only to modes beginning with 'list-'. Returns the list of discovered objects (formatted in XML) for service discovery. |
--float-precision | Define the float precision for thresholds (default: 8). |
--source-encoding | Define the character encoding of the response sent by the monitored resource Default: 'UTF-8'. |
--connector-hostname | Connector hostname (required). |
--connector-port | Connector port (default: 5700). |
--container | Container to use (it depends on the connector's configuration). |
--vsphere-address | Address of vpshere/ESX to connect. |
--vsphere-username | Username of vpshere/ESX connection (with --vsphere-address). |
--vsphere-password | Password of vpshere/ESX connection (with --vsphere-address). |
--timeout | Set global execution timeout (Default: 50) |
--sampling-period | Choose the sampling period (can change the default sampling for counters). Should be not different than 300 or 20. |
--time-shift | Can shift the time. We the following option you can average X counters values (default: 0). |
--case-insensitive | Searchs are case insensitive. |
--unknown-connector-status | Set unknown threshold for connector status (Default: '%{code} \< 0 || (%{code} > 0 && %{code} \< 200)'). You can use the following variables: %{code}, %{short_message}, %{extra_message}. |
--warning-connector-status | Set warning threshold for connector status (Default: ''). You can use the following variables: %{code}, %{short_message}, %{extra_message}. |
--critical-connector-status | Set critical threshold for connector status (Default: ''). You can use the following variables: %{code}, %{short_message}, %{extra_message}. |
Modes options​
All available options for each service template are listed below:
- Datastore-Io
- Datastore-Iops
- Datastore-Snapshots
- Datastore-Usage
- Datastore-Vm-Count
- ESX-Alarms
- Esx-Cpu
- Esx-Datastores-Latency
- Esx-Health
- Esx-Memory
- Esx-Service
- Esx-Status
- Esx-Storage
- Esx-Swap
- Esx-Time
- Esx-Traffic
- Esx-Uptime
- Esx-Vm-Count
- Esx-is-Maintenance
Option | Description |
---|
--datastore-name | The connector will only take into account alerts coming from the datastores listed here |
--filter | Datastore name is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} |
--warning-* | Warning threshold. Can be: 'total-read', 'total-write', 'read', 'write'. |
--critical-* | Critical threshold. Can be: 'total-read', 'total-write', 'read', 'write'. |
Option | Description |
---|
--datastore-name | The connector will only take into account alerts coming from the datastores listed here |
--filter | Datastore name is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--detail-iops-min | Only display VMs with iops higher value (default: 50). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} |
--warning- --critical- | Thresholds. Can be: 'read-total', 'write-total', 'read', 'write', 'read-vm', 'write-vm'. |
Option | Description |
---|
--datastore-name | The connector will only take into account alerts coming from the datastores listed here |
--filter | Datastore name is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} |
--warning-* | Warning threshold. Can be: 'total', 'snapshot'. |
--critical-* | Critical threshold. Can be: 'total', 'snapshot'. |
Option | Description |
---|
--datastore-name | The connector will only take into account alerts coming from the datastores listed here |
--filter | Datastore name is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--filter-host | Filter datastores attached to hosts (can be a regexp). |
--refresh | Explicitly ask vmware to refreshes free-space and capacity values (slower). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} |
--warning- --critical- | Thresholds. Can be: Can be: 'usage' (B), 'usage-free' (B), 'usage-prct' (%), 'provisioned'. |
Option | Description |
---|
--datastore-name | The connector will only take into account alerts coming from the datastores listed here |
--filter | Datastore name is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} |
--warning-* | Warning threshold. Can be: 'total-on', 'total-off', 'total-suspended', 'on', 'off', 'suspended'. |
--critical-* | Critical threshold. Can be: 'total-on', 'total-off', 'total-suspended', 'on', 'off', 'suspended'. |
Option | Description |
---|
--memcached | Memcached server to use (only one server). |
--redis-server | Redis server to use (only one server). Syntax: address[:port] |
--redis-attribute | Set Redis Options (--redis-attribute="cnx_timeout=5"). |
--redis-db | Set Redis database index. |
--failback-file | Failback on a local file if redis connection failed. |
--memexpiration | Time to keep data in seconds (Default: 86400). |
--statefile-dir | Define the cache directory (default: '/var/lib/centreon/centplugins'). |
--statefile-suffix | Define a suffix to customize the statefile name (Default: ''). |
--statefile-concat-cwd | If used with the '--statefile-dir' option, the latter's value will be used as a sub-directory of the current working directory. Useful on Windows when the plugin is compiled, as the file system and permissions are different from Linux. |
--statefile-format | Define the format used to store the cache. Available formats: 'dumper', 'storable', 'json' (default). |
--statefile-key | Define the key to encrypt/decrypt the cache. |
--statefile-cipher | Define the cipher algorithm to encrypt the cache (Default: 'AES'). |
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | Datacenter is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--filter-time | The connector will ignore any alert older than the time period specified here (in seconds). |
--memory | Check new alarms only. |
--warning-status | Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /yellow/i). You can use the following variables: %{status}, %{name}, %{entity}, %{type}. |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /red/i'). You can use the following variables: %{status}, %{name}, %{entity}, %{type}. |
--warning-* | Warning threshold. Can be: 'total-alarm-warning', 'total-alarm-critical'. |
--critical-* | Critical threshold. Can be: 'total-alarm-warning', 'total-alarm-critical'. |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning-* | Warning threshold. Can be: 'total-cpu', 'total-cpu-mhz', 'cpu'. |
--critical-* | Critical threshold. Can be: 'total-cpu', 'total-cpu-mhz', 'cpu'. |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--datastore-name | Datastore to check. If not set, we check all datastores. |
--filter-datastore | Datastore name is a regexp. |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning-* | Warning threshold. Can be: 'read-latency', 'write-latency'. |
--critical-* | Critical threshold. Can be: 'read-latency', 'write-latency'. |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--storage-status | Check storage(s) status. |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning- --critical- | Thresholds. Can be: 'total-problems', 'problems', 'problems-yellow', 'problems-red', 'sensor-temperature', 'sensor-fan', 'sensor-voltage', 'sensor-power'. |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--units | Units of thresholds (Default: '%') ('%', 'B'). |
--free | Thresholds are on free space left. |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning-consumed-memory | Warning threshold (can use unit option). |
--critical-consumed-memory | Critical threshold (can use unit option). |
--warning-overhead-memory | Overhead threshold. |
--critical-overhead-memory | Critical threshold. |
--warning-state-memory | Warning threshold. For state != 'high': --warning-state=0 |
--critical-state-memory | Critical threshold. For state != 'high': --warning-state=0 |
--no-memory-state | Don't check memory state. |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--filter-services | Filter services you want to check (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i && %{maintenance} =~ /false/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning-service-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{running}, %{label}, %{policy} |
--critical-service-status | Define the conditions to match for the status to be CRITICAL (Default: '%{policy} =~ /^on|automatic/i && !%{running}'). You can use the following variables: %{running}, %{label}, %{policy} |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--unknown-overall-status | Define the conditions to match for the status to be WARNING (Default: '%{overall_status} =~ /gray/i'). You can use the following variables: %{overall_status} |
--warning-overall-status | Define the conditions to match for the status to be WARNING (Default: '%{overall_status} =~ /yellow/i'). You can use the following variables: %{overall_status} |
--critical-overall-status | Define the conditions to match for the status to be CRITICAL (Default: '%{overall_status} =~ /red/i'). You can use the following variables: %{overall_status} |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--filter-adapter-name | Filter adapters by name (can be a regexp). |
--filter-lun-name | Filter luns by name (can be a regexp). |
--filter-path-name | Filter paths by name (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i && %{maintenance} =~ /false/i'). You can use the following variables: %{status}, %{maintenance} |
--warning-status | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{maintenance} |
--critical-status | Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{maintenance} |
--warning-adapter-status | Set warning threshold for adapter status. You can use the following variables: %{name}, %{host}, %{status} |
--critical-adapter-status | Set critical threshold for adapter status (Default: '%{status} =~ /fault/'). You can use the following variables: %{name}, %{host}, %{status} |
--warning-lun-status | Set warning threshold for lun status (Default: '%{status} =~ /degraded|quiesced/'). You can use the following variables: %{name}, %{host}, %{status} |
--critical-lun-status | Set critical threshold for lun status (Default: '%{status} =~ /lostcommunication|error/'). You can use the following variables: %{name}, %{host}, %{status} |
--warning-path-status | Set warning threshold for path status. You can use the following variables: %{name}, %{host}, %{status} |
--critical-path-status | Set critical threshold for path status (Default: '%{status} =~ /dead/'). You can use the following variables: %{name}, %{host}, %{status} |
--warning- --critical- | Thresholds. Can be: 'adapters-total', 'adapters-online', 'adapters-offline', 'adapters-fault', 'adapters-unknown', |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning-* | Warning threshold. Can be: 'swap-in', 'swap-out'. |
--critical-* | Critical threshold. Can be: 'swap-in', 'swap-out'. |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning-time | Warning threshold in seconds. |
--critical-time | Critical threshold in seconds. |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--nic-name | ESX nic to check. If not set, we check all nics. |
--filter-vswitch-name | Filter vswitch by name. It monitors only ESX nic that belongs to the filtered vswitches. |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--unknown-link-status | Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_status}, %{display} |
--warning-link-status | Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_status}, %{display} |
--critical-link-status | Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} !~ /up/'). You can use the following variables: %{link_status}, %{display} |
--warning- --critical- | Thresholds. Can be: 'host-traffic-in' (b/s), 'host-traffic-out' (b/s), 'vswitch-traffic-in' (b/s), 'vswitch-traffic-out' (b/s), 'link-traffic-in' (%), 'link-traffic-out' (%), 'link-dropped-in', 'link-dropped-out'. |
--no-proxyswitch | Use the following option if you are checking an ESX 3.x version (it's mandatory). |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning-time | Warning threshold in seconds. |
--critical-time | Critical threshold in seconds. |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning-* | Warning threshold. Can be: 'total-on', 'total-off', 'total-suspended', 'on', 'off', 'suspended'. |
--critical-* | Critical threshold. Can be: 'total-on', 'total-off', 'total-suspended', 'on', 'off', 'suspended'. |
Option | Description |
---|
--esx-hostname | Hostnames of the ESX to monitor. If not set, we check all ESX. |
--filter | ESX hostname is a regexp. |
--scope-datacenter | Search in following datacenter(s) (can be a regexp). |
--scope-cluster | Search in following cluster(s) (can be a regexp). |
--unknown-status | Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} |
--warning-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} |
--critical-status | Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} |
--warning-maintenance-status | Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{maintenance} |
--critical-maintenance-status | Define the conditions to match for the status to be CRITICAL (Default: '%{maintenance} !~ /false/'). You can use the following variables: %{maintenance} |
All available options for a given mode can be displayed by adding the
--help
parameter to the command:
/usr/lib/centreon/plugins/centreon_vmware_connector_client.pl \
--plugin=apps::vmware::connector::plugin \
--mode=countvm-host \
--help