OpenStack RESTAPI
Connector dependencies​
The following monitoring connectors will be installed when you install the OpenStack RESTAPI connector through the Configuration > Connectors > Monitoring Connectors menu:
Pack assets​
Templates​
The Monitoring Connector OpenStack RESTAPI brings 2 host templates:
- Cloud-Openstack-RestAPI-Project-custom
- Cloud-Openstack-RestAPI-Services-custom
The connector brings the following service templates (sorted by the host template they are attached to):
- Cloud-Openstack-RestAPI-Project-custom
- Cloud-Openstack-RestAPI-Services-custom
- Not attached to a host template
| Service Alias | Service Template | Service Description | Discovery |
|---|---|---|---|
| Hypervisor | Cloud-Openstack-RestAPI-Project-Hypervisor-custom | Check an Openstack hypervisor | X |
| Instance | Cloud-Openstack-RestAPI-Project-Instance-custom | Check an Openstack VM | X |
| Network | Cloud-Openstack-RestAPI-Project-Network-custom | Check an Openstack network | X |
| Port | Cloud-Openstack-RestAPI-Project-Port-custom | Check an Openstack port | X |
| Volume | Cloud-Openstack-RestAPI-Project-Volume-custom | Check an Openstack volume | X |
The services listed above are created automatically when the Cloud-Openstack-RestAPI-Project-custom host template is used.
If Discovery is checked, it means a service discovery rule exists for this service template.
| Service Alias | Service Template | Service Description |
|---|---|---|
| Cinder | Cloud-Openstack-RestAPI-Service-Cinder-custom | Check Openstack Cinder service |
| Glance | Cloud-Openstack-RestAPI-Service-Glance-custom | Check Openstack Glance service |
| Horizon | Cloud-Openstack-RestAPI-Service-Horizon-custom | Check Openstack Horizon dashboard |
| Keystone | Cloud-Openstack-RestAPI-Service-Keystone-custom | Check Openstack Keystone service |
| Neutron | Cloud-Openstack-RestAPI-Service-Neutron-custom | Check Openstack Neutron service |
| Nova | Cloud-Openstack-RestAPI-Service-Nova-custom | Check Openstack Nova service |
The services listed above are created automatically when the Cloud-Openstack-RestAPI-Services-custom host template is used.
| Service Alias | Service Template | Service Description | Discovery |
|---|---|---|---|
| LoadBalancer | Cloud-Openstack-RestAPI-Project-LoadBalancer-custom | Check an Openstack load balancer | X |
| Service | Cloud-Openstack-RestAPI-Service-Generic-custom | Check Openstack service | X |
| Octavia | Cloud-Openstack-RestAPI-Service-Octavia-custom | Check Openstack Octavia service |
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 |
|---|---|
| OpenStack Host | Discover hosts by requesting OpenStack using REST API |
| OpenStack Project | Discover OpenStack projects using REST API |
| OpenStack Services | Discover OpenStack services using REST API |
More information about discovering hosts automatically is available on the dedicated page.
Service discovery​
| Rule name | Description |
|---|---|
| Cloud-Openstack-RestAPI-Project-Hypervisor | Discover and monitor the hypervisors of a project |
| Cloud-Openstack-RestAPI-Project-Instance | Discover and monitor the instances of a project |
| Cloud-Openstack-RestAPI-Project-Loadbalancer | Discover and monitor the load balancers of a project |
| Cloud-Openstack-RestAPI-Project-Network | Discover and monitor the networks of a project |
| Cloud-Openstack-RestAPI-Project-Port | Discover and monitor the ports of a project |
| Cloud-Openstack-RestAPI-Project-Volume | Discover and monitor the volumes of a project |
| Cloud-Openstack-RestAPI-Service | Discover services and monitor their system usage |
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 and statuses linked to each service.
- Cinder
- Glance
- Horizon
- Hypervisor
- Instance
- Keystone
- LoadBalancer
- Network
- Neutron
- Nova
- Octavia
- Port
- Service
- Volume
| Name | Unit |
|---|---|
| count | N/A |
| status | N/A |
| Name | Unit |
|---|---|
| count | N/A |
| status | N/A |
| Name | Unit |
|---|---|
| count | N/A |
| status | N/A |
| Name | Unit |
|---|---|
| hypervisor.count | count |
| Name | Unit |
|---|---|
| instance.count | count |
| Name | Unit |
|---|---|
| count | N/A |
| status | N/A |
| Name | Unit |
|---|---|
| loadbalancer.count | count |
| Name | Unit |
|---|---|
| network.count | count |
| Name | Unit |
|---|---|
| count | N/A |
| status | N/A |
| Name | Unit |
|---|---|
| count | N/A |
| status | N/A |
| Name | Unit |
|---|---|
| count | N/A |
| status | N/A |
| Name | Unit |
|---|---|
| port.count | count |
| Name | Unit |
|---|---|
| count | N/A |
| status | N/A |
| Name | Unit |
|---|---|
| volume.count | count |
Prerequisites​
This connector allows you to monitor the operation of the various OpenStack services using REST API.
Please refer to the OpenStack documentation for more information on how to set up access to the OpenStack REST API.
Installing the monitoring connector​
Pack​
The installation procedures for monitoring connectors are slightly different depending on whether your license is offline or online.
- 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 > Connectors > Monitoring Connectors 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-cloud-openstack-restapi
dnf install centreon-pack-cloud-openstack-restapi
apt install centreon-pack-cloud-openstack-restapi
yum install centreon-pack-cloud-openstack-restapi
- Whatever the license type (online or offline), install the OpenStack RESTAPI connector through the Configuration > Connectors > Monitoring Connectors menu.
Plugin​
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-Cloud-OpenStack-Restapi
dnf install centreon-plugin-Cloud-OpenStack-Restapi
apt install centreon-plugin-cloud-openstack-restapi
yum install centreon-plugin-Cloud-OpenStack-Restapi
Using the monitoring connector​
Using a host template provided by the connector​
- Cloud-Openstack-RestAPI-Project-custom
- Cloud-Openstack-RestAPI-Services-custom
- Log into Centreon and add a new host through Configuration > Hosts.
- Fill in the Name, Alias & IP Address/DNS fields according to your resource's settings.
- Apply the Cloud-Openstack-RestAPI-Project-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 |
|---|---|---|---|
| USERDOMAINID | OpenStack user domain to use with authentication | default | |
| USERNAME | OpenStack username | ||
| PASSWORD | OpenStack password | ||
| AUTHENTBYENV | Set to 1 to use OpenStack environment variables if they are defined. Used environment variables are OS_USERNAME, OS_PASSWORD, OS_PROJECT_DOMAIN, OS_USER_DOMAIN, OS_PROJECT_NAME, OS_AUTH_URL | 0 | |
| AUTHENTBYFILE | Read OpenStack environment variables from a file. Handled environment variables are OS_USERNAME, OS_PASSWORD, OS_PROJECT_DOMAIN, OS_USER_DOMAIN, OS_PROJECT_NAME, OS_AUTH_URL. Those variables must be defined using 'export VARIABLE="value"' syntax | ||
| DISCOMODE | Specifies how OpenStack service endpoints are discovered. Can be 'auto', 'manual' or 'keystone'. With 'auto' mode services endpoints are retrieved from Keystone catalog except if a specific URL is provided with other options. With 'keystone' mode services endpoints are only retrieved from Keystone catalog. With 'manual' mode services endpoints are retrieved from command line options | auto | |
| EXCLUDEENDPOINTINTERFACE | |||
| IDENTITYURL | Set the URL to use for the OpenStack Keystone (identity) service. A valid Keystone URL is required since it is the authentication service. The first part of the Keystone URL is also used to define the cache filename. Example: --identity-url="https://myopenstack.local:5000" This URL can also be construct with options (--identity-hostname, --identity-proto, --identity-port, --identity-endpoint) | http://change\_me:5000 | |
| INCLUDEENDPOINTINTERFACE | |||
| PROJECTDOMAINID | OpenStack project domain id to use with authentication | default | |
| PROJECTID | Filter by OpenStack project id (tenant id). This filter is applied before any other filters and requires admin rights. When unset volumes are filtered based on the project used during authentication | ||
| PROJECTNAME | OpenStack project name to use with authentication | demo | |
| TIMEOUT | Set HTTP timeout in seconds. This timeout will only be used for other services if a more specific one is not already defined with other options | 10 |
- 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.
- Log into Centreon and add a new host through Configuration > Hosts.
- Fill in the Name, Alias & IP Address/DNS fields according to your resource's settings.
- Apply the Cloud-Openstack-RestAPI-Services-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 |
|---|---|---|---|
| USERDOMAINID | OpenStack user domain to use with authentication | default | |
| USERNAME | OpenStack username | ||
| PASSWORD | OpenStack password | ||
| AUTHENTBYFILE | Read OpenStack environment variables from a file. Handled environment variables are OS_USERNAME, OS_PASSWORD, OS_PROJECT_DOMAIN, OS_USER_DOMAIN, OS_PROJECT_NAME, OS_AUTH_URL. Those variables must be defined using 'export VARIABLE="value"' syntax | ||
| DISCOMODE | Specifies how OpenStack service endpoints are discovered. Can be 'auto', 'manual' or 'keystone'. With 'auto' mode services endpoints are retrieved from Keystone catalog except if a specific URL is provided with other options. With 'keystone' mode services endpoints are only retrieved from Keystone catalog. With 'manual' mode services endpoints are retrieved from command line options | auto | |
| EXCLUDEENDPOINTINTERFACE | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| HORIZONURL | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below | https://change\_me | |
| IDENTITYURL | Set the URL to use for the OpenStack Keystone (identity) service. A valid Keystone URL is required since it is the authentication service. The first part of the Keystone URL is also used to define the cache filename. Example: --identity-url="https://myopenstack.local:5000" This URL can also be construct with options (--identity-hostname, --identity-proto, --identity-port, --identity-endpoint) | http://change\_me:5000 | |
| INCLUDEENDPOINTINTERFACE | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| PROJECTDOMAINID | OpenStack project domain id to use with authentication | default | |
| PROJECTNAME | OpenStack project name to use with authentication | demo | |
| TIMEOUT | Set HTTP timeout in seconds. This timeout will only be used for other services if a more specific one is not already defined with other options | 10 |
- 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).
- Cinder
- Glance
- Horizon
- Hypervisor
- Instance
- Keystone
- LoadBalancer
- Network
- Neutron
- Nova
- Octavia
- Port
- Service
- Volume
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDETYPE | Filter by service type (can be a regexp and can be used multiple times or for comma separated values) | volume | |
| EXPECTEDDATA | Data that endpoint should return when it is normally working. When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable | auto | |
| ENDPOINTSUFFIX | Append a specific suffix to he endpoint URL URL for the heath check. When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended | auto | |
| SERVICEURL | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below | ||
| EXCLUDETYPE | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDENAME | Filter by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGION | Filter by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGION | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGIONID | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGIONID | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEINTERFACE | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| EXCLUDEINTERFACE | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDETYPE | Filter by service type (can be a regexp and can be used multiple times or for comma separated values) | image | |
| EXPECTEDDATA | Data that endpoint should return when it is normally working. When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable | auto | |
| ENDPOINTSUFFIX | Append a specific suffix to he endpoint URL URL for the heath check. When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended | auto | |
| SERVICEURL | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below | ||
| EXCLUDETYPE | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDENAME | Filter by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGION | Filter by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGION | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGIONID | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGIONID | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEINTERFACE | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| EXCLUDEINTERFACE | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDETYPE | Filter by service type (can be a regexp and can be used multiple times or for comma separated values) | dashboard | |
| EXPECTEDDATA | Data that endpoint should return when it is normally working. When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable | auto | |
| ENDPOINTSUFFIX | Append a specific suffix to he endpoint URL URL for the heath check. When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended | auto | |
| EXCLUDETYPE | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDENAME | Filter by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGION | Filter by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGION | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGIONID | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGIONID | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEINTERFACE | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| EXCLUDEINTERFACE | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDEHYPERVISORHOSTNAME | Filter by hypervisor hostname (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEHYPERVISORHOSTNAME | Exclude by hypervisor hostname (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDESTATUS | Filter by hypervisor status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: enabled, disabled | ||
| EXCLUDESTATUS | Exclude by hypervisor status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: enabled, disabled | ||
| INCLUDESTATE | Filter by hypervisor state (can be a regexp and can be used multiple times or for comma separated values). Valid values are: up, down | ||
| EXCLUDESTATE | Exclude by hypervisor state (can be a regexp and can be used multiple times or for comma separated values). Valid values are: up, down | ||
| INCLUDEID | Filter by hypervisor ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by hypervisor ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEHYPERVISORTYPE | Filter by hypervisor type (can be a regexp and can be used multiple times or for comma separated values) | ||
| WARNINGCOUNT | Warning threshold for the number of hypervisors returned | ||
| CRITICALCOUNT | Critical threshold for the number of hypervisors returned | ||
| WARNINGHYPERVISORHOSTNAME | Define the conditions to match for the status to be WARNING based on the hypervisor project id. Example: --warning-hypervisor-hostname='%{hypervisor-hostname} =~ /sample.com/' | ||
| CRITICALHYPERVISORHOSTNAME | Define the conditions to match for the status to be CRITICAL based on the hypervisor project id. Example: --critical-hypervisor-hostname='%{hypervisor-hostname} =~ /sample.com/' | ||
| WARNINGHYPERVISORTYPE | Define the conditions to match for the status to be WARNING based on the hypervisor type. Example: --warning-hypervisor-type='%{hypervisor-type} =~ /QEMU/' | ||
| CRITICALHYPERVISORTYPE | Define the conditions to match for the status to be CRITICAL based on the hypervisor type. Example: --critical-hypervisor-type='%{hypervisor-type} =~ /QEMU/' | ||
| WARNINGID | Define the conditions to match for the status to be WARNING based on the hypervisor id. Example: --warning-id='%{id} =~ /abcdef/' | ||
| CRITICALID | Define the conditions to match for the status to be CRITICAL based on the hypervisor id. Example: --critical-id='%{id} =~ /abcdef/' | ||
| WARNINGSTATUS | Define the conditions to match for the status to be WARNING based on the hypervisor status (enabled or disabled). Example: --warning-status='%{status} =~ /disabled/' | %{status} !~ /enabled/ | |
| CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL based on the hypervisor status (enabled or disabled). Example: --critical-status='%{status} =~ /disabled/' | %{status} =~ /enabled/ && %{state} !~ /up/ | |
| EXTRAOPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDENAME | Filter by instance name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by instance name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by instance id (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by instance id (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDESTATUS | Filter by instance status (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/api-guide/compute/server\_concepts.html for more information about status | ||
| EXCLUDESTATUS | Exclude by instance status (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/api-guide/compute/server\_concepts.html for more information about status | ||
| INCLUDEIMAGE | Filter by instance image type name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEIMAGE | Exclude by instance image type name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEFLAVOR | Filter by instance flavor type name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEFLAVOR | Exclude by instance flavor type name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEHOST | Exclude by instance host name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEINSTANCENAME | Filter by instance Nova instance name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEINSTANCENAME | Exclude by instance Nova instance name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEZONE | Filter by instance placement (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEZONE | Exclude by instance placement (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEVMSTATE | Filter by instance VM state (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/nova/latest/reference/vm-states.html for more information about VM states | ||
| EXCLUDEVMSTATE | Exclude by instance VM state (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/nova/latest/reference/vm-states.html for more information about VM states | ||
| WARNINGBOOKMARK | Define the conditions to match for the status to be WARNING based on the bookmark value. Example: --warning-bookmark='%{bookmark} =~ /abcd-defg/' | ||
| CRITICALBOOKMARK | Define the conditions to match for the status to be CRITICAL based on the bookmark value. Example: --critical-bookmark='%{bookmark} =~ /abcd-defg/' | ||
| WARNINGCOUNT | Warning threshold for the number of instances returned | ||
| CRITICALCOUNT | Critical threshold for the number of instances returned | ||
| WARNINGFLAVOR | Define the conditions to match for the status to be WARNING based on the flavor value. Example: --warning-flavor='%{flavor} =~ /1/' | ||
| CRITICALFLAVOR | Define the conditions to match for the status to be CRITICAL based on the flavor value. Example: --critical-flavor='%{flavor} =~ /1/' | ||
| WARNINGHOST | Define the conditions to match for the status to be WARNING based on the host value. Example: --warning-host='%{host} =~ /localhost/' | ||
| CRITICALHOST | Define the conditions to match for the status to be CRITICAL based on the host value. Example: --critical-host='%{host} =~ /localhost/' | ||
| WARNINGID | Define the conditions to match for the status to be WARNING based on the instance ID. Example: --warning-id='%{id} =~ /abcdf/' | ||
| CRITICALID | Define the conditions to match for the status to be CRITICAL based on the instance ID. Example: --critical-id='%{id} =~ /abcdf/' | ||
| WARNINGIMAGE | Define the conditions to match for the status to be WARNING based on the image value. Example: --warning-image='%{image} =~ /image/' | ||
| CRITICALIMAGE | Define the conditions to match for the status to be CRITICAL based on the image value. Example: --critical-image='%{image} =~ /image/' | ||
| WARNINGINSTANCENAME | Define the conditions to match for the status to be WARNING based on the instance name. Example: --warning-instance-name='%{instance_name} =~ /test/' | ||
| CRITICALINSTANCENAME | Define the conditions to match for the status to be CRITICAL based on the instance name. Example: --critical-instance-name='%{instance_name} =~ /test/' | ||
| WARNINGIP | Define the conditions to match for the status to be WARNING based on the IP. Example: --warning-ip='%{ip} =~ /127/' | ||
| CRITICALIP | Define the conditions to match for the status to be CRITICAL based on the IP. Example: --critical-ip='%{ip} =~ /127/' | ||
| WARNINGPROJECTID | Define the conditions to match for the status to be WARNING based on the project ID. Example: --warning-project-id='%{project_id} =~ /1/' | ||
| CRITICALPROJECTID | Define the conditions to match for the status to be CRITICAL based on the project ID. Example: --critical-project-id='%{project_id} =~ /1/' | ||
| CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL based on the status value. Example: --critical-status='%{status} =~ /ERROR/' | %{status} !~ /active/i | |
| WARNINGSTATUS | Define the conditions to match for the status to be WARNING based on the status value. Example: --warning-status='%{status} =~ /ACTIVE/' | ||
| WARNINGZONE | Define the conditions to match for the status to be WARNING based on the zone value. Example: --warning-zone='%{zone} =~ /nova/' | ||
| CRITICALZONE | Define the conditions to match for the status to be CRITICAL based on the zone value. Example: --critical-zone='%{zone} =~ /nova/' | ||
| EXTRAOPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDETYPE | Filter by service type (can be a regexp and can be used multiple times or for comma separated values) | identity | |
| EXPECTEDDATA | Data that endpoint should return when it is normally working. When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable | auto | |
| ENDPOINTSUFFIX | Append a specific suffix to he endpoint URL URL for the heath check. When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended | auto | |
| SERVICEURL | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below | ||
| EXCLUDETYPE | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDENAME | Filter by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGION | Filter by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGION | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGIONID | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGIONID | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEINTERFACE | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| EXCLUDEINTERFACE | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDENAME | Filter by load balancer name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by load balancer name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEOPERATINGSTATUS | Filter by load balancer operating status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR | ||
| EXCLUDEOPERATINGSTATUS | Exclude by load balancer operating status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR | ||
| INCLUDEPROVISIONINGSTATUS | Filter by load balancer provisioning status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: ACTIVE, ERROR, PENDING_CREATE, PENDING_UPDATE, PENDING_DELETE | ||
| EXCLUDEPROVISIONINGSTATUS | |||
| INCLUDEDESCRIPTION | Filter by load balancer description (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEDESCRIPTION | Exclude by load balancer description (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEADMINSTATEUP | Filter by load balancer admin state up flag (can be True or False) | ||
| EXCLUDEADMINSTATEUP | Exclude by load balancer admin state up flag (can be True or False) | ||
| INCLUDEPROVIDER | Filter by load balancer provider (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEPROVIDER | Exclude by load balancer provider (can be a regexp and can be used multiple times or for comma separated values) | ||
| WARNINGADMINSTATEUP | Define the conditions to match for the status to be WARNING based on the admin state up flag (can be True or False). Example: --warning-admin-state-up='%{admin_state_up} =~ /False/' | ||
| CRITICALADMINSTATEUP | Define the conditions to match for the status to be CRITICAL based on the admin state up flag (can be True or False). Example: --critical-admin-state-up='%{admin_state_up} =~ /False/' | ||
| WARNINGCOUNT | Warning threshold for the number of load balancers returned | ||
| CRITICALCOUNT | Critical threshold for the number of load balancers returned | ||
| WARNINGDESCRIPTION | Define the conditions to match for the status to be WARNING based on the load balancer description. Example: --warning-description='%{description} =~ /test lb/' | ||
| CRITICALDESCRIPTION | Define the conditions to match for the status to be CRITICAL based on the load balancer description. Example: --critical-description='%{description} =~ /test lb/' | ||
| WARNINGID | Define the conditions to match for the status to be WARNING based on the load balancer ID. Example: --warning-id='%{id} =~ /abcdef/' | ||
| CRITICALID | Define the conditions to match for the status to be CRITICAL based on the load balancer ID. Example: --critical-id='%{id} =~ /abcdef/' | ||
| WARNINGLISTENERCOUNT | Warning threshold for the number of listeners per load balancers | ||
| CRITICALLISTENERCOUNT | Critical threshold for the number of listeners per load balancers | ||
| WARNINGNAME | Define the conditions to match for the status to be WARNING based on the load balancer name. Example: --critical-name='%{name} =~ /abcd/' | ||
| CRITICALNAME | Define the conditions to match for the status to be CRITICAL based on the load balancer name. Example: --critical-name='%{name} =~ /abcd/' | ||
| WARNINGOPERATINGSTATUS | Define the conditions to match for the status to be WARNING based on the load balancer operating status. Valid operating status are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR Example: --warning-operating-status='%{operating_status} =~ /DEGRADED/' | %{operating_status} =~ /DEGRADED|DRAINING|MONITOR/ | |
| CRITICALOPERATINGSTATUS | Define the conditions to match for the status to be CRITICAL based on the load balancer operating status. Valid operating status are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR Example: --critical-operating-status='%{operating_status} =~ /ERROR/' | %{operating_status} =~ /ERROR/ | |
| WARNINGPOOLCOUNT | Warning threshold for the number of pools per load balancers | ||
| CRITICALPOOLCOUNT | Critical threshold for the number of pools per load balancers | ||
| WARNINGPROJECTID | |||
| CRITICALPROJECTID | |||
| WARNINGPROVIDER | Define the conditions to match for the status to be WARNING based on the provider. Example: --warning-provider='%{provider} =~ /octavia/' | ||
| CRITICALPROVIDER | Define the conditions to match for the status to be CRITICAL based on the provider. Example: --critical-provider='%{provider} =~ /octavia/' | ||
| WARNINGPROVISIONINGSTATUS | Define the conditions to match for the status to be WARNING based on the load balancer provisioning status. Valid provisioning status are: ACTIVE, ERROR, PENDING_CREATE, PENDING_UPDATE, PENDING_DELETE Example: --warning-provisioning-status='%{provisioning_status} =~ /DEGRADED/' | ||
| CRITICALPROVISIONINGSTATUS | Define the conditions to match for the status to be CRITICAL based on the load balancer provisioning status. Valid provisioning status are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR Example: --critical-provisioning-status='%{provisioning_status} =~ /ERROR/' | ||
| WARNINGVIPADDRESS | Define the conditions to match for the status to be WARNING based on the VIP Address. Example: --warning-vip-address='%{vip_address} =~ /127.0.0.1/' | ||
| CRITICALVIPADDRESS | Define the conditions to match for the status to be CRITICAL based on the VIP Address. Example: --critical-vip-addressr='%{vip_address} =~ /127.0.0.1/' | ||
| EXTRAOPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDENAME | Filter by network name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by network name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDESTATUS | Filter by network status (can be a regexp and can be used multiple times or for comma separated values). Can be: ACTIVE, BUILD, DOWN, or ERROR | ||
| EXCLUDESTATUS | Exclude by network status (can be a regexp and can be used multiple times or for comma separated values). Can be: ACTIVE, BUILD, DOWN, or ERROR | ||
| INCLUDEADMINSTATEUP | Filter by network admin state up flag (can be True or False) | ||
| EXCLUDEADMINSTATEUP | |||
| INCLUDEMTU | Filter by network MTU | ||
| EXCLUDEMTU | Exclude by network MTU | ||
| INCLUDESHARED | Filter by network shared flag (can be True or False) | ||
| EXCLUDESHARED | Exclude by network shared flag (can be True or False) | ||
| INCLUDEPORTSECURITYENABLED | Filter by network port security enabled flag (can be True or False) | ||
| EXCLUDEPORTSECURITYENABLED | Exclude by network port security enabled flag (can be True or False) | ||
| INCLUDEROUTEREXTERNAL | Filter by network router external flag (can be True or False) | ||
| EXCLUDEROUTEREXTERNAL | Exclude by network router external flag (can be True or False) | ||
| INCLUDEID | Filter by network ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by network ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| WARNINGADMINSTATEUP | Define the conditions to match for the status to be WARNING based on the admin stat up flag (can be 0 or 1). Example: --warning-admin-state-up='%{admin_state_up} eq "1"' | ||
| CRITICALADMINSTATEUP | Define the conditions to match for the status to be CRITICAL based on the admin state up flag (can be 0 or 1). Example: --warning-admin-state-up='%{admin_state_up} eq "1"' | ||
| WARNINGCOUNT | Warning threshold for the number of networks returned | ||
| CRITICALCOUNT | Critical threshold for the number of networks returned | ||
| WARNINGID | Define the conditions to match for the status to be WARNING based on the network ID. Example: --warning-id='%{id} =~ /abcdef/' | ||
| CRITICALID | Define the conditions to match for the status to be CRITICAL based on the network ID. Example: --critical-id='%{id} =~ /abcdef/' | ||
| WARNINGMTU | Define the conditions to match for the status to be WARNING based on the network MTU | ||
| CRITICALMTU | Define the conditions to match for the status to be CRITICAL based on the network MTU | ||
| WARNINGPORTSECURITYENABLED | Define the conditions to match for the status to be WARNING based on the port-security-enabled flag (can be 0 or 1). Example: --warning-port-security-enabled='%{port_security_enabled} eq "1"' | ||
| CRITICALPORTSECURITYENABLED | Define the conditions to match for the status to be CRITICAL based on the port-security-enabled flag (can be 0 or 1). Example: --warning-port-security-enabled='%{port_security_enabled} eq "1"' | ||
| WARNINGPROJECTID | Define the conditions to match for the status to be WARNING based on the network project ID | ||
| CRITICALPROJECTID | Define the conditions to match for the status to be CRITICAL based on the network project ID | ||
| WARNINGROUTEREXTERNAL | Define the conditions to match for the status to be WARNING based on the router-external flag (can be 0 or 1). Example: --warning-router-external='%{router_external} eq "1"' | ||
| CRITICALROUTEREXTERNAL | Define the conditions to match for the status to be CRITICAL based on the router-external flag (can be 0 or 1). Example: --warning-router-external='%{router_external} eq "1"' | ||
| WARNINGSHARED | Define the conditions to match for the status to be WARNING based on the shared flag (can be 0 or 1). Example: --warning-shared='%{shared} eq "1"' | ||
| CRITICALSHARED | Define the conditions to match for the status to be CRITICAL based on the shared flag (can be 0 or 1). Example: --warning-shared='%{shared} eq "1"' | ||
| CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL based on the network status. Status can be: ACTIVE, BUILD, DOWN, or ERROR. Example: --critical-status='%{status} =~ /ERROR/' | %{status} !~ /ACTIVE/ | |
| WARNINGSTATUS | Define the conditions to match for the status to be WARNING based on the network status. Status can be: ACTIVE, BUILD, DOWN, or ERROR. Example: --warning-status='%{status} =~ /DOWN/' | ||
| EXTRAOPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDETYPE | Filter by service type (can be a regexp and can be used multiple times or for comma separated values) | network | |
| EXPECTEDDATA | Data that endpoint should return when it is normally working. When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable | auto | |
| ENDPOINTSUFFIX | Append a specific suffix to he endpoint URL URL for the heath check. When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended | auto | |
| SERVICEURL | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below | ||
| EXCLUDETYPE | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDENAME | Filter by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGION | Filter by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGION | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGIONID | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGIONID | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEINTERFACE | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| EXCLUDEINTERFACE | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDETYPE | Filter by service type (can be a regexp and can be used multiple times or for comma separated values) | compute | |
| EXPECTEDDATA | Data that endpoint should return when it is normally working. When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable | auto | |
| ENDPOINTSUFFIX | Append a specific suffix to he endpoint URL URL for the heath check. When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended | auto | |
| SERVICEURL | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below | ||
| EXCLUDETYPE | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDENAME | Filter by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGION | Filter by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGION | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGIONID | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGIONID | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEINTERFACE | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| EXCLUDEINTERFACE | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDETYPE | Filter by service type (can be a regexp and can be used multiple times or for comma separated values) | loadbalancer | |
| EXPECTEDDATA | Data that endpoint should return when it is normally working. When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable | auto | |
| ENDPOINTSUFFIX | Append a specific suffix to he endpoint URL URL for the heath check. When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended | auto | |
| SERVICEURL | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below | ||
| EXCLUDETYPE | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDENAME | Filter by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGION | Filter by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGION | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGIONID | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGIONID | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEINTERFACE | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| EXCLUDEINTERFACE | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDENAME | Filter by port name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by port name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDESTATUS | Filter by port status (can be a regexp and can be used multiple times or for comma separated values). Can be: ACTIVE, BUILD, DOWN or ERROR | ||
| EXCLUDESTATUS | Exclude by port status (can be a regexp and can be used multiple times or for comma separated values). Can be: ACTIVE, BUILD, DOWN or ERROR | ||
| INCLUDEPORTSECURITYENABLED | Filter by port security enabled flag (can be True or False) | ||
| EXCLUDEPORTSECURITYENABLED | Exclude by port security enabled flag (can be True or False) | ||
| INCLUDEDESCRIPTION | Filter by port description (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEDESCRIPTION | Exclude by port description (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEADMINSTATEUP | Filter by port admin state up flag (can be True or False) | ||
| EXCLUDEADMINSTATEUP | Exclude by port admin state up flag (can be True or False) | ||
| INCLUDEID | Filter by port ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by port ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| WARNINGADMINSTATEUP | Define the conditions to match for the status to be WARNING based on the admin state up flag (can be True or False). Example: --warning-admin-state-up='%{admin_state_up} eq "True"' | ||
| CRITICALADMINSTATEUP | Define the conditions to match for the status to be CRITICAL based on the admin state up flag (can be True or False). Example: --critical-admin-state-up='%{admin_state_up} eq "True"' | ||
| WARNINGCOUNT | Warning threshold for the number of ports returned | ||
| CRITICALCOUNT | Critical threshold for the number of ports returned | ||
| WARNINGDESCRIPTION | Define the conditions to match for the status to be WARNING based on the port description. Example: --warning-description='%{description} =~ /test port/' | ||
| CRITICALDESCRIPTION | Define the conditions to match for the status to be CRITICAL based on the port description. Example: --critical-description='%{description} =~ /test port/' | ||
| WARNINGID | Define the conditions to match for the status to be WARNING based on the port id. Example: --warning-id='%{id} =~ /abcdef/' | ||
| CRITICALID | Define the conditions to match for the status to be CRITICAL based on the port id. Example: --critical-id='%{id} =~ /abcdef/' | ||
| WARNINGPORTSECURITYENABLED | Define the conditions to match for the status to be WARNING based on the port security enabled flag (can be True or False). Example: --warning-port-security-enabled='%{port_security_enabled} eq "True"' | ||
| CRITICALPORTSECURITYENABLED | Define the conditions to match for the status to be CRITICAL based on the port security enabled flag (can be True or False). Example: --critical-port-security-enabled='%{port_security_enabled} eq "True"' | ||
| WARNINGPROJECTID | Define the conditions to match for the status to be WARNING based on the port project id. Example: --warning-project-id='%{project-id} =~ /abcdef/' | ||
| CRITICALPROJECTID | Define the conditions to match for the status to be CRITICAL based on the port project id. Example: --critical-project-id='%{project-id} =~ /abcdef/' | ||
| CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL based on the port status. Status can be: ACTIVE, BUILD, DOWN or ERROR Example: --critical-status='%{status} =~ /ERROR/' | %{status} !~ /ACTIVE/ | |
| WARNINGSTATUS | Define the conditions to match for the status to be WARNING based on the port status. Status can be: ACTIVE, BUILD, DOWN or ERROR Example: --warning-status='%{status} =~ /ERROR/' | ||
| EXTRAOPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| SERVICEURL | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below | ||
| INCLUDETYPE | Filter by service type (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDETYPE | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDENAME | Filter by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGION | Filter by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGION | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEREGIONID | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEREGIONID | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEINTERFACE | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| EXCLUDEINTERFACE | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin' | ||
| EXPECTEDDATA | Data that endpoint should return when it is normally working. When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable | auto | |
| ENDPOINTSUFFIX | Append a specific suffix to he endpoint URL URL for the heath check. When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended | auto |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| INCLUDENAME | Filter by volume name (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDENAME | Exclude by volume name (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDESTATUS | Filter by volume status (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/api-ref/block-storage/v3/#volumes-status for more information about status | ||
| EXCLUDESTATUS | Exclude by volume status (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/api-ref/block-storage/v3/#volumes-status for more information about status | ||
| INCLUDEDESCRIPTION | Filter by volume description (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEDESCRIPTION | Exclude by volume description (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEBOOTABLE | Filter by volume bootable flag (can be 0 or 1) | ||
| EXCLUDEBOOTABLE | Exclude by volume bootable flag (can be 0 or 1) | ||
| INCLUDEENCRYPTED | Filter by volume encrypted flag (can be 0 or 1) | ||
| EXCLUDEENCRYPTED | Exclude by volume encrypted flag (can be 0 or 1) | ||
| INCLUDEZONE | Filter by volume availability zone (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEZONE | Exclude by volume availability zone (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDEID | Filter by volume ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDEID | Exclude by volume ID (can be a regexp and can be used multiple times or for comma separated values) | ||
| INCLUDETYPE | Filter by volume type (can be a regexp and can be used multiple times or for comma separated values) | ||
| EXCLUDETYPE | Exclude by volume type (can be a regexp and can be used multiple times or for comma separated values) | ||
| WARNINGATTACHMENTS | Warning threshold for the number of servers attached to the volume | ||
| CRITICALATTACHMENTS | Critical threshold for the number of servers attached to the volume | ||
| WARNINGBOOTABLE | Define the conditions to match for the status to be WARNING based on the volume bootable flag (can be 0 or 1). Example: --warning-bootable='%{bootable} eq "1"' | ||
| CRITICALBOOTABLE | Define the conditions to match for the status to be CRITICAL based on the volume bootable flag (can be 0 or 1). Example: --critical-bootable='%{bootable} eq "1"' | ||
| WARNINGCOUNT | Warning threshold for the number of volumes returned | ||
| CRITICALCOUNT | Critical threshold for the number of volumes returned | ||
| WARNINGDESCRIPTION | Define the conditions to match for the status to be WARNING based on the volume description. Example: --warning-description='%{description} =~ /test volume/' | ||
| CRITICALDESCRIPTION | Define the conditions to match for the status to be CRITICAL based on the volume description. Example: --critical-description='%{description} =~ /test volume/' | ||
| WARNINGENCRYPTED | Define the conditions to match for the status to be WARNING based on the encrypted flag (can be 0 or 1). Example: --warning-encrypted='%{encrypted} eq "1"' | ||
| CRITICALENCRYPTED | Define the conditions to match for the status to be CRITICAL based on the encrypted flag (can be 0 or 1). Example: --critical-encrypted='%{encrypted} eq "1"' | ||
| WARNINGID | Define the conditions to match for the status to be WARNING based on the volume id. Example: --warning-id='%{id} =~ /abcdef/' | ||
| CRITICALID | Define the conditions to match for the status to be CRITICAL based on the volume id. Example: --critical-id='%{id} =~ /abcdef/' | ||
| WARNINGSIZE | Define the conditions to match for the status to be WARNING based on the volume size. Example: --warning-size='%{size} =~ /1 GB/' | ||
| CRITICALSIZE | Define the conditions to match for the status to be CRITICAL based on the volume size. Example: --critical-size='%{size} =~ /1 GB/' | ||
| WARNINGSTATUS | Define the conditions to match for the status to be WARNING based on the volume status. Example: --warning-status='%{status} =~ /downloading/' Please refer to https://docs.openstack.org/api-ref/block-storage/v3/#volumes-status for more information about status | %{status} =~ /(restoring-backup|backing-up|deleting)/ | |
| CRITICALSTATUS | Define the conditions to match for the status to be CRITICAL based on the volume status. Example: --critical-status='%{status} =~ /downloading/' Please refer to https://docs.openstack.org/api-ref/block-storage/v3/#volumes-status for more information about status | %{status} =~ /error/ | |
| WARNINGTYPE | Define the conditions to match for the status to be WARNING based on the volume type. Example: --warning-type='%{type} =~ /sdd/' | ||
| CRITICALTYPE | Define the conditions to match for the status to be CRITICAL based on the volume type. Example: --critical-type='%{type} =~ /sdd/' | ||
| WARNINGZONE | Define the conditions to match for the status to be WARNING based on the volume availability zone. Example: --warning-type='%{zone} =~ /nova/' | ||
| CRITICALZONE | Define the conditions to match for the status to be CRITICAL based on the volume availability zone. Example: --critical-type='%{zone} =~ /nova/' | ||
| EXTRAOPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). 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_openstack_restapi.pl \
--plugin=cloud/openstack/restapi/plugin.pm \
--mode=volume \
--identity-url='http://change\_me:5000' \
--timeout='10' \
--username='username' \
--password='password' \
--user-domain-id='default' \
--project-name='demo' \
--project-domain-id='default' \
--authent-by-env='0' \
--authent-by-file='' \
--disco-mode='' \
--filter-project-id='' \
--include-endpoint-interface='' \
--exclude-endpoint-interface='' \
--include-name='' \
--exclude-name='' \
--include-status='' \
--exclude-status='' \
--include-description='' \
--exclude-description='' \
--include-bootable='' \
--exclude-bootable='' \
--include-encrypted='' \
--exclude-encrypted='' \
--include-zone='' \
--exclude-zone='' \
--include-id='' \
--exclude-id='' \
--include-type='' \
--exclude-type='' \
--warning-count='' \
--critical-count='' \
--warning-status='%\{status\} =~ /(restoring-backup|backing-up|deleting)/' \
--critical-status='%\{status\} =~ /error/' \
--warning-id='' \
--critical-id='' \
--warning-type='' \
--critical-type='' \
--warning-description='' \
--critical-description='' \
--warning-size='' \
--critical-size='' \
--warning-project-id='$_SERVICEWARNINGPROJECT_ID$' \
--critical-project-id='$_SERVICECRITICALPROJECT_ID$' \
--warning-bootable='' \
--critical-bootable='' \
--warning-encrypted='' \
--critical-encrypted='' \
--warning-zone='' \
--critical-zone='' \
--warning-attachments='' \
--critical-attachments=''
The expected command output is shown below:
OK: Volume count: 35574 All volumes are ok | 'volume.count'=35574;;;0;
Troubleshooting​
Please find the troubleshooting documentation for the API-based plugins in this chapter.
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_openstack_restapi.pl \
--plugin=cloud/openstack/restapi/plugin.pm \
--list-mode
The plugin brings the following modes:
| Mode | Linked service template |
|---|---|
| discovery [code] | Used for host discovery |
| hypervisor [code] | Cloud-Openstack-RestAPI-Project-Hypervisor-custom |
| instance [code] | Cloud-Openstack-RestAPI-Project-Instance-custom |
| list-services [code] | Used for service discovery |
| loadbalancer [code] | Cloud-Openstack-RestAPI-Project-LoadBalancer-custom |
| network [code] | Cloud-Openstack-RestAPI-Project-Network-custom |
| port [code] | Cloud-Openstack-RestAPI-Project-Port-custom |
| project-discovery [code] | Not used in this Monitoring Connector |
| service [code] | Cloud-Openstack-RestAPI-Service-Cinder-custom Cloud-Openstack-RestAPI-Service-Glance-custom Cloud-Openstack-RestAPI-Service-Horizon-custom Cloud-Openstack-RestAPI-Service-Keystone-custom Cloud-Openstack-RestAPI-Service-Neutron-custom Cloud-Openstack-RestAPI-Service-Nova-custom Cloud-Openstack-RestAPI-Service-Octavia-custom Cloud-Openstack-RestAPI-Service-Generic-custom |
| volume [code] | Cloud-Openstack-RestAPI-Project-Volume-custom |
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. Example: 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). Example: 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. Example: 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[,[<new-unit-of-mesure>],[min],[max]] Common examples: onvert 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()' =back |
| --change-perfdata | Change or extend perfdata. Syntax: --extend-perfdata=searchlabel,newlabel,target[,[<new-unit-of-mesure>],[min],[max]] Common examples: onvert 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()' =back |
| --extend-perfdata | Change or extend perfdata. Syntax: --extend-perfdata=searchlabel,newlabel,target[,[<new-unit-of-mesure>],[min],[max]] Common examples: onvert 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()' =back |
| --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,<names-of-new-metrics>,calculation[,[<new-unit-of-mesure>],[min],[max]] regex: regular expression <names-of-new-metrics>: 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 <new-unit-of-mesure> (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: um 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(traffic_(in|out)_$1)' =back |
| --change-short-output --change-long-output | Modify the short/long output that is returned by the plugin. Syntax: --change-short-output=pattern |
| --change-short-output | Modify the short/long output that is returned by the plugin. Syntax: --change-short-output=pattern |
| --change-long-output | Modify the short/long output that is returned by the plugin. Syntax: --change-short-output=pattern |
| --change-exit | Replace an exit code with one of your choice. Example: adding --change-exit=unknown=critical will result in a CRITICAL state instead of an UNKNOWN state. |
| --change-output-adv | Replace short output and exit code based on a "if" condition using the following variables: short_output, exit_code. Variables must be written either %{variable} or %(variable). Example: adding --change-output-adv='%(short_ouput) =~ /UNKNOWN: No daemon/,OK: No daemon,OK' will change the following specific UNKNOWN result to an OK result. |
| --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. Example: '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). Example: --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'. <output>. |
| --filter-counters | Only display some counters (regexp can be used). Example to check SSL connections only : --filter-counters='^xxxx|yyyy$' |
| --http-peer-addr | Set the address you want to connect to. Useful if hostname is only a vhost, to avoid IP resolution. |
| --proxyurl | Proxy URL. Example: http://my.proxy:3128 |
| --proxypac | Proxy PAC file (can be a URL or a local file). |
| --insecure | Allow insecure TLS connection (default: '0'). This value will only be used for other services if a more specific one is not already defined with other options. |
| --http-backend | Perl library to use for HTTP transactions. Possible values are: lwp (default) and curl. |
| --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 | Fall back on a local file if Redis connection fails. |
| --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'). |
| --username | OpenStack username. |
| --password | OpenStack password. |
| --user-domain-id | OpenStack user domain to use with authentication (default: 'default'). |
| --project-name | OpenStack project name to use with authentication (default: 'demo'). |
| --project-domain-id | OpenStack project domain id to use with authentication (default: 'default'). |
| --timeout | Set HTTP timeout in seconds (default: '10'). This timeout will only be used for other services if a more specific one is not already defined with other options. |
| --authent-by-env | Set to 1 to use OpenStack environment variables if they are defined (default: 0). Used environment variables are OS_USERNAME, OS_PASSWORD, OS_PROJECT_DOMAIN, OS_USER_DOMAIN, OS_PROJECT_NAME, OS_AUTH_URL. |
| --authent-by-file | Read OpenStack environment variables from a file. Handled environment variables are OS_USERNAME, OS_PASSWORD, OS_PROJECT_DOMAIN, OS_USER_DOMAIN, OS_PROJECT_NAME, OS_AUTH_URL. Those variables must be defined using 'export VARIABLE="value"' syntax. |
| --hostname | Set default OpenStack service hostname. This hostname will only be used for other services if a more specific one is not already defined with other options. |
| --proto | Set default protocol to use (default: 'https'). This protocol will only be used for other services if a more specific one is not already defined with other options. |
| --disco-mode | Specifies how OpenStack service endpoints are discovered. Can be 'auto' (default), 'manual' or 'keystone'. With 'auto' mode services endpoints are retrieved from Keystone catalog except if a specific URL is provided with other options. With 'keystone' mode services endpoints are only retrieved from Keystone catalog. With 'manual' mode services endpoints are retrieved from command line options. |
| --identity-url | Set the URL to use for the OpenStack Keystone (identity) service. A valid Keystone URL is required since it is the authentication service. The first part of the Keystone URL is also used to define the cache filename. Example: --identity-url="https://myopenstack.local:5000" This URL can also be construct with options (--identity-hostname, --identity-proto, --identity-port, --identity-endpoint). |
| --identity-hostname | Set the hostname part of the Keystone service URL. |
| --identity-proto | Set the protocol to use in the Keystone service URL (default: 'https'). |
| --identity-port | Set the port to use in the Keystone service URL (default: 5000). |
| --identity-endpoint | Set the endpoint to use in the Keystone service URL (default: '/v3'). |
| --identity-insecure | Allow insecure TLS connection (default: '0'). When set to 0 the default insecure value passed with --insecure is used. |
| --identity-timeout | Set HTTP timeout in seconds (default: '0'). When set to 0 the default timeout value passed with --timeout is used. |
| --compute-url | Set the URL to use for the OpenStack Nova (compute) service. A valid Nova URL is required since it is a mandatory service. Nova URL is retrieved from Keystone catalog unless disco-mode is set to 'manual' or a specific URL is provided with this option. Example: --compute-url="https://myopenstack.local:8774" This URL can also be construct with options (--compute-hostname, --compute-proto, --compute-port, --compute-endpoint). |
| --compute-hostname | Set the hostname part of the Nova service URL. |
| --compute-proto | Set the protocol to use in the Nova service URL (default: 'https'). |
| --compute-port | Set the port to use in the Nova service URL (default: 8774). |
| --compute-endpoint | Set the endpoint to use in the Nova service URL (default: '/v2.1'). |
| --compute-insecure | Allow insecure TLS connection (default: '0'). When set to 0 the default insecure value passed with --insecure is used. |
| --compute-timeout | Set HTTP timeout in seconds (default: '0'). When set to 0 the default timeout value passed with --timeout is used. |
| --image-url | Set the URL to use for the OpenStack Glance (image) service. A valid Glance URL is required since it is a mandatory service. Glance URL is retrieved from Keystone catalog unless disco-mode is set to 'manual' or a specific URL is provided with this option. Example: --image-url="https://myopenstack.local:9292" This URL can also be construct with options (--image-hostname, --image-proto, --image-port, --image-endpoint). |
| --image-hostname | Set the hostname part of the Glance service URL. |
| --image-proto | Set the protocol to use in the Glance service URL (default: 'https'). |
| --image-port | Set the port to use in the Glance service URL (default: 9292). |
| --image-endpoint | Set the endpoint to use in the Glance service URL (default: '/v2'). |
| --image-insecure | Allow insecure TLS connection (default: '0'). When set to 0 the default insecure value passed with --insecure is used. |
| --volume-url | Set the URL to use for the OpenStack Cinder (volume) service. A valid Cinder URL is required since it is a mandatory service. Cinder URL is retrieved from Keystone catalog unless disco-mode is set to 'manual' or a specific URL is provided with this option. Example: --volume-url="https://myopenstack.local:8776" This URL can also be construct with options (--volume-hostname, --volume-proto, --volume-port, --volume-endpoint). |
| --volume-hostname | Set the hostname part of the Cinder service URL. |
| --volume-proto | Set the protocol to use in the Cinder service URL (default: 'https'). |
| --volume-port | Set the port to use in the Cinder service URL (default: 8776). |
| --volume-endpoint | Set the endpoint to use in the Cinder service URL. |
| --volume-insecure | Allow insecure TLS connection (default: '0'). When set to 0 the default insecure value passed with --insecure is used. |
| --volume-timeout | Set HTTP timeout in seconds (default: '0'). When set to 0 the default timeout value passed with --timeout is used. |
| --network-url | Set the URL to use for the OpenStack Neutron (network) service. A valid Neutron URL is required since it is a mandatory service. Neutron URL is retrieved from Keystone catalog unless disco-mode is set to 'manual' or a specific URL is provided with this option. Example: --network-url="https://myopenstack.local:9696" This URL can also be construct with options (--network-hostname, --network-proto, --network-port, --network-endpoint). |
| --network-hostname | Set the hostname part of the Neutron service URL. |
| --network-proto | Set the protocol to use in the Neutron service URL (default: 'https'). |
| --network-port | Set the port to use in the Neutron service URL (default: 9696). |
| --network-endpoint | Set the endpoint to use in the Neutron service URL. |
| --network-insecure | Allow insecure TLS connection (default: '0'). When set to 0 the default insecure value passed with --insecure is used. |
| --network-timeout | Set HTTP timeout in seconds (default: '0'). When set to 0 the default timeout value passed with --timeout is used. |
| --loadbalancer-url | Set the URL to use for the OpenStack Octavia (loadbalancer) service. Octavia URL is retrieved from Keystone catalog unless disco-mode is set to 'manual' or a specific URL is provided with this option. Example: --loadbalancer-url="https://myopenstack.local:9876" This URL can also be construct with options (--loadbalancer-hostname, --loadbalancer-proto, --loadbalancer-port, --loadbalancer-endpoint). |
| --loadbalancer-hostname | Set the hostname part of the Ovtabia service URL. |
| --loadbalancer-proto | Set the protocol to use in the Octavia service URL (default: 'https'). |
| --loadbalancer-port | Set the port to use in the Octavia service URL (default: 9876). |
| --loadbalancer-endpoint | Set the endpoint to use in the Octavia service URL. |
| --loadbalancer-insecure | Allow insecure TLS connection (default: '0'). When set to 0 the default insecure value passed with --insecure is used. |
| --loadbalancer-timeout | Set HTTP timeout in seconds (default: '0'). When set to 0 the default timeout value passed with --timeout is used. |
Modes options​
All available options for each service template are listed below:
- Cinder
- Glance
- Horizon
- Hypervisor
- Instance
- Keystone
- LoadBalancer
- Network
- Neutron
- Nova
- Octavia
- Port
- Service
- Volume
| Option | Description |
|---|---|
| --filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='^count$' |
| --service-url | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below. |
| --include-service-type | Filter by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-type | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-name | Filter by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-name | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-id | Filter by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-id | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region | Filter by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region-id | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region-id | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-interface | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --exclude-endpoint-interface | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --expected-data | Data that endpoint should return when it is normally working (default value: auto). When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable. |
| --endpoint-suffix | Append a specific suffix to he endpoint URL URL for the heath check (default value: auto). When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended. |
| Option | Description |
|---|---|
| --filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='^count$' |
| --service-url | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below. |
| --include-service-type | Filter by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-type | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-name | Filter by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-name | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-id | Filter by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-id | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region | Filter by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region-id | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region-id | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-interface | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --exclude-endpoint-interface | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --expected-data | Data that endpoint should return when it is normally working (default value: auto). When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable. |
| --endpoint-suffix | Append a specific suffix to he endpoint URL URL for the heath check (default value: auto). When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended. |
| Option | Description |
|---|---|
| --filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='^count$' |
| --service-url | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below. |
| --include-service-type | Filter by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-type | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-name | Filter by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-name | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-id | Filter by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-id | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region | Filter by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region-id | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region-id | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-interface | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --exclude-endpoint-interface | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --expected-data | Data that endpoint should return when it is normally working (default value: auto). When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable. |
| --endpoint-suffix | Append a specific suffix to he endpoint URL URL for the heath check (default value: auto). When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended. |
| Option | Description |
|---|---|
| --include-hypervisor-hostname | Filter by hypervisor hostname (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-hypervisor-hostname | Exclude by hypervisor hostname (can be a regexp and can be used multiple times or for comma separated values). |
| --include-status | Filter by hypervisor status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: enabled, disabled. |
| --exclude-status | Exclude by hypervisor status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: enabled, disabled. |
| --include-state | Filter by hypervisor state (can be a regexp and can be used multiple times or for comma separated values). Valid values are: up, down. |
| --exclude-state | Exclude by hypervisor state (can be a regexp and can be used multiple times or for comma separated values). Valid values are: up, down. |
| --include-id | Filter by hypervisor ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-id | Exclude by hypervisor ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-hypervisor-type | Filter by hypervisor type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-hypervisor-type | Exclude by hypervisor type (can be a regexp and can be used multiple times or for comma separated values). |
| --warning-count | Warning threshold for the number of hypervisors returned. |
| --critical-count | Critical threshold for the number of hypervisors returned. |
| --warning-id | Define the conditions to match for the status to be WARNING based on the hypervisor id. Example: --warning-id='%{id} =~ /abcdef/' |
| --critical-id | Define the conditions to match for the status to be CRITICAL based on the hypervisor id. Example: --critical-id='%{id} =~ /abcdef/' |
| --warning-status | Define the conditions to match for the status to be WARNING based on the hypervisor status (enabled or disabled). Example: --warning-status='%{status} =~ /disabled/' |
| --critical-status | Define the conditions to match for the status to be CRITICAL based on the hypervisor status (enabled or disabled). Example: --critical-status='%{status} =~ /disabled/' Default value: --critical-status='%{status} =~ /enabled/ && %{state} !~ /up/' |
| --warning-hypervisor-hostname | Define the conditions to match for the status to be WARNING based on the hypervisor project id. Example: --warning-hypervisor-hostname='%{hypervisor-hostname} =~ /sample.com/' |
| --critical-hypervisor-hostname | Define the conditions to match for the status to be CRITICAL based on the hypervisor project id. Example: --critical-hypervisor-hostname='%{hypervisor-hostname} =~ /sample.com/' |
| --warning-hypervisor-type | Define the conditions to match for the status to be WARNING based on the hypervisor type. Example: --warning-hypervisor-type='%{hypervisor-type} =~ /QEMU/' |
| --critical-hypervisor-type | Define the conditions to match for the status to be CRITICAL based on the hypervisor type. Example: --critical-hypervisor-type='%{hypervisor-type} =~ /QEMU/' |
| Option | Description |
|---|---|
| --filter-project-id | Filter by OpenStack project id (tenant id). This filter is applied before any other filters and requires admin rights. When unset volumes are filtered based on the project used during authentication. |
| --include-name | Filter by instance name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-name | Exclude by instance name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-id | Filter by instance id (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-id | Exclude by instance id (can be a regexp and can be used multiple times or for comma separated values). |
| --include-status | Filter by instance status (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/api-guide/compute/server\_concepts.html for more information about status. |
| --exclude-status | Exclude by instance status (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/api-guide/compute/server\_concepts.html for more information about status. |
| --include-image | Filter by instance image type name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-image | Exclude by instance image type name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-flavor | Filter by instance flavor type name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-flavor | Exclude by instance flavor type name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-host | Filter by instance host name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-host | Exclude by instance host name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-instance-name | Filter by instance Nova instance name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-instance-name | Exclude by instance Nova instance name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-zone | Filter by instance placement (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-zone | Exclude by instance placement (can be a regexp and can be used multiple times or for comma separated values). |
| --include-vm-state | Filter by instance VM state (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/nova/latest/reference/vm-states.html for more information about VM states. |
| --exclude-vm-state | Exclude by instance VM state (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/nova/latest/reference/vm-states.html for more information about VM states. |
| --include-ip | Filter by instance IP (can be a regexp and can be used multiple times or for comma separated values). If a instance has multiple IP addresses this parameter must match at least one of them. |
| --exclude-ip | Exclude by instance IP (can be a regexp and can be used multiple times or for comma separated values). If a instance has multiple IP addresses this parameter must match at least one of them. |
| --exclude-no-ip | Exclude instance that do not have any IP address assigned (default: 1). Set to 0 to include them in the list. |
| --warning-bookmark | Define the conditions to match for the status to be WARNING based on the bookmark value. Example: --warning-bookmark='%{bookmark} =~ /abcd-defg/' |
| --critical-bookmark | Define the conditions to match for the status to be CRITICAL based on the bookmark value. Example: --critical-bookmark='%{bookmark} =~ /abcd-defg/' |
| --warning-count | Warning threshold for the number of instances returned. |
| --critical-count | Critical threshold for the number of instances returned. |
| --warning-flavor | Define the conditions to match for the status to be WARNING based on the flavor value. Example: --warning-flavor='%{flavor} =~ /1/' |
| --critical-flavor | Define the conditions to match for the status to be CRITICAL based on the flavor value. Example: --critical-flavor='%{flavor} =~ /1/' |
| --warning-host | Define the conditions to match for the status to be WARNING based on the host value. Example: --warning-host='%{host} =~ /localhost/' |
| --critical-host | Define the conditions to match for the status to be CRITICAL based on the host value. Example: --critical-host='%{host} =~ /localhost/' |
| --warning-id | Define the conditions to match for the status to be WARNING based on the instance ID. Example: --warning-id='%{id} =~ /abcdf/' |
| --critical-id | Define the conditions to match for the status to be CRITICAL based on the instance ID. Example: --critical-id='%{id} =~ /abcdf/' |
| --warning-image | Define the conditions to match for the status to be WARNING based on the image value. Example: --warning-image='%{image} =~ /image/' |
| --critical-image | Define the conditions to match for the status to be CRITICAL based on the image value. Example: --critical-image='%{image} =~ /image/' |
| --warning-instance-name | Define the conditions to match for the status to be WARNING based on the instance name. Example: --warning-instance-name='%{instance_name} =~ /test/' |
| --critical-instance-name | Define the conditions to match for the status to be CRITICAL based on the instance name. Example: --critical-instance-name='%{instance_name} =~ /test/' |
| --warning-ip | Define the conditions to match for the status to be WARNING based on the IP. Example: --warning-ip='%{ip} =~ /127/' |
| --critical-ip | Define the conditions to match for the status to be CRITICAL based on the IP. Example: --critical-ip='%{ip} =~ /127/' |
| --warning-project-id | Define the conditions to match for the status to be WARNING based on the project ID. Example: --warning-project-id='%{project_id} =~ /1/' |
| --critical-project-id | Define the conditions to match for the status to be CRITICAL based on the project ID. Example: --critical-project-id='%{project_id} =~ /1/' |
| --warning-status | Define the conditions to match for the status to be WARNING based on the status value. Example: --warning-status='%{status} =~ /ACTIVE/' |
| --critical-status | Define the conditions to match for the status to be CRITICAL based on the status value. Example: --critical-status='%{status} =~ /ERROR/' Default value: '%{status} !~ /active/i', |
| --warning-zone | Define the conditions to match for the status to be WARNING based on the zone value. Example: --warning-zone='%{zone} =~ /nova/' |
| --critical-zone | Define the conditions to match for the status to be CRITICAL based on the zone value. Example: --critical-zone='%{zone} =~ /nova/' |
| Option | Description |
|---|---|
| --filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='^count$' |
| --service-url | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below. |
| --include-service-type | Filter by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-type | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-name | Filter by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-name | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-id | Filter by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-id | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region | Filter by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region-id | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region-id | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-interface | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --exclude-endpoint-interface | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --expected-data | Data that endpoint should return when it is normally working (default value: auto). When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable. |
| --endpoint-suffix | Append a specific suffix to he endpoint URL URL for the heath check (default value: auto). When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended. |
| Option | Description |
|---|---|
| --filter-project-id | Filter by OpenStack project id (tenant id). This filter is applied before any other filters and requires admin rights. When unset load balancers are filtered based on the project used during authentication. |
| --include-name | Filter by load balancer name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-name | Exclude by load balancer name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-operating-status | Filter by load balancer operating status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR |
| --exclude-operating-status | Exclude by load balancer operating status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR |
| --include-provisioning-status | Filter by load balancer provisioning status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: ACTIVE, ERROR, PENDING_CREATE, PENDING_UPDATE, PENDING_DELETE |
| --exclude-privisioning-status | Exclude by load balancer provisioning status (can be a regexp and can be used multiple times or for comma separated values). Valid values are: ACTIVE, ERROR, PENDING_CREATE, PENDING_UPDATE, PENDING_DELETE |
| --include-description | Filter by load balancer description (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-description | Exclude by load balancer description (can be a regexp and can be used multiple times or for comma separated values). |
| --include-admin-state-up | Filter by load balancer admin state up flag (can be True or False). |
| --exclude-admin-state-up | Exclude by load balancer admin state up flag (can be True or False). |
| --include-vip-address | Filter by load balancer VIP IP address (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-vip-address | Exclude by load balancer VIP IP address (can be a regexp and can be used multiple times or for comma separated values). |
| --include-provider | Filter by load balancer provider (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-provider | Exclude by load balancer provider (can be a regexp and can be used multiple times or for comma separated values). |
| --include-id | Filter by load balancer ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-id | Exclude by load balancer ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-no-listeners | Exclude load balancer that do not have any listeners (default: 0). Set to 0 to include them in the list. |
| --exclude-no-pools | Exclude load balancer that do not have any pools (default: 0). Set to 0 to include them in the list. |
| --warning-count | Warning threshold for the number of load balancers returned. |
| --critical-count | Critical threshold for the number of load balancers returned. |
| --warning-pool-count | Warning threshold for the number of pools per load balancers. |
| --critical-pool-count | Critical threshold for the number of pools per load balancers. |
| --warning-listener-count | Warning threshold for the number of listeners per load balancers. |
| --critical-listener-count | Critical threshold for the number of listeners per load balancers. |
| --warning-name | Define the conditions to match for the status to be WARNING based on the load balancer name. Example: --critical-name='%{name} =~ /abcd/' |
| --critical-name | Define the conditions to match for the status to be CRITICAL based on the load balancer name. Example: --critical-name='%{name} =~ /abcd/' |
| --warning-operating-status | Define the conditions to match for the status to be WARNING based on the load balancer operating status. Valid operating status are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR Example: --warning-operating-status='%{operating_status} =~ /DEGRADED/' Default: --warning-operating-status='%{operating_status} =~ /DEGRADED|DRAINING|MONITOR/' |
| --critical-operating-status | Define the conditions to match for the status to be CRITICAL based on the load balancer operating status. Valid operating status are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR Example: --critical-operating-status='%{operating_status} =~ /ERROR/' Default: --critical-operating-status='%{operating_status} =~ /ERROR/' |
| --warning-provisioning-status | Define the conditions to match for the status to be WARNING based on the load balancer provisioning status. Valid provisioning status are: ACTIVE, ERROR, PENDING_CREATE, PENDING_UPDATE, PENDING_DELETE Example: --warning-provisioning-status='%{provisioning_status} =~ /DEGRADED/' |
| --critical-provisioning-status | Define the conditions to match for the status to be CRITICAL based on the load balancer provisioning status. Valid provisioning status are: ONLINE, DRAINING, OFFLINE, DEGRADED, ERROR, NO_MONITOR Example: --critical-provisioning-status='%{provisioning_status} =~ /ERROR/' |
| --warning-description | Define the conditions to match for the status to be WARNING based on the load balancer description. Example: --warning-description='%{description} =~ /test lb/' |
| --critical-description | Define the conditions to match for the status to be CRITICAL based on the load balancer description. Example: --critical-description='%{description} =~ /test lb/' |
| --warning-admin-state-up | Define the conditions to match for the status to be WARNING based on the admin state up flag (can be True or False). Example: --warning-admin-state-up='%{admin_state_up} =~ /False/' |
| --critical-admin-state-up | Define the conditions to match for the status to be CRITICAL based on the admin state up flag (can be True or False). Example: --critical-admin-state-up='%{admin_state_up} =~ /False/' |
| --warning-vip-address | Define the conditions to match for the status to be WARNING based on the VIP Address. Example: --warning-vip-address='%{vip_address} =~ /127.0.0.1/' |
| --critical-vip-address | Define the conditions to match for the status to be CRITICAL based on the VIP Address. Example: --critical-vip-addressr='%{vip_address} =~ /127.0.0.1/' |
| --warning-provider | Define the conditions to match for the status to be WARNING based on the provider. Example: --warning-provider='%{provider} =~ /octavia/' |
| --critical-provider | Define the conditions to match for the status to be CRITICAL based on the provider. Example: --critical-provider='%{provider} =~ /octavia/' |
| --warning-id | Define the conditions to match for the status to be WARNING based on the load balancer ID. Example: --warning-id='%{id} =~ /abcdef/' |
| --critical-id | Define the conditions to match for the status to be CRITICAL based on the load balancer ID. Example: --critical-id='%{id} =~ /abcdef/' |
| --warning-project-id | Define the conditions to match for the status to be WARNING based on the load balancer project ID. Example: --warning-project-id='%{project-id} =~ /abcdef/' |
| --critical-project-id | Define the conditions to match for the status to be CRITICAL based on the load balancer project ID. Example: --critical-project-id='%{project-id} =~ /abcdef/' |
| Option | Description |
|---|---|
| --filter-project-id | Filter by OpenStack project id (tenant id). This filter is applied before any other filters and requires admin rights. When unset networks are filtered based on the project used during authentication. |
| --include-name | Filter by network name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-name | Exclude by network name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-status | Filter by network status (can be a regexp and can be used multiple times or for comma separated values). Can be: ACTIVE, BUILD, DOWN, or ERROR. |
| --exclude-status | Exclude by network status (can be a regexp and can be used multiple times or for comma separated values). Can be: ACTIVE, BUILD, DOWN, or ERROR. |
| --include-admin-state-up | Filter by network admin state up flag (can be True or False). |
| --exclude-admin-state-up | |
| --include-mtu | Filter by network MTU. |
| --exclude-mtu | Exclude by network MTU. |
| --include-shared | Filter by network shared flag (can be True or False). |
| --exclude-shared | Exclude by network shared flag (can be True or False). |
| --include-port-security-enabled | Filter by network port security enabled flag (can be True or False). |
| --exclude-port-security-enabled | Exclude by network port security enabled flag (can be True or False). |
| --include-router-external | Filter by network router external flag (can be True or False). |
| --exclude-router-external | Exclude by network router external flag (can be True or False). |
| --include-id | Filter by network ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-id | Exclude by network ID (can be a regexp and can be used multiple times or for comma separated values). |
| --warning-count | Warning threshold for the number of networks returned. |
| --critical-count | Critical threshold for the number of networks returned. |
| --warning-name | Define the conditions to match for the status to be WARNING based on the network name. Example: --warning-name='%{name} =~ /test network/' |
| --critical-name | Define the conditions to match for the status to be CRITICAL based on the network name. Example: --critical-name='%{name} =~ /test network/' |
| --warning-status | Define the conditions to match for the status to be WARNING based on the network status. Status can be: ACTIVE, BUILD, DOWN, or ERROR. Example: --warning-status='%{status} =~ /DOWN/' |
| --critical-status | Define the conditions to match for the status to be CRITICAL based on the network status. Status can be: ACTIVE, BUILD, DOWN, or ERROR. Example: --critical-status='%{status} =~ /ERROR/' Default: --critical-status='%{status} !~ /ACTIVE/' |
| --warning-admin-state-up | Define the conditions to match for the status to be WARNING based on the admin stat up flag (can be 0 or 1). Example: --warning-admin-state-up='%{admin_state_up} eq "1"' |
| --critical-admin-state-up | Define the conditions to match for the status to be CRITICAL based on the admin state up flag (can be 0 or 1). Example: --warning-admin-state-up='%{admin_state_up} eq "1"' |
| --warning-shared | Define the conditions to match for the status to be WARNING based on the shared flag (can be 0 or 1). Example: --warning-shared='%{shared} eq "1"' |
| --critical-shared | Define the conditions to match for the status to be CRITICAL based on the shared flag (can be 0 or 1). Example: --warning-shared='%{shared} eq "1"' |
| --warning-port-security-enabled | Define the conditions to match for the status to be WARNING based on the port-security-enabled flag (can be 0 or 1). Example: --warning-port-security-enabled='%{port_security_enabled} eq "1"' |
| --critical-port-security-enabled | Define the conditions to match for the status to be CRITICAL based on the port-security-enabled flag (can be 0 or 1). Example: --warning-port-security-enabled='%{port_security_enabled} eq "1"' |
| --warning-router-external | Define the conditions to match for the status to be WARNING based on the router-external flag (can be 0 or 1). Example: --warning-router-external='%{router_external} eq "1"' |
| --critical-router-external | Define the conditions to match for the status to be CRITICAL based on the router-external flag (can be 0 or 1). Example: --warning-router-external='%{router_external} eq "1"' |
| --warning-id | Define the conditions to match for the status to be WARNING based on the network ID. Example: --warning-id='%{id} =~ /abcdef/' |
| --critical-id | Define the conditions to match for the status to be CRITICAL based on the network ID. Example: --critical-id='%{id} =~ /abcdef/' |
| --warning-mtu | Define the conditions to match for the status to be WARNING based on the network MTU. |
| --critical-mtu | Define the conditions to match for the status to be CRITICAL based on the network MTU. |
| --warning-project-id | Define the conditions to match for the status to be WARNING based on the network project ID. |
| --critical-project-id | Define the conditions to match for the status to be CRITICAL based on the network project ID. |
| Option | Description |
|---|---|
| --filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='^count$' |
| --service-url | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below. |
| --include-service-type | Filter by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-type | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-name | Filter by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-name | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-id | Filter by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-id | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region | Filter by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region-id | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region-id | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-interface | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --exclude-endpoint-interface | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --expected-data | Data that endpoint should return when it is normally working (default value: auto). When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable. |
| --endpoint-suffix | Append a specific suffix to he endpoint URL URL for the heath check (default value: auto). When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended. |
| Option | Description |
|---|---|
| --filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='^count$' |
| --service-url | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below. |
| --include-service-type | Filter by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-type | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-name | Filter by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-name | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-id | Filter by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-id | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region | Filter by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region-id | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region-id | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-interface | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --exclude-endpoint-interface | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --expected-data | Data that endpoint should return when it is normally working (default value: auto). When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable. |
| --endpoint-suffix | Append a specific suffix to he endpoint URL URL for the heath check (default value: auto). When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended. |
| Option | Description |
|---|---|
| --filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='^count$' |
| --service-url | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below. |
| --include-service-type | Filter by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-type | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-name | Filter by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-name | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-id | Filter by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-id | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region | Filter by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region-id | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region-id | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-interface | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --exclude-endpoint-interface | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --expected-data | Data that endpoint should return when it is normally working (default value: auto). When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable. |
| --endpoint-suffix | Append a specific suffix to he endpoint URL URL for the heath check (default value: auto). When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended. |
| Option | Description |
|---|---|
| --filter-project-id | Filter by OpenStack project id (tenant id). This filter is applied before any other filters and requires admin rights. When unset ports are filtered based on the project used during authentication. |
| --include-name | Filter by port name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-name | Exclude by port name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-status | Filter by port status (can be a regexp and can be used multiple times or for comma separated values). Can be: ACTIVE, BUILD, DOWN or ERROR |
| --exclude-status | Exclude by port status (can be a regexp and can be used multiple times or for comma separated values). Can be: ACTIVE, BUILD, DOWN or ERROR |
| --include-description | Filter by port description (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-description | Exclude by port description (can be a regexp and can be used multiple times or for comma separated values). |
| --include-admin-state-up | Filter by port admin state up flag (can be True or False). |
| --exclude-admin-state-up | Exclude by port admin state up flag (can be True or False). |
| --include-port-security-enabled | Filter by port security enabled flag (can be True or False). |
| --exclude-port-security-enabled | Exclude by port security enabled flag (can be True or False). |
| --include-id | Filter by port ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-id | Exclude by port ID (can be a regexp and can be used multiple times or for comma separated values). |
| --warning-count | Warning threshold for the number of ports returned. |
| --critical-count | Critical threshold for the number of ports returned. |
| --warning-admin-state-up | Define the conditions to match for the status to be WARNING based on the admin state up flag (can be True or False). Example: --warning-admin-state-up='%{admin_state_up} eq "True"' |
| --critical-admin-state-up | Define the conditions to match for the status to be CRITICAL based on the admin state up flag (can be True or False). Example: --critical-admin-state-up='%{admin_state_up} eq "True"' |
| --warning-description | Define the conditions to match for the status to be WARNING based on the port description. Example: --warning-description='%{description} =~ /test port/' |
| --critical-description | Define the conditions to match for the status to be CRITICAL based on the port description. Example: --critical-description='%{description} =~ /test port/' |
| --warning-port-security-enabled | Define the conditions to match for the status to be WARNING based on the port security enabled flag (can be True or False). Example: --warning-port-security-enabled='%{port_security_enabled} eq "True"' |
| --critical-port-security-enabled | Define the conditions to match for the status to be CRITICAL based on the port security enabled flag (can be True or False). Example: --critical-port-security-enabled='%{port_security_enabled} eq "True"' |
| --warning-id | Define the conditions to match for the status to be WARNING based on the port id. Example: --warning-id='%{id} =~ /abcdef/' |
| --critical-id | Define the conditions to match for the status to be CRITICAL based on the port id. Example: --critical-id='%{id} =~ /abcdef/' |
| --warning-project-id | Define the conditions to match for the status to be WARNING based on the port project id. Example: --warning-project-id='%{project-id} =~ /abcdef/' |
| --critical-project-id | Define the conditions to match for the status to be CRITICAL based on the port project id. Example: --critical-project-id='%{project-id} =~ /abcdef/' |
| --warning-status | Define the conditions to match for the status to be WARNING based on the port status. Status can be: ACTIVE, BUILD, DOWN or ERROR Example: --warning-status='%{status} =~ /ERROR/' |
| --critical-status | Define the conditions to match for the status to be CRITICAL based on the port status. Status can be: ACTIVE, BUILD, DOWN or ERROR Default: --critical-status='%{status} !~ /ACTIVE/' Example: --critical-status='%{status} =~ /ERROR/' |
| Option | Description |
|---|---|
| --filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='^count$' |
| --service-url | Define the endpoint URL to check (can be multiple). When using this option the service type and name are set to service and N/A if not already defined with --include-type and --include-name options. When this option is not set the endpoints to test are taken from the cached Keystone service list previously generated with 'discovery' and 'list-services' commands and filtered by --include-* and --exclude-* options below. |
| --include-service-type | Filter by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-type | Exclude by service type (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-name | Filter by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-name | Exclude by service name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-service-id | Filter by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-service-id | Exclude by service id (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region | Filter by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region | Exclude by service region (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-region-id | Filter by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-endpoint-region-id | Exclude by service region ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-endpoint-interface | Filter by service interface ID (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --exclude-endpoint-interface | Exclude by service interface (can be a regexp and can be used multiple times or for comma separated values). OpenStack interfaces are 'public', 'internal', 'admin'. |
| --expected-data | Data that endpoint should return when it is normally working (default value: auto). When auto is set the connector automatically defines the value depending on the type of endpoint. When a non empty value is set it represents a value that must be present in the returned data. If this option is not set the check only verifies that the data is a valid JSON. The result of this check 1/0 is saved in %{valid_content} variable. |
| --endpoint-suffix | Append a specific suffix to he endpoint URL URL for the heath check (default value: auto). When auto is set the connector automatically defines the suffix depending on the type of endpoint. When none is set no suffix is appended. |
| Option | Description |
|---|---|
| --filter-project-id | Filter by OpenStack project id (tenant id). This filter is applied before any other filters and requires admin rights. When unset volumes are filtered based on the project used during authentication. |
| --include-name | Filter by volume name (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-name | Exclude by volume name (can be a regexp and can be used multiple times or for comma separated values). |
| --include-status | Filter by volume status (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/api-ref/block-storage/v3/#volumes-status for more information about status. |
| --exclude-status | Exclude by volume status (can be a regexp and can be used multiple times or for comma separated values). Please refer to https://docs.openstack.org/api-ref/block-storage/v3/#volumes-status for more information about status. |
| --include-description | Filter by volume description (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-description | Exclude by volume description (can be a regexp and can be used multiple times or for comma separated values). |
| --include-bootable | Filter by volume bootable flag (can be 0 or 1). |
| --exclude-bootable | Exclude by volume bootable flag (can be 0 or 1). |
| --include-encrypted | Filter by volume encrypted flag (can be 0 or 1). |
| --exclude-encrypted | Exclude by volume encrypted flag (can be 0 or 1). |
| --include-zone | Filter by volume availability zone (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-zone | Exclude by volume availability zone (can be a regexp and can be used multiple times or for comma separated values). |
| --include-id | Filter by volume ID (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-id | Exclude by volume ID (can be a regexp and can be used multiple times or for comma separated values). |
| --include-type | Filter by volume type (can be a regexp and can be used multiple times or for comma separated values). |
| --exclude-type | Exclude by volume type (can be a regexp and can be used multiple times or for comma separated values). |
| --warning-count | Warning threshold for the number of volumes returned. |
| --critical-count | Critical threshold for the number of volumes returned. |
| --warning-attachments | Warning threshold for the number of servers attached to the volume. |
| --critical-attachments | Critical threshold for the number of servers attached to the volume. |
| --warning-bootable | Define the conditions to match for the status to be WARNING based on the volume bootable flag (can be 0 or 1). Example: --warning-bootable='%{bootable} eq "1"' |
| --critical-bootable | Define the conditions to match for the status to be CRITICAL based on the volume bootable flag (can be 0 or 1). Example: --critical-bootable='%{bootable} eq "1"' |
| --warning-description | Define the conditions to match for the status to be WARNING based on the volume description. Example: --warning-description='%{description} =~ /test volume/' |
| --critical-description | Define the conditions to match for the status to be CRITICAL based on the volume description. Example: --critical-description='%{description} =~ /test volume/' |
| --warning-encrypted | Define the conditions to match for the status to be WARNING based on the encrypted flag (can be 0 or 1). Example: --warning-encrypted='%{encrypted} eq "1"' |
| --critical-encrypted | Define the conditions to match for the status to be CRITICAL based on the encrypted flag (can be 0 or 1). Example: --critical-encrypted='%{encrypted} eq "1"' |
| --warning-id | Define the conditions to match for the status to be WARNING based on the volume id. Example: --warning-id='%{id} =~ /abcdef/' |
| --critical-id | Define the conditions to match for the status to be CRITICAL based on the volume id. Example: --critical-id='%{id} =~ /abcdef/' |
| --warning-project-id | Define the conditions to match for the status to be WARNING based on the volume project id. Example: --warning-project-id='%{project-id} =~ /abcdef/' |
| --critical-project-id | Define the conditions to match for the status to be CRITICAL based on the volume project id. Example: --critical-project-id='%{project-id} =~ /abcdef/' |
| --warning-size | Define the conditions to match for the status to be WARNING based on the volume size. Example: --warning-size='%{size} =~ /1 GB/' |
| --critical-size | Define the conditions to match for the status to be CRITICAL based on the volume size. Example: --critical-size='%{size} =~ /1 GB/' |
| --warning-status | Define the conditions to match for the status to be WARNING based on the volume status. Example: --warning-status='%{status} =~ /downloading/' Default: --warning-status='%{status} =~ /(restoring-backup|backing-up|deleting)/' Please refer to https://docs.openstack.org/api-ref/block-storage/v3/#volumes-status for more information about status. |
| --critical-status | Define the conditions to match for the status to be CRITICAL based on the volume status. Example: --critical-status='%{status} =~ /downloading/' Default: --critical-status='%{status} =~ /error/' Please refer to https://docs.openstack.org/api-ref/block-storage/v3/#volumes-status for more information about status. |
| --warning-type | Define the conditions to match for the status to be WARNING based on the volume type. Example: --warning-type='%{type} =~ /sdd/' |
| --critical-type | Define the conditions to match for the status to be CRITICAL based on the volume type. Example: --critical-type='%{type} =~ /sdd/' |
| --warning-zone | Define the conditions to match for the status to be WARNING based on the volume availability zone. Example: --warning-type='%{zone} =~ /nova/' |
| --critical-zone | Define the conditions to match for the status to be CRITICAL based on the volume availability zone. Example: --critical-type='%{zone} =~ /nova/' |
All available options for a given mode can be displayed by adding the
--help parameter to the command:
/usr/lib/centreon/plugins/centreon_openstack_restapi.pl \
--plugin=cloud/openstack/restapi/plugin.pm \
--mode=volume \
--help