mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-24 09:53:12 +01:00
add WORKERS calculation back to zeekcaptureloss script
This commit is contained in:
@@ -11,7 +11,11 @@
|
||||
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
||||
|
||||
if [ -d "/host/nsm/zeek/spool/logger" ]; then
|
||||
WORKERS={{ salt['pillar.get']('sensor:zeek_lbprocs', salt['pillar.get']('sensor:zeek_pins') | length) }}
|
||||
{%- 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
|
||||
|
||||
Reference in New Issue
Block a user