Added more debug things for Wazuh
This commit is contained in:
@@ -23,7 +23,6 @@ except Exception as e:
|
|||||||
# </integration>
|
# </integration>
|
||||||
|
|
||||||
# Global vars
|
# Global vars
|
||||||
|
|
||||||
debug_enabled = True
|
debug_enabled = True
|
||||||
pwd = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
pwd = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||||
json_alert = {}
|
json_alert = {}
|
||||||
@@ -32,6 +31,12 @@ now = time.strftime("%a %b %d %H:%M:%S %Z %Y")
|
|||||||
# Set paths
|
# Set paths
|
||||||
log_file = 'integrations.log'
|
log_file = 'integrations.log'
|
||||||
|
|
||||||
|
try:
|
||||||
|
with open("/tmp/shuffle_start.txt", "w+") as tmp:
|
||||||
|
tmp.write("Script started")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
debug("# Starting")
|
debug("# Starting")
|
||||||
@@ -68,6 +73,14 @@ def main(args):
|
|||||||
debug(msg)
|
debug(msg)
|
||||||
|
|
||||||
debug("# Sending message")
|
debug("# Sending message")
|
||||||
|
|
||||||
|
try:
|
||||||
|
with open("/tmp/shuffle_end.txt", "w+") as tmp:
|
||||||
|
tmp.write("Script done pre-msg sending")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
send_msg(msg, webhook)
|
send_msg(msg, webhook)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user