There are several ways to perform health checks against ClusterControl to ensure it runs correctly. Since ClusterControl consists of several components, every component may have different ways to probe its liveliness.
The following tabs show examples on how to perform health checks based on ClusterControl components:
service cmon status
systemctl status cmon
curl -sSf http://localhost/clustercontrol/ > /dev/null
service cmon-ssh status
systemctl status cmon-ssh
service cmon-cloud status
systemctl status cmon-cloud
service cmon-event status
systemctl status cmon-event
In shell scripting, expect the above commands to return a good response like exit code 0 to indicate a running process. You could also use other means by checking the process list, connecting to the respective service ports or inspecting the log files.