From ec81cbd70d8aa33986c5609d5dc92895784434f1 Mon Sep 17 00:00:00 2001 From: Doug Burks Date: Sat, 5 Aug 2023 09:11:58 -0400 Subject: [PATCH] Revert yesterday's change to zeekcaptureloss.sh --- salt/telegraf/scripts/zeekcaptureloss.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/salt/telegraf/scripts/zeekcaptureloss.sh b/salt/telegraf/scripts/zeekcaptureloss.sh index e254ada32..4389fd601 100644 --- a/salt/telegraf/scripts/zeekcaptureloss.sh +++ b/salt/telegraf/scripts/zeekcaptureloss.sh @@ -11,15 +11,9 @@ # This script returns the average of all the workers average capture loss to telegraf / influxdb in influx format include nanosecond precision timestamp # if this script isn't already running -{%- from 'zeek/config.map.jinja' import ZEEKMERGED %} if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then if [ -d "/host/nsm/zeek/spool/logger" ]; then -{%- if ZEEKMERGED.config.node.pins %} - WORKERS={{ ZEEKMERGED.config.node.pins | length }} -{%- else %} - WORKERS={{ ZEEKMERGED.config.node.lb_procs }} -{%- endif %} ZEEKLOG=/host/nsm/zeek/spool/logger/capture_loss.log elif [ -d "/host/nsm/zeek/spool/zeeksa" ]; then WORKERS=1