mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-03 13:33:15 +00:00
7 lines
172 B
Bash
Executable File
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
|