OpenStack RESTAPI
Dépendances du connecteur de supervision
Les connecteurs de supervision suivants sont automatiquement installés lors de l'installation du connecteur OpenStack RESTAPI depuis la page Configuration > Connecteurs > Connecteurs de supervision :
Contenu du pack
Modèles
Le connecteur de supervision OpenStack RESTAPI apporte 2 modèles d'hôte :
- Cloud-Openstack-RestAPI-Project-custom
- Cloud-Openstack-RestAPI-Services-custom
Le connecteur apporte les modèles de service suivants (classés selon le modèle d'hôte auquel ils sont rattachés) :
- Cloud-Openstack-RestAPI-Project-custom
- Cloud-Openstack-RestAPI-Services-custom
- Non rattachés à un modèle d'hôte
| Alias | Modèle de service | Description | Découverte |
|---|---|---|---|
| Hypervisor | Cloud-Openstack-RestAPI-Project-Hypervisor-custom | Contrôler un hyperviseur Openstack | X |
| Instance | Cloud-Openstack-RestAPI-Project-Instance-custom | Contrôler une VM Openstack | X |
| Network | Cloud-Openstack-RestAPI-Project-Network-custom | Contrôler un réseau Openstack | X |
| Port | Cloud-Openstack-RestAPI-Project-Port-custom | Contrôler un port Openstack | X |
| Volume | Cloud-Openstack-RestAPI-Project-Volume-custom | Contrôler un volume Openstack | X |
Les services listés ci-dessus sont créés automatiquement lorsque le modèle d'hôte Cloud-Openstack-RestAPI-Project-custom est utilisé.
Si la case Découverte est cochée, cela signifie qu'une règle de découverte de service existe pour ce service.
| Alias | Modèle de service | Description |
|---|---|---|
| Cinder | Cloud-Openstack-RestAPI-Service-Cinder-custom | Contrôler le service Openstack Cinder |
| Glance | Cloud-Openstack-RestAPI-Service-Glance-custom | Contrôler le service Openstack Glance |
| Horizon | Cloud-Openstack-RestAPI-Service-Horizon-custom | Contrôler le portail Openstack Horizon |
| Keystone | Cloud-Openstack-RestAPI-Service-Keystone-custom | Contrôler le service Openstack Keystone |
| Neutron | Cloud-Openstack-RestAPI-Service-Neutron-custom | Contrôler le service Openstack Neutron |
| Nova | Cloud-Openstack-RestAPI-Service-Nova-custom | Contrôler le service Openstack Nova |
Les services listés ci-dessus sont créés automatiquement lorsque le modèle d'hôte Cloud-Openstack-RestAPI-Services-custom est utilisé.
| Alias | Modèle de service | Description | Découverte |
|---|---|---|---|
| LoadBalancer | Cloud-Openstack-RestAPI-Project-LoadBalancer-custom | Contrôler un load balancer Openstack | X |
| Service | Cloud-Openstack-RestAPI-Service-Generic-custom | Contrôler un service Openstack | X |
| Octavia | Cloud-Openstack-RestAPI-Service-Octavia-custom | Contrôler le service Openstack Octavia |
Les services listés ci-dessus ne sont pas créés automatiquement lorsqu'un modèle d'hôte est appliqué. Pour les utiliser, créez un service manuellement et appliquez le modèle de service souhaité.
Si la case Découverte est cochée, cela signifie qu'une règle de découverte de service existe pour ce service.
Règles de découverte
Découverte d'hôtes
| Nom de la règle | Description |
|---|---|
| OpenStack Host | Découvre les hôtes en requêtant OpenStack via REST API |
| OpenStack Project | Découvre les projects en requêtant OpenStack via REST API |
| OpenStack Services | Découvre les services en requêtant OpenStack via REST API |
Rendez-vous sur la documentation dédiée pour en savoir plus sur la découverte automatique d'hôtes.
Découverte de services
| Nom de la règle | Description |
|---|---|
| Cloud-Openstack-RestAPI-Project-Hypervisor | Découvre et supervise les hyperviseurs d'un projet |
| Cloud-Openstack-RestAPI-Project-Instance | Découvre et supervise les instances d'un projet |
| Cloud-Openstack-RestAPI-Project-Loadbalancer | Découvre et supervise les load balancers d'un projet |
| Cloud-Openstack-RestAPI-Project-Network | Découvre et supervise les réseaux d'un projet |
| Cloud-Openstack-RestAPI-Project-Port | Découvre et supervise les ports d'un projet |
| Cloud-Openstack-RestAPI-Project-Volume | Découvre et supervise les volumes d'un projet |
| Cloud-Openstack-RestAPI-Service | Découvre les services et supervise leur utilisation système |
Rendez-vous sur la documentation dédiée pour en savoir plus sur la découverte automatique de services et sa planification.
Métriques & statuts collectés
Voici le tableau des services pour ce connecteur, détaillant les métriques et statuts rattachés à chaque service.
- Cinder
- Glance
- Horizon
- Hypervisor
- Instance
- Keystone
- LoadBalancer
- Network
- Neutron
- Nova
- Octavia
- Port
- Service
- Volume
| Nom | Unité |
|---|---|
| count | N/A |
| status | N/A |
| Nom | Unité |
|---|---|
| count | N/A |
| status | N/A |
| Nom | Unité |
|---|---|
| count | N/A |
| status | N/A |
| Nom | Unité |
|---|---|
| hypervisor.count | count |
| Nom | Unité |
|---|---|
| instance.count | count |
| Nom | Unité |
|---|---|
| count | N/A |
| status | N/A |
| Nom | Unité |
|---|---|
| loadbalancer.count | count |
| Nom | Unité |
|---|---|
| network.count | count |
| Nom | Unité |
|---|---|
| count | N/A |
| status | N/A |
| Nom | Unité |
|---|---|
| count | N/A |
| status | N/A |
| Nom | Unité |
|---|---|
| count | N/A |
| status | N/A |
| Nom | Unité |
|---|---|
| port.count | count |
| Nom | Unité |
|---|---|
| count | N/A |
| status | N/A |
| Nom | Unité |
|---|---|
| volume.count | count |
Prérequis
Ce connecteur vous permet de surveiller le fonctionnement des différents services OpenStack à l’aide de l’API REST.
Veuillez vous référer à la documentation OpenStack pour avoir plus d’informations sur la configuration de l’accès à l’API REST d’OpenStack.
Installer le connecteur de supervision
Pack
La procédure d'installation des connecteurs de supervision diffère légèrement suivant que votre licence est offline ou online.
- Si la plateforme est configurée avec une licence online, l'installation d'un paquet n'est pas requise pour voir apparaître le connecteur dans le menu Configuration > Connecteurs > Connecteurs de supervision. Au contraire, si la plateforme utilise une licence offline, installez le paquet sur le serveur central via la commande correspondant au gestionnaire de paquets associé à sa distribution :
- 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
- Quel que soit le type de la licence (online ou offline), installez le connecteur OpenStack RESTAPI depuis l'interface web et le menu Configuration > Connecteurs > Connecteurs de supervision.
Plugin
À partir de Centreon 22.04, il est possible de demander le déploiement automatique du plugin lors de l'utilisation d'un connecteur. Si cette fonctionnalité est activée, et que vous ne souhaitez pas découvrir des éléments pour la première fois, alors cette étape n'est pas requise.
Plus d'informations dans la section Installer le plugin.
Utilisez les commandes ci-dessous en fonction du gestionnaire de paquets de votre système d'exploitation :
- 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
Utiliser le connecteur de supervision
Utiliser un modèle d'hôte issu du connecteur
- Cloud-Openstack-RestAPI-Project-custom
- Cloud-Openstack-RestAPI-Services-custom
- Ajoutez un hôte à Centreon depuis la page Configuration > Hôtes.
- Complétez les champs Nom, Alias & IP Address/DNS correspondant à votre ressource.
- Appliquez le modèle d'hôte Cloud-Openstack-RestAPI-Project-custom. Une liste de macros apparaît. Les macros vous permettent de définir comment le connecteur se connectera à la ressource, ainsi que de personnaliser le comportement du connecteur.
- Renseignez les macros désirées. Attention, certaines macros sont obligatoires.
| Macro | Description | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 |
- Déployez la configuration. L'hôte apparaît dans la liste des hôtes supervisés, et dans la page Statut des ressources. La commande envoyée par le connecteur est indiquée dans le panneau de détails de l'hôte : celle-ci montre les valeurs des macros.
- Ajoutez un hôte à Centreon depuis la page Configuration > Hôtes.
- Complétez les champs Nom, Alias & IP Address/DNS correspondant à votre ressource.
- Appliquez le modèle d'hôte Cloud-Openstack-RestAPI-Services-custom. Une liste de macros apparaît. Les macros vous permettent de définir comment le connecteur se connectera à la ressource, ainsi que de personnaliser le comportement du connecteur.
- Renseignez les macros désirées. Attention, certaines macros sont obligatoires.
| Macro | Description | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 |
- Déployez la configuration. L'hôte apparaît dans la liste des hôtes supervisés, et dans la page Statut des ressources. La commande envoyée par le connecteur est indiquée dans le panneau de détails de l'hôte : celle-ci montre les valeurs des macros.
Utiliser un modèle de service issu du connecteur
- Si vous avez utilisé un modèle d'hôte et coché la case Créer aussi les services liés aux modèles, les services associés au modèle ont été créés automatiquement, avec les modèles de services correspondants. Sinon, créez les services désirés manuellement et appliquez-leur un modèle de service.
- Renseignez les macros désirées (par exemple, ajustez les seuils d'alerte). Les macros indiquées ci-dessous comme requises (Obligatoire) doivent être renseignées.
- Cinder
- Glance
- Horizon
- Hypervisor
- Instance
- Keystone
- LoadBalancer
- Network
- Neutron
- Nova
- Octavia
- Port
- Service
- Volume
| Macro | Description | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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). Toutes les options sont listées ici. |
| Macro | Description | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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). Toutes les options sont listées ici. |
| Macro | Description | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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). Toutes les options sont listées ici. |
| Macro | Description | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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). Toutes les options sont listées ici. |
| Macro | Description | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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). Toutes les options sont listées ici. |
| Macro | Description | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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 | Valeur par défaut | Obligatoire |
|---|---|---|---|
| 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). Toutes les options sont listées ici. |
- Déployez la configuration. Le service apparaît dans la liste des services supervisés, et dans la page Statut des ressources. La commande envoyée par le connecteur est indiquée dans le panneau de détails du service : celle-ci montre les valeurs des macros.
Comment puis-je tester le plugin et que signifient les options des commandes ?
Une fois le plugin installé, vous pouvez tester celui-ci directement en ligne
de commande depuis votre collecteur Centreon en vous connectant avec
l'utilisateur centreon-engine (su - centreon-engine). Vous pouvez tester
que le connecteur arrive bien à superviser une ressource en utilisant une commande
telle que celle-ci (remplacez les valeurs d'exemple par les vôtres) :
/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=''
La commande devrait retourner un message de sortie similaire à :
OK: Volume count: 35574 All volumes are ok | 'volume.count'=35574;;;0;
Diagnostic des erreurs communes
Rendez-vous sur la documentation dédiée des plugins basés sur HTTP/API.
Modes disponibles
Dans la plupart des cas, un mode correspond à un modèle de service. Le mode est renseigné dans la commande d'exécution du connecteur. Dans l'interface de Centreon, il n'est pas nécessaire de les spécifier explicitement, leur utilisation est implicite dès lors que vous utilisez un modèle de service. En revanche, vous devrez spécifier le mode correspondant à ce modèle si vous voulez tester la commande d'exécution du connecteur dans votre terminal.
Tous les modes disponibles peuvent être affichés en ajoutant le paramètre
--list-mode à la commande :
/usr/lib/centreon/plugins/centreon_openstack_restapi.pl \
--plugin=cloud/openstack/restapi/plugin.pm \
--list-mode
Le plugin apporte les modes suivants :
| Mode | Modèle de service associé |
|---|---|
| discovery [code] | Utilisé pour la découverte d'hôtes |
| hypervisor [code] | Cloud-Openstack-RestAPI-Project-Hypervisor-custom |
| instance [code] | Cloud-Openstack-RestAPI-Project-Instance-custom |
| list-services [code] | Utilisé pour la découverte de services |
| 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] | Non utilisé dans ce connecteur de supervision |
| 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 |
Options disponibles
Options génériques
Les options génériques sont listées ci-dessous :
| 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. |
Options des modes
Les options disponibles pour chaque modèle de services sont listées ci-dessous :
- 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/' |
Pour un mode, la liste de toutes les options disponibles et leur signification peut être
affichée en ajoutant le paramètre --help à la commande :
/usr/lib/centreon/plugins/centreon_openstack_restapi.pl \
--plugin=cloud/openstack/restapi/plugin.pm \
--mode=volume \
--help