Files
wazuh-docker-mirror/single-node/prueba.sh
2022-05-27 13:20:44 -03:00

7 lines
172 B
Bash
Executable File

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