mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
change log levels in healthcheck module
This commit is contained in:
@@ -42,14 +42,14 @@ def run(checks=''):
|
|||||||
|
|
||||||
retval = []
|
retval = []
|
||||||
calling_func = sys._getframe().f_back.f_code.co_name
|
calling_func = sys._getframe().f_back.f_code.co_name
|
||||||
logging.info('healthcheck_module: run function caller: %s' % calling_func)
|
logging.debug('healthcheck_module: run function caller: %s' % calling_func)
|
||||||
|
|
||||||
if checks:
|
if checks:
|
||||||
checks = checks.split(',')
|
checks = checks.split(',')
|
||||||
else:
|
else:
|
||||||
checks = __salt__['pillar.get']('healthcheck:checks', {})
|
checks = __salt__['pillar.get']('healthcheck:checks', {})
|
||||||
|
|
||||||
logging.info('healthcheck_module: run checks to be run: %s' % str(checks))
|
logging.debug('healthcheck_module: run checks to be run: %s' % str(checks))
|
||||||
for check in checks:
|
for check in checks:
|
||||||
if check in allowed_functions:
|
if check in allowed_functions:
|
||||||
retval.append(check)
|
retval.append(check)
|
||||||
@@ -73,11 +73,11 @@ def send_event(tag, eventdata):
|
|||||||
def zeek():
|
def zeek():
|
||||||
|
|
||||||
calling_func = sys._getframe().f_back.f_code.co_name
|
calling_func = sys._getframe().f_back.f_code.co_name
|
||||||
logging.info('healthcheck_module: zeek function caller: %s' % calling_func)
|
logging.debug('healthcheck_module: zeek function caller: %s' % calling_func)
|
||||||
retval = []
|
retval = []
|
||||||
|
|
||||||
retcode = __salt__['zeekctl.status'](verbose=False)
|
retcode = __salt__['zeekctl.status'](verbose=False)
|
||||||
logging.info('healthcheck_module: zeekctl.status retcode: %i' % retcode)
|
logging.debug('healthcheck_module: zeekctl.status retcode: %i' % retcode)
|
||||||
if retcode:
|
if retcode:
|
||||||
zeek_restart = True
|
zeek_restart = True
|
||||||
if calling_func != 'beacon':
|
if calling_func != 'beacon':
|
||||||
|
|||||||
Reference in New Issue
Block a user