From 52872eed378e23d79c44bd111e6633af9dad9510 Mon Sep 17 00:00:00 2001 From: SG Date: Wed, 20 Sep 2023 11:37:07 -0600 Subject: [PATCH] special check for opensearch in service disable --- shared/bin/service_check_passthrough.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/bin/service_check_passthrough.sh b/shared/bin/service_check_passthrough.sh index 80a3142e8..c4774294c 100755 --- a/shared/bin/service_check_passthrough.sh +++ b/shared/bin/service_check_passthrough.sh @@ -94,6 +94,10 @@ if [[ -z "$DISABLED" ]] && [[ -n "$SERVICE" ]]; then [[ "${!LOCAL_VARNAME}" == "n" ]] ); then DISABLED=1 fi + # kinda hacky but check a special case for OpenSearch + if [[ "$SERVICE" == "opensearch" ]] && [[ "${OPENSEARCH_PRIMARY:-opensearch-local}" != "opensearch-local" ]]; then + DISABLED=1 + fi fi # if port and/or format not specified via command line, make some inferences based on service