Last active
May 10, 2017 13:32
-
-
Save portante/26a2a16d2457efc480abfd8f30596d63 to your computer and use it in GitHub Desktop.
A simple script to check if Kibana has access from within a kibana pod/container for OpenShift.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| _BASE=/etc/kibana/keys | |
| _CA=$_BASE/ca | |
| _CERT=$_BASE/cert | |
| _KEY=$_BASE/key | |
| ls -l $_CA $_CERT $_KEY | |
| ES_URL='https://logging-es:9200' | |
| curl_get="curl -X GET --cacert $_CA --cert $_CERT --key $_KEY" | |
| $curl_get $ES_URL/_cat/health?v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment