From f9e11f06e8a1c1d41e7773b96588160c15abc73d Mon Sep 17 00:00:00 2001 From: Wes Lambert Date: Thu, 4 Jan 2018 13:32:22 +0000 Subject: [PATCH] disable elastalert if running on sensor only --- usr/sbin/sosetup-elastic | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr/sbin/sosetup-elastic b/usr/sbin/sosetup-elastic index ecc0856..ca66dd9 100755 --- a/usr/sbin/sosetup-elastic +++ b/usr/sbin/sosetup-elastic @@ -2024,7 +2024,12 @@ EOF echo "# Please wait while stopping and disabling Kibana..." | tee -a $LOG docker stop so-kibana >> $LOG 2>&1 sed -i 's|KIBANA_ENABLED="yes"|KIBANA_ENABLED="no"|g' $CONF - + + echo "91" + echo "# Please wait while stopping and disabling ElastAlert..." | tee -a $LOG + docker stop so-elastalert >> $LOG 2>&1 + sed -i 's|ELASTALERT_ENABLED="yes"|ELASTALERT_ENABLED="no"|g' $CONF + echo "93" echo "# Please wait while stopping and disabling MySQL..." | tee -a $LOG service mysql stop >> $LOG 2>&1