Perform a Health Check of Infrastructure Components
Perform a Health Check of Infrastructure Components
After you install or upgrade CSO, you can run the components_health.sh script to perform a health check of all infrastructure components. This script detects whether any infrastructure component has failed and displays the health status of the following infrastructure components:
SaltStack
Cassandra
MariaDB
Swift
Redis
ArangoDb
Keystone
Elasticsearch
Elk Elasticsearch
Icinga
RabbitMQ
Etcd
Rsyslog
Kubernetes
ELK Logstash
ELK Kibana
ZooKeeper
Contrail Analytics
To check the status of infrastructure components:
- Log in to the startupserver_1 VM as root.
- Navigate to the CSO directory in the startupserver_1 VM.
For example:
root@host:~/# cd Contrail_Service_Orchestration_5.1.2
root@host:~/Contrail_Service_Orchestration_5.1.2#
- Run the components_health.sh script.
To check the status of one of infrastructure components, run the following command:
root@startupserver_1:/opt/Contrail_Service_Orchestration_5.1.2# ./components_health.sh --component=<component_name>
For Example: root@startupserver_1:/opt/Contrail_Service_Orchestration_5.1.2# ./components_health.sh --component=elasticsearch
To check the health component of the environments, run the following command:
root@startupserver_1:/opt/Contrail_Service_Orchestration_5.1.2# ./components_health.sh
After a couple of minutes, the status of each infrastructure component for central and regional environments is displayed.
For example:
INFO Updating the mine and syncing the grains INFO ************************************************************************ INFO HEALTH CHECK FOR INFRASTRUCTURE COMPONENTS STARTED IN CENTRAL ENVIRONMENT INFO ************************************************************************ INFO Health Check for Infrastructure Component Saltstack Started INFO The Infrastructure Component Saltstack is Healthy INFO Health Check for Infrastructure Component Cassandra Started INFO The Infrastructure Component Cassandra is Healthy INFO Health Check for Infrastructure Component Mariadb Started INFO The Infrastructure Component Mariadb is Healthy INFO Health Check for Infrastructure Component Swift Started INFO The Infrastructure Component Swift is Healthy INFO Health Check for Infrastructure Component Redis Started INFO The Infrastructure Component Redis is Healthy INFO Health Check for Infrastructure Component Arangodb Started INFO The Infrastructure Component Arangodb is Healthy INFO Health Check for Infrastructure Component Keystone Started INFO The Infrastructure Component Keystone is Healthy INFO Health Check for Infrastructure Component Elasticsearch Started INFO The Infrastructure Component Elasticsearch is Healthy INFO Health Check for Infrastructure Component Elk_Elasticsearch Started INFO The Infrastructure Component Elk_Elasticsearch is Healthy INFO Health Check for Infrastructure Component Icinga Started INFO The Infrastructure Component Icinga is Healthy INFO Health Check for Infrastructure Component Rabbitmq Started INFO The Infrastructure Component Rabbitmq is Healthy INFO Health Check for Infrastructure Component Etcd Started INFO The Infrastructure Component Etcd is Healthy INFO Health Check for Infrastructure Component Rsyslog Started INFO The Infrastructure Component Rsyslog is Healthy INFO Health Check for Infrastructure Component Kubernetes Started INFO The Infrastructure Component Kubernetes is Healthy INFO Health Check for Infrastructure Component Elk_Logstash Started INFO The Infrastructure Component Elk_Logstash is Healthy INFO Health Check for Infrastructure Component Elk_Kibana Started INFO The Infrastructure Component Elk_Kibana is Healthy INFO Health Check for Infrastructure Component Zookeeper Started INFO The Infrastructure Component Zookeeper is Healthy INFO Health Check for Infrastructure Component Contrail_Analytics Started INFO The Infrastructure Component Contrail_Analytics is Healthy INFO Overall result: INFO The following Infrastructure Components are Healthy: INFO ['Saltstack', 'Cassandra', 'Mariadb', 'Swift', 'Redis', 'Arangodb', 'Keystone', 'Elasticsearch', 'Elk_Elasticsearch', 'Icinga', 'Rabbitmq', 'Etcd', 'Rsyslog', 'Kubernetes', 'Elk_Logstash', 'Elk_Kibana', 'Zookeeper', 'Contrail_Analytics'] INFO *********** HEALTH CHECK COMPLETED IN CENTRAL ENVIRONMENT ***********