This commit is contained in:
vcerenu
2022-05-27 13:20:44 -03:00
parent 19e5c24a2e
commit ba3409acee
2 changed files with 14 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
nodes="`curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | grep -E "indexer" | wc -l`"
if [[ $nodes -eq 1 ]]; then
echo "bien"
else
echo "mal"
fi