Hi All.
I'm trying to run a custom integration i've created to interact with fortigate api.
Starting manually the script all works fine, so the problem is no into the script, for me.
I've configure the integration in wazuh like this:
<integration>
<name>fgt_int.py</name>
<hook_url>
https://192.168.55.100/api/v2/</hook_url>
<api_key>myapikey</api_key>
<level>2</level>
<rule_id>81622</rule_id>
<alert_format>json</alert_format>
</integration>
this is the beginning of the script, that should write into the log file at least the info that is starting :
#!/var/ossec/framework/python/bin/python3
# Copyright (C) 2015-2022, Wazuh Inc.
import requests
import json
import sys
import time
import datetime
from requests.packages.urllib3.exceptions import InsecureRequestWarning
LOG_FILE = "/var/ossec/logs/active-responses.log"
def write_debug_file(ar_name, msg):
with open(LOG_FILE, mode="a") as log_file:
log_file.write(str(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')) + " " + ar_name + ": " + msg +"\n")
write_debug_file("FGT-INT",f"START")
but when i trigger the rule, into the log file nothing is written, like wazuh not even try to start the script.
File is into the integration folder
Permission are correct (owner= root:wazuh permission: 750)
what i'm missing?
Thanks for your works guys, have a nice day.