mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
19 lines
479 B
Python
19 lines
479 B
Python
#!py
|
|
|
|
import logging
|
|
import salt.client
|
|
local = salt.client.LocalClient()
|
|
|
|
def run():
|
|
minionid = data['id']
|
|
zeek_restart = data['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 {}
|