mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-27 19:33:14 +01:00
This commit is contained in:
18
salt/reactor/zeek.sls
Normal file
18
salt/reactor/zeek.sls
Normal file
@@ -0,0 +1,18 @@
|
||||
#!py
|
||||
|
||||
import logging
|
||||
import salt.client
|
||||
local = salt.client.LocalClient()
|
||||
|
||||
def run():
|
||||
minionid = data['id']
|
||||
zeek_restart = data['zeek_restart']
|
||||
|
||||
logging.info('zeek_reactor: zeek_need_restarted:%s on:%s' % (zeek_restart, minionid))
|
||||
if zeek_restart:
|
||||
local.cmd(minionid, 'healthcheck.docker_stop', ['so-zeek'])
|
||||
local.cmd(minionid, 'state.apply', ['zeek'])
|
||||
|
||||
# __salt__['telegraf.send']('healthcheck zeek_restarted=%s' % str(zeek_restarted))
|
||||
|
||||
return {}
|
||||
Reference in New Issue
Block a user