mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Bro - Add cron for checking PL
This commit is contained in:
@@ -65,6 +65,16 @@ nodecfgsync:
|
|||||||
- group: 939
|
- group: 939
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
|
||||||
|
brocron:
|
||||||
|
cron.present:
|
||||||
|
- name: docker exec -it so-bro /opt/bro/bin/broctl netstats | awk -F '[ =]' '{RCVD += $5;DRP += $7;TTL += $9} END { print "rcvd: " RCVD, "dropped: " DRP, "total: " TTL}' >> /nsm/bro/logs/packetloss.log
|
||||||
|
- user: root
|
||||||
|
- minute: '*/10'
|
||||||
|
- hour: '*'
|
||||||
|
- daymonth: '*'
|
||||||
|
- month: '*'
|
||||||
|
- dayweek: '*'
|
||||||
|
|
||||||
# Sync local.bro
|
# Sync local.bro
|
||||||
{% if salt['pillar.get']('static:broversion', '') == 'COMMUNITY' %}
|
{% if salt['pillar.get']('static:broversion', '') == 'COMMUNITY' %}
|
||||||
localbrosync:
|
localbrosync:
|
||||||
|
|||||||
Reference in New Issue
Block a user