diff options
Diffstat (limited to 'dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/server/bin/healthCheck.sh')
-rw-r--r-- | dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/server/bin/healthCheck.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/server/bin/healthCheck.sh b/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/server/bin/healthCheck.sh new file mode 100644 index 0000000..137360f --- /dev/null +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/server/bin/healthCheck.sh @@ -0,0 +1,10 @@ +#/bin/bash + +case $(/opt/cdap/cli/bin/cdap-cli.sh -u localhost list namespaces | head -1) in + Successfully*) + echo GREEN + ;; + *) + echo "RED:CDAP service down" + ;; +esac |