kibana health check for fleet scripts

This commit is contained in:
reyesj2
2026-06-10 17:06:22 -05:00
parent f905afbc6f
commit 289ddda5e8
5 changed files with 67 additions and 2 deletions
@@ -108,9 +108,12 @@ if [ ! -f /opt/so/state/eaintegrations.txt ]; then
done
# Only create the state file if all policies were created/updated successfully
if [[ "$RETURN_CODE" != "1" ]]; then
if [[ $RETURN_CODE -eq 0 ]]; then
touch /opt/so/state/eaintegrations.txt
else
exit 1
fi
else
exit $RETURN_CODE
echo "Fleet integration policies already loaded."
exit 0
fi