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

View File

@@ -40,7 +40,13 @@ jobs:
- name: Check Wazuh indexer nodes
run: |
curl -XGET "https://0.0.0.0:9200/_cat/nodes?v" -u admin:SecretPassword -k | wc -l
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 "Cantidad de nodos: ${nodes}"
else
echo "Cantidad de nodos: ${nodes}"
exit 1
fi
- name: Check Wazuh manager start
run: |
@@ -67,7 +73,7 @@ jobs:
- name: Check Wazuh indexer nodes
run: |
curl -XGET "https://0.0.0.0:9200/_cat/nodes?v" -u admin:SecretPassword -k | wc -l
curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | wc -l
- name: Check Wazuh manager start
run: |

6
single-node/prueba.sh Executable file
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