Bro - Add cron for checking PL

This commit is contained in:
Mike Reeves
2018-11-29 19:04:54 -05:00
parent 3448aeb4ab
commit 2c6a2646e4
2 changed files with 10 additions and 0 deletions

View File

@@ -65,6 +65,16 @@ nodecfgsync:
- group: 939
- 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
{% if salt['pillar.get']('static:broversion', '') == 'COMMUNITY' %}
localbrosync: