diff --git a/salt/_modules/healthcheck.py b/salt/_modules/healthcheck.py index dd84a8e33..9f38f8e32 100644 --- a/salt/_modules/healthcheck.py +++ b/salt/_modules/healthcheck.py @@ -97,10 +97,11 @@ def zeek(): except FileNotFoundError: openmethod = "a" + influxtime = int(time() * 1000000000) with open("/nsm/zeek/logs/zeek_restart.log", openmethod) as f: - f.write('healthcheck zeek_restart=%i' % zeek_restart int(time() * 1000000000)) + f.write('healthcheck zeek_restart=%i %i' % (zeek_restart, influxtime)) + - if calling_func == 'execute' and zeek_restart: apply_states()